Bug #63788 [Com]: phpt for #51822 fails when run through Apache (works in CLI/FCGI)

From: Date: Wed, 19 Dec 2012 14:02:55 +0000
Subject: Bug #63788 [Com]: phpt for #51822 fails when run through Apache (works in CLI/FCGI)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-175460@lists.php.net to get a copy of this message
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


Thread (7 messages)

« previous php.bugs (#175460) next »