Source for file interop_test_functions.php
Documentation is available at interop_test_functions.php
require_once("SOAP/Parser.php");
require_once("SOAP/Value.php");
# figure out which has the least fractional digits
# always use at least 2 digits of precision
return bccomp ($f1, $f2, $d) == 0;
if (($f1 == 'true' || $f1 === TRUE || $f1 != 0 ) &&
($f2 == 'true' || $f2 === TRUE || $f2 != 0 )) return TRUE;
if (($f1 == 'false' || $f1 === FALSE || $f1 == 0 ) &&
($f2 == 'false' || $f2 === FALSE || $f2 == 0 )) return TRUE;
# handle dateTime comparison
if ($e1_type == "string") {
require_once 'SOAP/Type/dateTime.php';
$dt = & new SOAP_Type_dateTime ();
$ok = $dt->compare ($e1, $e2) == 0;
if (gettype($ar1) != 'array' || gettype($ar2) != 'array') return FALSE;
if (count($diff) == 0 ) return TRUE;
# diff failed, do a full check of the array
foreach ($ar1 as $k => $v) {
#print "comparing $v == $ar2[$k]\n";
# we'll only compare to 3 digits of precision
#$msg = preg_replace('/\r|\n/', ' ', $msg);
$response = & new SOAP_Parser ($msg);
return $response->fault ->getFault ();
$return = & $response->getResponse ();
$v = & $response->decode ($return);
Documentation generated on Mon, 11 Mar 2019 15:06:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|