php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44083 virtual() not outputting results if zlib.output_compression = On
Submitted: 2008-02-09 13:44 UTC Modified: 2010-06-21 00:32 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: mjsabby at gmail dot com Assigned:
Status: Wont fix Package: Apache2 related
PHP Version: 6CVS-2008-02-09 (CVS) OS: Fedora 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mjsabby at gmail dot com
New email:
PHP Version: OS:

 

 [2008-02-09 13:44 UTC] mjsabby at gmail dot com
Description:
------------
It seems in PHP6 (from CVS), virtual() doesn't work, well not the way it used to if zlib.output_compression = On

In fact, as soon as the virtual request is called, the remaining output's after that call are also not sent to the browser.

However, apache access logs say that they served correct amount of bytes.

Setting zlib.output_compression = Off makes it work just fine.

Reproduce code:
---------------
pointless.txt:
 Hello World 

virtual.php
<?php
echo "I can see this\n";
virtual('pointless.txt');
echo "\nBut not this";

Expected result:
----------------
I can see this
Hello World
But not this

Actual result:
--------------
I can see this

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-20 20:16 UTC] mv at supportex dot net
reproduced 100% on 1 box with 5.2.6-2.fc9 httpd 2.2.9-1.fc9 i386, so setting zlib_output_compression Off helps

on the other box, virtual() is not working regardless of setting zlib_output_compression Off nor setting buffering Off
 [2010-06-21 00:32 UTC] felipe@php.net
-Status: Open +Status: Wont fix
 [2010-06-21 00:32 UTC] felipe@php.net
Old trunk related.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 00:01:28 2024 UTC