[PHP-DEV] Bug #1075 Updated: No warning is Header() is used after the headers have been sent ? From: Bug Database (php-dev <email protected>)
Date: 01/22/99

ID: 1075
User Update by: eb <email protected>
Status: Open
Old-Bug Type: Feature/Change Request
Bug Type: Misbehaving function
Description: No warning is Header() is used after the headers have been sent ?

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.

Full Bug description available at: http://ca.php.net/bugs.php3?id=1075

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>