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
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: eb at via dot ecp dot fr
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 05 00:00:01 2026 UTC