PHP 4.0 Bug #2005: Header() with CGI version produces unwanted output (memory leak ?)
| From: | christophe dot massiot at mail dot dotcom dot fr | Date: | Mon, 09 Aug 1999 15:21:08 +0000 |
| Subject: | PHP 4.0 Bug #2005: Header() with CGI version produces unwanted output (memory leak ?) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9681@lists.php.net to get a copy of this message | ||
From: christophe.massiot@mail.dotcom.fr
Operating system: Linux 2.0.36/Debian slink
PHP version: 4.0 Latest CVS (09/08/1999)
PHP Bug Type: Scripting Engine problem
Bug description: Header() with CGI version produces unwanted output (memory leak ?)
The following script :
<?
Header("HTTP/1.0 401 Unauthorized");
echo "foo\n";
>?
produces :
17:11 [webase3:p2] titi:~% php html/titi.phtml
HTTP/1.0 401 Unauthorized
Content-Type: text/html
ZZZZZZZZZZZZZZZZZZZZZZZZZ
foo
Script: 'html/titi.phtml'
---------------------------------------
SAPI.c(89) : Block 0x080EAF18 status:
Beginning: Cached (allocated on zend_variables.c:120, 26 bytes)
End: OK
---------------------------------------