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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: christophe dot massiot at mail dot dotcom dot fr
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 18:01:35 2025 UTC