Re: Reliable header sending mechanism in php 6

From: Date: Wed, 28 Nov 2007 21:39:48 +0000
Subject: Re: Reliable header sending mechanism in php 6
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-33487@lists.php.net to get a copy of this message
Alexey Zakhlestin wrote: > Enforcing people to use some specific way of coding to use library is > incorrect, anyway. But, you can correctly handle the situation (i.e. > provide a meaningful error to the user) by making a simple check: > http://docs.php.net/headers-sent With a little bit of magic (get_included_files) you can even tell the user where the leading/trailing whitespace is! -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]

« previous php.internals (#33487) next »