|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-29 13:14 UTC] [email protected]
[2005-10-01 17:48 UTC] bmansion at mamasam dot com
[2005-10-02 00:03 UTC] [email protected]
[2005-10-03 11:17 UTC] [email protected]
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 31 05:00:01 2025 UTC |
Description: ------------ I think is_callable() should check for existing methods instead of returning true all the time when the class uses overloading. Otherwise it becomes useless. This is IMO particularly true for static methods checks, since __call is defined as non-static. Reproduce code: --------------- class A { public function __call($m, $a) { } } class B extends A { public static function foo() { echo 'foo'; } } if (is_callable(array('A', 'foo'))) { call_user_func(array('A', 'foo')); } Expected result: ---------------- Outputs nothing. Actual result: -------------- Fatal error: Call to undefined method A::foo()