note 68417 added to function.call-user-func-array
| From: | php-general at lists dot php dot net | Date: | Wed, 26 Jul 2006 07:22:04 +0000 |
| Subject: | note 68417 added to function.call-user-func-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115202@lists.php.net to get a copy of this message | ||
Re: amer at o2 dot pl 's comment:
"If you need to call object method from within the very same object (NOT CLASS!):
call_user_func_array(array(&$this, 'Foo'),args);"
This particular case does not work--giving the following error:
call_user_func_array(): First argumented is expected to be a valid callback, 'Array' was
given
The user functions can only be successfully called (as the documentation for call_user_func alludes
to), with static calls to class functions.
----
Server IP: 61.129.33.155
Probable Submitter: 202.105.159.246
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.call-user-func-array.php
Edit -- http://master.php.net/note/edit/68417
Del: integrated -- http://master.php.net/note/delete/68417/integrated
Del: useless -- http://master.php.net/note/delete/68417/useless
Del: bad code -- http://master.php.net/note/delete/68417/bad+code
Del: spam -- http://master.php.net/note/delete/68417/spam
Del: non-english -- http://master.php.net/note/delete/68417/non-english
Del: in docs -- http://master.php.net/note/delete/68417/in+docs
Del: other reasons-- http://master.php.net/note/delete/68417
Reject -- http://master.php.net/note/reject/68417
Search -- http://master.php.net/manage/user-notes.php