|
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 GroupAll rights reserved. |
Last updated: Wed Oct 22 07:00:01 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 :/