Re: [SOAP] Returning Object Through PEAR::SOAP and troubles with php5
| From: | Jan Skopek | Date: | Tue, 30 Dec 2003 14:36:51 +0000 |
| Subject: | Re: [SOAP] Returning Object Through PEAR::SOAP and troubles with php5 | ||
| References: | 1 2 3 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1278@lists.php.net to get a copy of this message | ||
Oh sorry my fault!
forget the last answer...
greets
Jan
"Jan Skopek" <skopek@gmx.de> schrieb im Newsbeitrag
news:20031230143548.68038.qmail@pb1.pair.com...
> I use PHP5 too.
> Fixed the problem in line 582, but now i get error
>
> Fatal error: Trying to add reference to invalid object in
> C:\PHP\PEAR\pear\SOAP\Client.php on line 585
>
>
>
>
> "Arnaud Limbourg" <arnaud.limbourg.prestataire@cegetel.fr> schrieb im
> Newsbeitrag news:3FF04E8C.9090509@cegetel.fr...
> > > 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.