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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 14:01:31 2024 UTC