Hi all,
consider this simple scenario:
$this->method($arg1, $arg2);
Solution:
call_user_func_array(array($this,'method'), array($arg1, $arg2));
consider this scenario:
$this->object->method($arg1, $arg2);
Should this solution work?
call_user_func_array(array($this->object,'method'), array($arg1, $arg2));
Or should this work?
call_user_func_array(array($this, 'object','method'), array($arg1, $arg2));
Edit: Will try/catch works for SOAP exception, triger while using call_user_func?
try {
$soap_res = call_user_func_array(array($this->service,'getBanana'), array(0, 10));
} catch (SoapFault $fault) {
die($fault->faultstring)
}