Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74767 invoked by uid 1010); 28 Nov 2007 21:39:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74752 invoked from network); 28 Nov 2007 21:39:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2007 21:39:52 -0000 X-Host-Fingerprint: 24.228.86.142 ool-18e4568e.dyn.optonline.net Received: from [24.228.86.142] ([24.228.86.142:13896] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/1E-19722-520ED474 for ; Wed, 28 Nov 2007 16:39:50 -0500 Message-ID: To: internals@lists.php.net Date: Wed, 28 Nov 2007 16:39:48 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 MIME-Version: 1.0 References: <1196124442.21880.15.camel@ganges.spikesource.com> <474BA22F.2020608@lerdorf.com> <1196206722.31863.16.camel@ganges.spikesource.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Posted-By: 24.228.86.142 Subject: Re: [PHP-DEV] Reliable header sending mechanism in php 6 From: edwardzyang@thewritingpot.com ("Edward Z. Yang") 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 Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]