ID: 25988 Updated by: [EMAIL PROTECTED] Reported By: MDonatas at centras dot lt -Status: Open +Status: Bogus Bug Type: Output Control -Operating System: Windows XP +Operating System: * -PHP Version: 4.3.3 +PHP Version: * New Comment:
Reread the docs. Callbacks with methods are done with arrays. array(class,method) for static methods and array(object,method) for non static ones. Previous Comments: ------------------------------------------------------------------------ [2003-10-26 03:32:12] MDonatas at centras dot lt Description: ------------ ob_start (); can't register CLASS method as a callback function. Reproduce code: --------------- <? class test { function test () //constructor { ob_start ("$this->callback"); //or simply "callback" echo 'Some output.'; echo ob_get_clean (); } function callback ($info) //this function isn't called { return $info.' stuff'; } } $tmp = new test; ?> Expected result: ---------------- callbackfunction (class method) to be called; Actual result: -------------- It's not called :/ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25988&edit=1