|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63788 phpt for #51822 fails when run through Apache (works in CLI/FCGI)
Submitted: 2012-12-17 12:52 UTC Modified: 2017-10-24 06:34 UTC
From: lior dot k at zend dot com Assigned:
Status: Open Package: Apache2 related
PHP Version: 5.4.9 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lior dot k at zend dot com
New email:
PHP Version: OS:


 [2012-12-17 12:52 UTC] lior dot k at zend dot com
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 sources (;a=blob;f=Zend/tests/bug51822.phpt;)

Expected result:
phpt expected output:

Actual result:
PHP 5.4 output:

PHP 5.3 output:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-19 14:02 UTC] 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-19 14:33 UTC]
-Assigned To: +Assigned To: laruence
 [2012-12-19 14:58 UTC]
-Assigned To: laruence +Assigned To: mike
 [2012-12-19 14:58 UTC]
mike, could you please look at this?

the latter destructor is called via zend_deactivate, but at this
time , the output is deactived.
 [2017-10-24 06:34 UTC]
-Status: Assigned +Status: Open -Assigned To: mike +Assigned To:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jul 25 23:01:24 2021 UTC