Permalink
Browse files

* fix #898

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP_Interop/trunk@160986 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent ca33472 commit 8188af3d3b5e4c00aa5e7730432ac92406ed5ea8 Arnaud Limbourg committed Jun 10, 2004
View
@@ -93,7 +93,7 @@ function &echoFloatArray($inputFloatArray)
function &echoStruct($inputStruct)
{
- if (get_class($inputStruct)=='soapstruct')
+ if (strtolower(get_class($inputStruct)) == 'soapstruct')
return $inputStruct->__to_soap();
return $inputStruct;
}
View
@@ -75,7 +75,7 @@ function &echoSimpleTypesAsStruct(&$string, &$int, &$float)
function &echoNestedStruct(&$struct)
{
- if (array_key_exists('__to_soap',get_class_methods($struct)))
+ if (array_key_exists('__to_soap', strtolower(get_class_methods($struct))))
return $struct->__to_soap();
return $struct;
}
View
@@ -171,7 +171,7 @@ function _saveResults($endpoint_id, &$soap_test) {
if ($soap_test->headers) {
foreach ($soap_test->headers as $h) {
$destination = 0;
- if (get_class($h) == 'soap_header') {
+ if (strtolower(get_class($h)) == 'soap_header') {
if ($h->attributes['SOAP-ENV:actor'] == 'http://schemas.xmlsoap.org/soap/actor/next') $destination = 1;
$test_name .= ":{$h->name},$destination,{$h->attributes['SOAP-ENV:mustUnderstand']}";
} else {
@@ -376,7 +376,7 @@ function doEndpointMethod(&$endpoint_info, &$soap_test) {
$hc = count($soap_test->headers);
for ($i=0; $i < $hc; $i++) {
$header =& $soap_test->headers[$i];
- if (get_class($header) != 'soap_header') {
+ if (strtolower(get_class($header)) != 'soap_header') {
// assume it's an array
$header =& new SOAP_Header($header[0], NULL, $header[1], $header[2], $header[3], $header[4]);
}
@@ -400,7 +400,7 @@ function doEndpointMethod(&$endpoint_info, &$soap_test) {
}
# we need to decode what we sent so we can compare!
- if (gettype($sent)=='object' && (get_class($sent)=='soap_value' ||
+ if (gettype($sent) == 'object' && (strtolower(get_class($sent)) == 'soap_value' ||
is_subclass_of($sent,'soap_value')))
$sent_d =& $soap->_decode($sent);
else
@@ -525,7 +525,7 @@ function doTest() {
$thc = count($soap_test->headers);
for ($thi = 0; $thi < $thc; $thi++) {
$header =& $soap_test->headers[$thi];
- if (get_class($header) == 'soap_header') {
+ if (strtolower(get_class($header)) == 'soap_header') {
if ($header->name == $m[2]) {
$gotit = $header->attributes['SOAP-ENV:actor'] == ($m[3]?SOAP_TEST_ACTOR_NEXT: SOAP_TEST_ACTOR_OTHER);
$gotit = $gotit && $header->attributes['SOAP-ENV:mustUnderstand'] == $m[4];
View
@@ -52,7 +52,7 @@ function SOAP_Interop_Test($methodname, $params, $expect=NULL) {
// determine test type
if ($params) {
$v = array_values($params);
- if (gettype($v[0]) == 'object' && get_class($v[0]) == 'soap_value')
+ if (gettype($v[0]) == 'object' && strtolower(get_class($v[0])) == 'soap_value')
$this->type = 'soapval';
}
}
@@ -91,7 +91,7 @@ function showTestResult($debug = 0) {
$hc = count($this->headers);
for ($i=0; $i < $hc; $i++) {
$h =& $this->headers[$i];
- if (get_class($h) == 'soap_header') {
+ if (strtolower(get_class($h)) == 'soap_header') {
echo "\n {$h->name},{$h->attributes['SOAP-ENV:actor']},{$h->attributes['SOAP-ENV:mustUnderstand']} : ";
} else {
@@ -45,7 +45,7 @@ function &echoStringArray($inputStringArray)
function &echoStruct($inputStruct)
{
$ns = '{http://soapinterop.org/xsd}';
- if (is_object($inputStruct) && get_class($inputStruct)=='soapstruct')
+ if (is_object($inputStruct) && strtolower(get_class($inputStruct)) == 'soapstruct')
return $inputStruct->__to_soap($ns.'echoStructReturn');
else {
if (is_object($inputStruct)) {
@@ -27,7 +27,7 @@
class SOAP_Interop_GroupDImport2 {
function &echoStruct($inputStruct)
{
- if (is_object($inputStruct) && get_class($inputStruct)=='soapstruct')
+ if (is_object($inputStruct) && strtolower(get_class($inputStruct)) == 'soapstruct')
return $inputStruct->__to_soap('Result');
else {
if (is_object($inputStruct)) {
@@ -28,7 +28,7 @@ class SOAP_Interop_GroupDImport3 {
function &echoStruct($inputStruct)
{
$ns = '{http://soapinterop.org/xsd}';
- if (is_object($inputStruct) && get_class($inputStruct)=='soapstruct')
+ if (is_object($inputStruct) && strtolower(get_class($inputStruct)) == 'soapstruct')
return $inputStruct->__to_soap($ns.'return');
else {
if (is_object($inputStruct)) {
@@ -44,7 +44,7 @@ function &echoStringArray($inputStringArray)
function &echoStruct($inputStruct)
{
- if (is_object($inputStruct) && get_class($inputStruct)=='soapstruct')
+ if (is_object($inputStruct) && strtolower(get_class($inputStruct))=='soapstruct')
return $inputStruct->__to_soap('return');
else {
if (is_object($inputStruct)) {

0 comments on commit 8188af3

Please sign in to comment.