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

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

 



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 3FF04E8C.9090509@cegetel.fr">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.

-- 
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