php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1075 No warning is Header() is used after the headers have been sent ?
Submitted: 1999-01-15 19:15 UTC Modified: 1999-06-01 15:57 UTC
From: eb at via dot ecp dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (15/01/1999) OS: Unix
Private report: No CVE-ID: None
 [1999-01-15 19:15 UTC] eb at via dot ecp dot fr
I made some tests today, and it seems that the Header() function does not issue a warning if it is used after some text has been written.

This would be really useful for debugging PHP scripts. By the way,  the SetCookie() function will issue a warning, so I think that this is not consistent.

I checked the code, and the warning is only sent when DEBUG is defined. The warning for SetCookie does not need the DEBUG compile-time define.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-01 15:57 UTC] jim at cvs dot php dot net
Now enabled in non-debug builds, too.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC