|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-10-26 12:37 UTC] helly@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 05:00:02 2025 UTC | 
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 :/