php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25217 calling ob_gzhandler after modified buffer in ob handler, return origin buffer
Submitted: 2003-08-23 04:13 UTC Modified: 2003-08-24 22:50 UTC
From: Xuefer at 21cn dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.3RC4 OS: win
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 !
Your email address:
MUST BE VALID
Solve the problem:
17 + 44 = ?
Subscribe to this entry?

 
 [2003-08-23 04:13 UTC] Xuefer at 21cn dot com
Description:
------------
only when client do not support compressing
save the below sample as: ob_gzhandler.phpt
and: make test

--TEST--
ob_gzhandler
--POST--
--GET--
--FILE--
<?php
function test($buffer, $flags) {
	$buffer = '456';
	$buffer = ob_gzhandler($buffer, $flags);
	return $buffer;
}

ob_start('test');
echo 123;
?>
--EXPECT--
456


=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
ob_gzhandler [test/ob_handler.phpt]

actual output is 123, not 456


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-24 22:50 UTC] sniper@php.net
RTFM: "ob_gzhandler() is intended to be used as a callback function for ob_start()"

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 07:05:44 2022 UTC