#23489 [Opn->Ctl]: ob_start() is broken with method callbacks
| From: | sebastian@php.net | Date: | Mon, 05 May 2003 10:00:11 +0000 |
| Subject: | #23489 [Opn->Ctl]: ob_start() is broken with method callbacks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39065@lists.php.net to get a copy of this message | ||
ID: 23489
Updated by: sebastian@php.net
Reported By: sebastian@php.net
-Status: Open
+Status: Critical
Bug Type: Output Control
Operating System: Linux, Windows
PHP Version: 4.3.2RC2
Previous Comments:
------------------------------------------------------------------------
[2003-05-05 04:59:46] sebastian@php.net
The following code
<?php
class Test {
function Test() {
ob_start(
array(
$this, 'transform'
)
);
}
function transform($buffer) {
return 'bar';
}
}
$t = new Test;
?>
foo
outputs 'bar', as it is expected to do, with PHP 4.3.1.
With PHP 4.3.2-RC and PHP 5.0.0-dev it outputs 'foo' which is just
plain wrong.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23489&edit=1