Re: cvs: pear(ZEND_ENGINE_1) /SOAP Client.php
| From: | Arnaud Limbourg | Date: | Tue, 31 Aug 2004 17:41:31 +0000 |
| Subject: | Re: cvs: pear(ZEND_ENGINE_1) /SOAP Client.php | ||
| References: | 1 2 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-23538@lists.php.net to get a copy of this message | ||
I'll have a look, thanks for the tip.
Alan Knowles wrote:
That wont work, unfortunatly - have a look at the code in dataobjects. due to a change in PHP5.0.1, as far as I know the only way to do it, is to create a base class (one for PHP4, one for PHP5), eval() the definition of the PHP4 one (as it produces fatal parse errors on PHP5) Regards Alan Arnaud Limbourg wrote:arnaud Mon Aug 30 13:12:39 2004 EDTModified files: (Branch: ZEND_ENGINE_1) /pear/SOAP Client.php Log:* fix #1492 : make __call work under PHP5 http://cvs.php.net/diff.php/pear/SOAP/Client.php?r1=1.62.2.1&r2=1.62.2.2&ty=u Index: pear/SOAP/Client.php diff -u pear/SOAP/Client.php:1.62.2.1 pear/SOAP/Client.php:1.62.2.2--- pear/SOAP/Client.php:1.62.2.1 Sun Aug 22 08:41:56 2004 +++ pear/SOAP/Client.php Mon Aug 30 13:12:39 2004@@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> OriginalAuthor | // +----------------------------------------------------------------------+// -// $Id: Client.php,v 1.62.2.1 2004/08/22 12:41:56 arnaud Exp $ +// $Id: Client.php,v 1.62.2.2 2004/08/30 17:12:39 arnaud Exp $ // require_once 'SOAP/Value.php'; @@ -38,7 +38,7 @@ * originaly based on SOAPx4 by Dietrich Ayala http://dietrich.ganx4.com/soapx4 * * @access public - * @version $Id: Client.php,v 1.62.2.1 2004/08/22 12:41:56 arnaud Exp $ + * @version $Id: Client.php,v 1.62.2.2 2004/08/30 17:12:39 arnaud Exp $ * @package SOAP::Client * @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates * @author Stig Bakken <ssb@fast.no> Conversion to PEAR @@ -322,7 +322,7 @@* @return boolean * @access public */ - function &__call($method, &$args, &$return_value) + function &__call($method, &$args, &$return_value = null) { // XXX overloading lowercases the method name, we // need to look into the wsdl and try to find