Re: [SOAP] Testers for 0.7.5 needed
| From: | Arnaud Limbourg | Date: | Tue, 15 Jul 2003 20:10:05 +0000 |
| Subject: | Re: [SOAP] Testers for 0.7.5 needed | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-812@lists.php.net to get a copy of this message | ||
> What (php) bug is this tickling, ya think?
Somebody sent me a patch changing an unset statement to assigning null value.
Here is the diff
function &callMethod($methodname, &$args) {
global $soap_server_fault;
- unset($soap_server_fault);
+
+ $soap_server_fault = null;
+
if ($this->callHandler) {
return @call_user_func_array($this->callHandler,array($methodname,$args));
}
+
set_error_handler('SOAP_ServerErrorHandler');
+
if ($args) {
// call method with parameters
if (isset($this->soapobject) && is_object($this->soapobject)) {
@@ -247,10 +249,12 @@
$ret = @call_user_func($methodname);
}
}
+
restore_error_handler();
- return isset($soap_server_fault)?$soap_server_fault:$ret;
+
+ return is_null($soap_server_fault) ? $ret : $soap_server_fault;
}
But apparently it is not what was causing the problem.
The reported problem is on SOAP_Fault, that class was no touched in three months !
Arnaud.