Skip to content

Commit 4df72b8

Browse files
committed
Merge pull request #1 from Degola/master
Fixed some notices
2 parents a20bc25 + 56db62d commit 4df72b8

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

lib/class.soap_transport_http.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function connect($connection_timeout=0,$response_timeout=30){
339339
if (isset($this->certRequest['verifyhost'])) {
340340
$this->setCurlOption(CURLOPT_SSL_VERIFYHOST, $this->certRequest['verifyhost']);
341341
} else {
342-
$this->setCurlOption(CURLOPT_SSL_VERIFYHOST, 1);
342+
$this->setCurlOption(CURLOPT_SSL_VERIFYHOST, 2);
343343
}
344344
if (isset($this->certRequest['sslcertfile'])) {
345345
$this->setCurlOption(CURLOPT_SSLCERT, $this->certRequest['sslcertfile']);

lib/class.soapclient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,10 @@ function call($operation,$params=array(),$namespace='http://tempuri.org',$soapAc
324324
$this->fault = true;
325325
foreach($return as $k => $v){
326326
$this->$k = $v;
327-
$this->debug("$k = $v<br>");
327+
if(is_scalar($v))
328+
$this->debug("$k = $v<br>");
329+
else
330+
$this->debug("$k = ".print_r($v, true)."<br>");
328331
}
329332
return $return;
330333
} elseif ($style == 'document') {

lib/nusoap.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,7 @@ function connect($connection_timeout=0,$response_timeout=30){
24932493
if (isset($this->certRequest['verifyhost'])) {
24942494
$this->setCurlOption(CURLOPT_SSL_VERIFYHOST, $this->certRequest['verifyhost']);
24952495
} else {
2496-
$this->setCurlOption(CURLOPT_SSL_VERIFYHOST, 1);
2496+
$this->setCurlOption(CURLOPT_SSL_VERIFYHOST, 2);
24972497
}
24982498
if (isset($this->certRequest['sslcertfile'])) {
24992499
$this->setCurlOption(CURLOPT_SSLCERT, $this->certRequest['sslcertfile']);
@@ -7487,7 +7487,10 @@ function call($operation,$params=array(),$namespace='http://tempuri.org',$soapAc
74877487
$this->fault = true;
74887488
foreach($return as $k => $v){
74897489
$this->$k = $v;
7490-
$this->debug("$k = $v<br>");
7490+
if(is_scalar($v))
7491+
$this->debug("$k = $v<br>");
7492+
else
7493+
$this->debug("$k = ".print_r($v, true)."<br/>");
74917494
}
74927495
return $return;
74937496
} elseif ($style == 'document') {

0 commit comments

Comments
 (0)