PHP 4.0 Bug #6128: header() does not flush properly
| From: | garths at cs dot sfu dot ca | Date: | Sat, 12 Aug 2000 10:24:31 +0000 |
| Subject: | PHP 4.0 Bug #6128: header() does not flush properly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28679@lists.php.net to get a copy of this message | ||
From: garths@cs.sfu.ca
Operating system: FreeBSD
PHP version: 4.0.1pl2
PHP Bug Type: Misbehaving function
Bug description: header() does not flush properly
Calling header("location: *") should immediately send
the header to the client (Or if not, flush() or something
similar should force this. Documentation unclear). This
does not happen. In the following case, the header only
gets sent once script execution is finished.
header("Location: http://www.blah.com");
flush();
In this case, however, the header gets sent
immediately.
header("Location: http://www.blah.com");
ECHO " ";
flush();
This surely can't be the expected behaviour, since there
shouldn't be any body in a redirect header response,
and there must be a way to send a header immediately
(I believe it worked in some previous versions).