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

From: Date: Tue, 24 Oct 2017 06:34:16 +0000
Subject: Bug #63788 [Asn->Opn]: 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-212009@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
 Updated by:         kalle@php.net
 Reported by:        lior dot k at zend dot com
 Summary:            phpt for #51822 fails when run through Apache (works
                     in CLI/FCGI)
-Status:             Assigned
+Status:             Open
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Linux
 PHP Version:        5.4.9
-Assigned To:        mike
+Assigned To:        
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2012-12-19 14:58:38] laruence@php.net

mike, could you please look at this?

the latter destructor is called via zend_deactivate, but at this
time , the output is deactived.

------------------------------------------------------------------------
[2012-12-19 14:36:51] lior dot k at zend dot com

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

------------------------------------------------------------------------
[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


Thread (7 messages)

« previous php.bugs (#212009) next »