PHP Classes

Cannot pass parameter 2 by reference

Recommend this page to a friend!

      SOAP server class  >  All threads  >  Cannot pass parameter 2 by reference  >  (Un) Subscribe thread alerts  
Subject:Cannot pass parameter 2 by reference
Summary:soapserverclass.php on line 324
Messages:5
Author:George M Jempty
Date:2008-09-17 17:14:14
Update:2012-04-21 21:57:38
 

  1. Cannot pass parameter 2 by reference   Reply   Report abuse  
Picture of George M Jempty George M Jempty - 2008-09-17 17:14:14
Any insight into this would be appreciated: I got this when trying to run date.soap.php.

  2. Re: Cannot pass parameter 2 by reference   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-09-19 04:01:01 - In reply to message 1 from George M Jempty
There was a bug with passing parameters that need to be passed by reference. A fixed version was uploaded. Thank you for reporting.

  3. Re: Cannot pass parameter 2 by reference   Reply   Report abuse  
Picture of Jordi Morillo Jordi Morillo - 2012-03-22 13:57:10 - In reply to message 2 from Manuel Lemos
<br />
<b>Deprecated</b>: Assigning the return value of new by reference is deprecated in <b>/var/www/vhosts/**********/httpdocs/soap/soapserverclass.php</b> on line <b>317</b><br />
<br />
<b>Fatal error</b>: Cannot pass parameter 3 by reference in <b>/var/www/vhosts/**********/httpdocs/soap/datesoapserverclass.php</b> on line <b>34</b><br />

  4. Re: Cannot pass parameter 2 by reference   Reply   Report abuse  
Picture of Jordi Morillo Jordi Morillo - 2012-03-22 13:58:22 - In reply to message 3 from Jordi Morillo
Hello, after testing gives that error:

  5. Re: Cannot pass parameter 2 by reference   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-04-21 21:57:38 - In reply to message 4 from Jordi Morillo
You need to change it to assign the array of types to a variable and then pass that variable to the processarguments function instead of the literal array value.