[patch] send_headers

php.internals

Sebastian Bergmann

23 years ago
Matthias Lange, a co-worker of Kristian K?hntopp, asked me to propose a patch [1] to introduce a new send_headers() function. The purpose of send_headers() is to ensure that headers were sent to the client. He tested this patch with PHP 4.3.2 and Apache.
-- [1] http://www.sebastian-bergmann.de/stuff/send_headers.patch -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

Andi Gutmans

23 years ago
Naming conventions... It should be something like headers_were_sent() (I'm not good with names but you get the point :) Andi At 10:22 AM 7/7/2003 +0200, Sebastian Bergmann wrote:

Derick Rethans

23 years ago
On Mon, 7 Jul 2003, Andi Gutmans wrote:
> Naming conventions... > It should be something like headers_were_sent() (I'm not good with names > but you get the point :)
headers_were_sent() doesn't work, as this function also sends the headers if they weren't sent before, so I think headers_send() or similar would work just fine. Derick
-- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------

Wez Furlong

23 years ago
headers_flush() or flush_headers() ? --Wez. ----- Original Message ----- From: "Derick Rethans" <derick@php.net> To: "Andi Gutmans" <andi@zend.com> Cc: "Sebastian Bergmann" <sebastian@php.net>; <internals@lists.php.net>; "Matthias Lange" <ml@netuse.de> Sent: Monday, July 07, 2003 9:39 AM Subject: Re: [PHP-DEV] [patch] send_headers

Moriyoshi Koizumi

23 years ago
How about http_header_flush() if we stick to the naming convention strictly? Moriyoshi "Wez Furlong" <wez@thebrainroom.com> wrote:

Jon Parise

23 years ago
On Mon, Jul 07, 2003 at 11:41:24AM +0200, Andi Gutmans wrote:
> Naming conventions... > It should be something like headers_were_sent() (I'm not good with names > but you get the point :)
http://www.php.net/headers_sent
-- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

Sascha Schumann

23 years ago
On Mon, 7 Jul 2003, Sebastian Bergmann wrote:
> Matthias Lange, a co-worker of Kristian Köhntopp, asked me to propose > a patch [1] to introduce a new send_headers() function.
Would not it be sufficent to just fix flush? flush currently does not force headers to be sent. - Sascha