php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8509 ob_start doesn't work when passing ob_gzhandler as the function
Submitted: 2001-01-01 19:09 UTC Modified: 2001-05-11 21:14 UTC
From: johnh at solidtechnology dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 4.0.4 OS: Redhat 7.0
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: johnh at solidtechnology dot com
New email:
PHP Version: OS:

 

 [2001-01-01 19:09 UTC] johnh at solidtechnology dot com
This works: when wrapped in function ob_gzhandler works, really think the bug is with ob_start and internal functions.

<?php
function compress_output($output)
{
    return ob_gzhandler($output);
}
ob_start("compress_output");  
phpinfo();
?>
  
This doesn't:

<?php
ob_start("ob_gzhandler");
phpinfo();
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-02 09:21 UTC] sniper@php.net
Duplicate of #8334

--Jani
 [2001-05-11 21:14 UTC] sniper@php.net
Fixed in PHP 4.0.5

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC