#23489 [NEW]: ob_start() is broken with method callbacks

From: Date: Mon, 05 May 2003 09:59:46 +0000
Subject: #23489 [NEW]: ob_start() is broken with method callbacks
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39064@lists.php.net to get a copy of this message
From: sebastian@php.net Operating system: Linux, Windows PHP version: 4.3.2RC2 PHP Bug Type: Output Control Bug description: ob_start() is broken with method callbacks 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 bug report at http://bugs.php.net/?id=23489&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23489&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23489&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23489&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23489&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23489&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23489&r=support Expected behavior: http://bugs.php.net/fix.php?id=23489&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23489&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23489&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23489&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23489&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23489&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23489&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23489&r=gnused

« previous php.bugs (#39064) next »