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:             Open
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Linux
 PHP Version:        5.4.9
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to