go to bug id or search bugs for
When suppressing error output of php_strip_whitespace and trying to load a non existent file, output is started. The code below prints "not sent" on older PHP versions but prints "sent" on PHP 5.2.3-1
$foo = @php_strip_whitespace('non existent file');
echo "not sent\n";
Add a Patch
Add a Pull Request
Please try using this CVS snapshot:
For Windows (zip):
For Windows (installer):
Its still the same with the snapshot you linked.
And why shouldn't the headers be sent? You're not getting any fatal error there..
Error suppression should suppress all output including sending headers. This is crucial when cookies need to be sent later in the code. Please note that this behavior broke in 5.2.3 and was working fine before (breaking existing code).
Did this work in 5.2.2 as you expected?
I just verified it. The provided test code delivers the expected 'not sent' output with PHP 5.2.2, so it broke with 5.2.3
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.