The Project I\'m working on contains something like a wrapper for call_user_func(_array) which does some checks before execution. One of those checks is method_exists (In Ca
method_exists tries two things:
function foo() {} type methods.get_method() function and if it has invoke it to let the class implementation decide.You'd need the latter. But this get_method()is not "extended" to the php script code, i.e. there is no way to let get_method() call some user defined php script code (And what would this php code return?).
So the answer to my best knowledge is: No, it's not possible (yet?).
The implementation of ZEND_FUNCTION(method_exists) can be found in zend/zend_builtin_functions.c and is I think fairly readable even if you don't know C but PHP.