php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2005 Header() with CGI version produces unwanted output (memory leak ?)
Submitted: 1999-08-09 11:21 UTC Modified: 1999-08-09 13:39 UTC
From: christophe dot massiot at mail dot dotcom dot fr Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (09/08/1999) OS: Linux 2.0.36/Debian slink
Private report: No CVE-ID: None
 [1999-08-09 11:21 UTC] christophe dot massiot at mail dot dotcom dot fr
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
---------------------------------------

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-09 13:39 UTC] zeev at cvs dot php dot net
Fixed in the latest CVS
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC