error in /ext/standard/output.c
| From: | Marc Pohl | Date: | Sat, 06 May 2000 14:29:15 +0000 |
| Subject: | error in /ext/standard/output.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14591@lists.php.net to get a copy of this message | ||
Hi!
In the module /ext/standard/output.c (PHP 4 RC1 & RC2) is a small error which does not allow
HEAD-request while output_buffering is active.
The following lines from the function ph_ub_body_write()
...
if(SG(request_info).headers_only) {
zend_bailout();
}
if (php_header()) {
...
should surely be
...
if (php_header()) {
if(SG(request_info).headers_only) {
zend_bailout();
}
...
to leave php after generating the http-headers.
Marc
------------------------------------------------------------------------------
Marc Pohl, Service-Center-Infrastruktur, Westdeutscher Rundfunk, D-50600 Koeln
marc.pohl@wdr.de, +49 221 220 8618, http://www.wdr.de/
------------------------------------------------------------------------------