Re: Returning Object Through PEAR::SOAP and troubles with php5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



in php4.3.4 this method works fine, but in php5 I got this fatal error:

Trying to reference a non valid object: libs/PEAR/SOAP/Client.php on line
582

that is: return array_shift($returnArray)

The current SOAP implementation is not compatible with php5. Shane Caraveo has already started work on a new implementation for php5 only.


With php5 you cannot do

return array_shift($returnArray)

you must use hold the value in a variable

$t = array_shift($returnArray);
return $t;

will work. But there are probably other places where it will break.

Arnaud.

--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux