IXR_Server->call() fails when calling method that uses __call()
|Reported by:||dave1010||Owned by:||westi|
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.
Change History (15)
- Component changed from General to XML-RPC
- Keywords has-patch added
- Resolution set to fixed
- Status changed from new to closed
comment:12 westi — 3 years ago
- Milestone changed from Awaiting Review to 3.1
- Owner set to westi
- Status changed from reopened to accepted