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

From: Date: Mon, 29 Dec 2003 15:55:56 +0000
Subject: Re: [SOAP] Returning Object Through PEAR::SOAP and troubles with php5
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-1275@lists.php.net to get a copy of this message
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.

« previous php.soap (#1275) next »