Edit report at https://bugs.php.net/bug.php?id=63788&edit=1
ID: 63788
Comment by: lior dot k at zend dot com
Reported by: lior dot k at zend dot com
Summary: phpt for #51822 fails when run through Apache (works
in CLI/FCGI)
Status: Assigned
Type: Bug
Package: Apache2 related
Operating System: Linux
PHP Version: 5.4.9
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
Related commits (php 5.4 branch) are:
http://git.php.net/?p=php-src.git;a=commitdiff;h=bfccc4ed582ca432df9de3f2aedb3533be23c8ed
http://git.php.net/?p=php-src.git;a=commitdiff;h=3c038294292ee535d85650d30a100f019096b6aa
http://git.php.net/?p=php-src.git;a=commitdiff;h=29c8658dc82f2c00b0b9c9026a3c3457fd0aa2f8
Previous Comments:
------------------------------------------------------------------------
[2012-12-19 14:02:55] lior dot k at zend dot com
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
------------------------------------------------------------------------
[2012-12-17 12:52:28] lior dot k at zend dot com
Description:
------------
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.
Test script:
---------------
bug51822.phpt from the PHP.net sources
(http://git.php.net/?p=php-src.git;a=blob;f=Zend/tests/bug51822.phpt;)
Expected result:
----------------
phpt expected output:
bla
1
2
Actual result:
--------------
PHP 5.4 output:
bla
1
PHP 5.3 output:
bla
1
2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63788&edit=1