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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 - 40 = ?
Subscribe to this entry?

 
 [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: Mon Apr 22 03:01:32 2024 UTC