php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62627 Zlib output handler enabled randomly
Submitted: 2012-07-21 05:08 UTC Modified: 2013-02-18 00:35 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: roctom at gmail dot com Assigned:
Status: No Feedback Package: *Compression related
PHP Version: 5.4.5 OS: Debian 2.6.32-5-xen-amd64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: roctom at gmail dot com
New email:
PHP Version: OS:

 

 [2012-07-21 05:08 UTC] roctom at gmail dot com
Description:
------------
Having upgraded from 5.4.0 to 5.4.5, I now get the zlib output compression handler 
as part of ob_list_handlers() randomly which generates issues with ob_start().

zlib.output_compression is set to off.

'./configure' '--sysconfdir=/etc' '--with-config-file-path=/etc' '--with-config-
file-scan-dir=/etc/php.d' '--with-apxs2=/usr/sbin/apxs' '--with-openssl' '--with-
gd' '--with-curl=/usr/src/curl-7.21.7/include' '--with-zlib' '--enable-calendar' 
'--enable-mbstring' '--enable-zip' '--enable-sockets' '--with-mcrypt' '--with-
mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-
kerberos' '--enable-ftp' '--disable-posix' '--enable-bcmath' '--enable-gd-native-
ttf' '--with-freetype-dir' '--with-jpeg-dir=/usr/local' '--with-png-
dir=/usr/local' '--with-xsl=/usr/local/lib' '--enable-exif'

Test script:
---------------
<?php
//using output_buffering=On
print_r(ob_list_handlers());
ob_end_flush();

ob_start("ob_gzhandler");
print_r(ob_list_handlers());
ob_end_flush();

// anonymous functions
ob_start(create_function('$string', 'return $string;'));
print_r(ob_list_handlers());
ob_end_flush();

Expected result:
----------------
Array
(
    [0] => default output handler
)

Array
(
    [0] => ob_gzhandler
)

Array
(
    [0] => default output handler
)

Actual result:
--------------
First execution (in browser)
Array
(
    [0] => default output handler
)
Array
(
    [0] => ob_gzhandler
)
Array
(
    [0] => 
)

Second execution (in browser)
Firefox 16.1a
Array
(
    [0] => default output handler
    [1] => zlib output compression
)


Chrome 2.0.1132.57
Array
(
    [0] => default output handler
    [1] => zlib output compression
)
‹s,*J¬äÒàR‚hƒX[;…”Ô´ÄÒœ…üÒ’‚Ò…ŒÄ¼”œÔ"ˆ
C°Šü¤øô*˜¸&HùÓàDArray
(
    [0] => default output handler
    [1] => 
)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-25 08:42 UTC] indeyets@php.net
experienced the same on 5.4.4, CentOS/6.3
 [2012-07-25 10:34 UTC] laruence@php.net
Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

a bug #55544  has been fixed recently, please try with the snapshot
 [2012-07-25 10:34 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC