cvs: pear /SOAP Client.php

From: Date: Tue, 24 Jun 2003 05:52:50 +0000
Subject: cvs: pear /SOAP Client.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-11149@lists.php.net to get a copy of this message
arnaud Tue Jun 24 01:52:50 2003 EDT Modified files: /pear/SOAP Client.php Log: * test on method parameter fails if passed value 0 # spotted by Jonathan Schilling * minor phpdoc and CS Index: pear/SOAP/Client.php diff -u pear/SOAP/Client.php:1.59 pear/SOAP/Client.php:1.60 --- pear/SOAP/Client.php:1.59 Wed Jun 11 05:57:51 2003 +++ pear/SOAP/Client.php Tue Jun 24 01:52:50 2003 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: Client.php,v 1.59 2003/06/11 09:57:51 arnaud Exp $ +// $Id: Client.php,v 1.60 2003/06/24 05:52:50 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.59 2003/06/11 09:57:51 arnaud Exp $ + * @version $Id: Client.php,v 1.60 2003/06/24 05:52:50 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 @@ -285,8 +285,8 @@ * Sets option to use with the transports layers. * * An example of such use is - * $soapclient->setopt('curl', CURLOPT_VERBOSE, 1) - * to affect an option when using SSL connections + * $soapclient->setOpt('curl', CURLOPT_VERBOSE, 1) + * to pass a specific option to when using an SSL connection. * * @access public * @param string $category category to which the option applies @@ -294,11 +294,12 @@ * @param string $value option value * @return void */ - function setOpt($category, $option, $value=NULL) + function setOpt($category, $option, $value = null) { - if ($value) { - if (!isset($this->__options[$category])) + if (!is_null($value)) { + if (!isset($this->__options[$category])) { $this->__options[$category] = array(); + } $this->__options[$category][$option] = $value; } else { $this->__options[$category] = $option; @@ -306,21 +307,21 @@ } /** - * SOAP_Client::__call - * - * Overload extension support - * if the overload extension is loaded, you can call the client class - * with a soap method name - * $soap = new SOAP_Client(....); - * $value = $soap->getStockQuote('MSFT'); - * - * @param string method - * @param array args - * @param string retur_value - * - * @return boolean - * @access public - */ + * SOAP_Client::__call + * + * Overload extension support + * if the overload extension is loaded, you can call the client class + * with a soap method name + * $soap = new SOAP_Client(....); + * $value = $soap->getStockQuote('MSFT'); + * + * @param string method + * @param array args + * @param string retur_value + * + * @return boolean + * @access public + */ function &__call($method, &$args, &$return_value) { // XXX overloading lowercases the method name, we

« previous php.pear.cvs (#11149) next »