@@ 198-206 (lines=9) @@ | ||
195 | $mDesc .= '* @return ' . xmlrpc_2_php_type($mSig[0]) . " (or an {$namespace}Response obj instance if call fails)\n*/\n"; |
|
196 | ||
197 | $innerCode .= "\$res = \${$this_}client->send(\$req, $timeout, '$protocol');\n"; |
|
198 | if ($decodeFault) { |
|
199 | if (is_string($faultResponse) && ((strpos($faultResponse, '%faultCode%') !== false) || (strpos($faultResponse, '%faultString%') !== false))) { |
|
200 | $respCode = "str_replace(array('%faultCode%', '%faultString%'), array(\$res->faultCode(), \$res->faultString()), '" . str_replace("'", "''", $faultResponse) . "')"; |
|
201 | } else { |
|
202 | $respCode = var_export($faultResponse, true); |
|
203 | } |
|
204 | } else { |
|
205 | $respCode = '$res'; |
|
206 | } |
|
207 | if ($decodePhpObjects) { |
|
208 | $innerCode .= "if (\$res->faultcode()) return $respCode; else return \$encoder->decode(\$res->value(), array('decode_php_objs'));"; |
|
209 | } else { |
@@ 957-965 (lines=9) @@ | ||
954 | $mDesc .= '* @return ' . $this->xmlrpc2PhpType($mSig[0]) . " (or an {$namespace}Response obj instance if call fails)\n*/\n"; |
|
955 | ||
956 | $innerCode .= "\$res = \${$this_}client->send(\$req, $timeout, '$protocol');\n"; |
|
957 | if ($decodeFault) { |
|
958 | if (is_string($faultResponse) && ((strpos($faultResponse, '%faultCode%') !== false) || (strpos($faultResponse, '%faultString%') !== false))) { |
|
959 | $respCode = "str_replace(array('%faultCode%', '%faultString%'), array(\$res->faultCode(), \$res->faultString()), '" . str_replace("'", "''", $faultResponse) . "')"; |
|
960 | } else { |
|
961 | $respCode = var_export($faultResponse, true); |
|
962 | } |
|
963 | } else { |
|
964 | $respCode = '$res'; |
|
965 | } |
|
966 | if ($decodePhpObjects) { |
|
967 | $innerCode .= "if (\$res->faultcode()) return $respCode; else return \$encoder->decode(\$res->value(), array('decode_php_objs'));"; |
|
968 | } else { |