RE: [SOAP] Testers for 0.7.5 needed
| From: | Alok K. Dhir | Date: | Tue, 15 Jul 2003 20:56:10 +0000 |
| Subject: | RE: [SOAP] Testers for 0.7.5 needed | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-813@lists.php.net to get a copy of this message | ||
The problem is more likely in the handling of the SOAP_Fault return object.
I am able to instantiate SOAP_Fault object all day long with nary a hiccup
in the server. It's somewhere in Server.php if I had to guess...
> -----Original Message-----
> From: Arnaud Limbourg [mailto:arnaud.limbourg@club-internet.fr]
> Sent: Tuesday, July 15, 2003 4:10 PM
> To: George Schlossnagle
> Cc: Alok K. Dhir; 'SOAP'
> Subject: Re: [SOAP] Testers for 0.7.5 needed
>
>
> > 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.
>
>
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>