Re: PHP 4.4.0 references problems when using PEAR::SOAP

From: Date: Fri, 07 Oct 2005 16:22:51 +0000
Subject: Re: PHP 4.4.0 references problems when using PEAR::SOAP
References: 1  Groups: php.general php.pear.general 
Request: Send a blank email to php-general+get-223737@lists.php.net to get a copy of this message
On 10/7/05, Denis Gerasimov <denis.gerasimov@team-force.org> 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

« previous php.general (#223737) next »