note 71471 deleted from function.method-exists by nlopess
| From: | nlopess@php.net | Date: | Thu, 30 Nov 2006 22:58:54 +0000 |
| Subject: | note 71471 deleted from function.method-exists by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120195@lists.php.net to get a copy of this message | ||
Note Submitter: snop
----
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.