note 71471 added to function.method-exists
| From: | snop at osu1 dot php dot net | Date: | Thu, 30 Nov 2006 10:16:51 +0000 |
| Subject: | note 71471 added to function.method-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120185@lists.php.net to get a copy of this message | ||
In 5.1.x, method_exists returns true even for overloaded methods. Thus
<?php
class C
{
function __call ( $name , $param ) {}
}
$K=new C;
echo method_exists($K,"anything");
?>
outputs 1.
In 5.0.x it outputs nothing.
----
Server IP: 212.24.129.110
Probable Submitter: 193.165.245.138
----
Manual Page -- http://www.php.net/manual/en/function.method-exists.php
Edit -- https://master.php.net/note/edit/71471
Del: integrated -- https://master.php.net/note/delete/71471/integrated
Del: useless -- https://master.php.net/note/delete/71471/useless
Del: bad code -- https://master.php.net/note/delete/71471/bad+code
Del: spam -- https://master.php.net/note/delete/71471/spam
Del: non-english -- https://master.php.net/note/delete/71471/non-english
Del: in docs -- https://master.php.net/note/delete/71471/in+docs
Del: other reasons-- https://master.php.net/note/delete/71471
Reject -- https://master.php.net/note/reject/71471
Search -- https://master.php.net/manage/user-notes.php