go to bug id or search bugs for
Running bug51822.phpt doesn't give the expected result on PHP 5.4 when running as an Apache module, works fine as CLI/FCGI. Checked with PHP 5.4.4 on Debian and PHP 5.4.9 on a private build.
PHP 5.3.19 works fine.
bug51822.phpt from the PHP.net sources (http://git.php.net/?p=php-src.git;a=blob;f=Zend/tests/bug51822.phpt;)
phpt expected output:
PHP 5.4 output:
PHP 5.3 output:
Add a Patch
Add a Pull Request
The distrustor does work, but the output buffer is already closed, and this is why the extra output doesn't appear.
This can be seen easily by replacing the echo command with something like `date > /tmp/bla`;
Also happens in Zend/tests/bug38779_1.phpt
Related commits (php 5.4 branch) are:
mike, could you please look at this?
the latter destructor is called via zend_deactivate, but at this
time , the output is deactived.