[wp-trac] [WordPress Trac] #14933: IXR_Server->call() fails when calling method that uses __call()
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 22 10:07:22 UTC 2010
#14933: IXR_Server->call() fails when calling method that uses __call()
--------------------------+-------------------------------------------------
Reporter: dave1010 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0.1
Severity: normal | Keywords: IXR extending xmlrpc
--------------------------+-------------------------------------------------
I have a class in a plugin that uses PHP's magic method `__call()` to add
some XMl-RPC callback methods, but `IXR_Server->call()` throws an
IXR_Error as it uses `method_exists()` instead of `is_callable()`.
`method_exists()` returns true only if a method is specifically defined
(and is visible). `is_callable()` should be identical to
`method_exists()`, except also return true on any classes with a `visible
__call()` method.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14933>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list