php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24579 output buffering dont work
Submitted: 2003-07-10 03:39 UTC Modified: 2003-07-12 08:06 UTC
From: lr at bestheads dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.2 OS: Linux
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lr at bestheads dot com
New email:
PHP Version: OS:

 

 [2003-07-10 03:39 UTC] lr at bestheads dot com
Description:
------------
could be related to #24121

have a site wich use outout buffering (ob_start("callback") (in the callback funktion i do some str_replace 's ) in 4.3.1 it worked perfekt.

in 4.3.2 it does not work. it seems the callback funktion is not called.

if you need further information let me know.

Reproduce code:
---------------
function callback($buffer){
$buffer2=$buffer;
$buffer2=str_replace("%TITLE%","asdfadsf",$buffer2);
return $buffer2;
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-12 08:06 UTC] elmicha@php.net
I can't reproduce this with PHP 4.3.2. To make your script complete, I appended:

ob_start("callback");
echo "bla %TITLE% bla";
ob_end_flush();

and the PHP tags. If you can provide a _complete_, short script to reproduce this problem, feel free to re-open this bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 11:01:32 2025 UTC