On 10/7/05, Denis Gerasimov <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> I am facing serious troubles when using PEAR::SOAP with PHP 4.4.0 while it
> works fine with PHP 4.3.9.
> PHP 4.4.0 produces many notices like these:
>
> Notice: Only variable references should be returned by reference in
> C:\PHP4\PEAR\SOAP\Value.php on line 118
> Notice: Only variable references should be returned by reference in
> C:\PHP4\PEAR\SOAP\WSDL.php on line 668
> Notice: Only variable references should be returned by reference in
> C:\PHP4\PEAR\SOAP\Value.php on line 118
>
> and so on.
>
> What is the problem?
>
> Currently I have rolled back to version 4.3.9 but this problem will appear
> again after upgrade, of course, - is there any solution (say, php.ini
> setting etc.)?
>
> Have a great day,
>

The solution is to fix the SOAP package. Instead of:
return $serializer->....
make it:
$ret = $serializer->...
return $ret;

This notice was added because PHP has memory corruption issues when
doing this particular thing (it always has).

--
Justin Patrin

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

Reply via email to