Bug #1075 Updated: No warning is Header() is used after the headers have been sent ?

From: Date: Fri, 22 Jan 1999 16:12:04 +0000
Subject: Bug #1075 Updated: No warning is Header() is used after the headers have been sent ?
Groups: php.dev 
Request: Send a blank email to php-dev+get-3682@lists.php.net to get a copy of this message
ID: 1075 User Update by: eb@via.ecp.fr 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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3682) next »