note 61320 added to function.method-exists
| From: | spam at majiclab dot com | Date: | Tue, 31 Jan 2006 16:33:59 +0000 |
| Subject: | note 61320 added to function.method-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102769@lists.php.net to get a copy of this message | ||
Both method_exists() and is_callable() return private and protected functions, which, as mentioned
below, causes problems for PHP5/OO programming. You can use get_class_methods() with either an
$instance of a class or the 'ClassName' to get only public functions.
----
Server IP: 66.207.199.35
Probable Submitter: 66.225.134.97
----
Manual Page -- http://www.php.net/manual/en/function.method-exists.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61320
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61320&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61320&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61320&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61320&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61320&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61320&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61320&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61320&report=yes
Search -- http://master.php.net/manage/user-notes.php