PATCH: Options Bug in Client.php (was Possible Bug in Transport.php?)

From: Date: Fri, 23 May 2003 18:52:58 +0000
Subject: PATCH: Options Bug in Client.php (was Possible Bug in Transport.php?)
References: 1 2 3  Groups: php.soap 
Request: Send a blank email to php-soap+get-656@lists.php.net to get a copy of this message
I'm glad my sloppy code has discovered (and led to the fix) of bugs. If it's any help I patched by doing this: Client.php from this (starts on Line 309 for version .7.3): function setOpt($category, $option, $value=NULL) { if ($value) { if (in_array($category, $this->__optionCategories)) { $this->__options[$category][$option] = $value; } } else { $this->__options[$category] = $option; } } to this: function setOpt($category, $option, $value=NULL) { if ($value) { if (in_array($category, $this->__optionCategories)) { if (!is_array($this->__options[$category])) $this->__options[$category] = array(); $this->__options[$category][$option] = $value; } } else { $this->__options[$category] = $option; } } I don't know how to use diff yet (probablly easy huh?) HTH /B ----- Original Message ----- From: "Shane Caraveo" <shane@caraveo.com> To: "David Busby" <busby@pnts.com> Cc: <soap@lists.php.net> Sent: Friday, May 23, 2003 10:20 Subject: Re: [SOAP] Possible Bug in Transport/HTTP.php > This is a bug, I'll look into it this weekend. > Shane > > David Busby wrote: > > I have solved my issue, I was creating CURL opt wrong that must be an array > > > > This works (wrapped for readability): > > $opt = array( > > 'namespace'=>'urn:my_rpc', > > 'trace'=>1, > > 'style'=>'rpc', > > 'timeout'=>30, > > 'curl'=>array( > > CURLOPT_VERBOSE=>0, > > CURLOPT_MUTE=>1, > > CURLOUT_SSL_VERIFYHOST=>0 > > ) > > ); > > > > Or this > > > > $sc->setOpt('curl',array(CURLOPT_VERBOSE=>0,CURLOPT_MUTE=>1,CURLOPT_SSL_VERI > > FYHOST=>0)); > > $opt = > > array('namespace'=>'urn:my_rpc','trace'=>1,'style'=>'rpc','timeout'=>30); > > > > This does not so don't do it > > $sc->setOpt('curl',CURLOPT_VERBOSE,0); > > $sc->setOpt('curl',CURLOPT_MUTE,1); > > $sc->setOpt('curl',CURLOPT_SSL_VERIFYHOST,0); > > > > > > Maybe place this on some DOC page for some other intermediates (like me) > > > > /B > > > > >

« previous php.soap (#656) next »