]> granicus.if.org Git - php/commitdiff
fix type in fix for #69085
authorRemi Collet <remi@php.net>
Mon, 13 Apr 2015 12:39:11 +0000 (14:39 +0200)
committerRemi Collet <remi@php.net>
Mon, 13 Apr 2015 12:41:39 +0000 (14:41 +0200)
ext/soap/soap.c

index 41aa1ad892a37ad5ce96ee9238cc8f4f0a2c7a15..1b8f545b85518504fe40848a8a90b74a8cefaadf 100644 (file)
@@ -2560,7 +2560,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
        }
 
        if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS &&
-           (Z_LVAL_PP(trace) == IS_BOOL || Z_LVAL_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
+           (Z_TYPE_PP(trace) == IS_BOOL || Z_TYPE_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
                add_property_stringl(this_ptr, "__last_request", buf, buf_size, 1);
        }
 
@@ -2600,7 +2600,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
                }
                ret = FALSE;
        } else if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS &&
-                  (Z_LVAL_PP(trace) == IS_BOOL || Z_LVAL_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
+                  (Z_TYPE_PP(trace) == IS_BOOL || Z_TYPE_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
                add_property_stringl(this_ptr, "__last_response", Z_STRVAL_P(response), Z_STRLEN_P(response), 1);
        }
        xmlFree(buf);
@@ -2640,7 +2640,7 @@ static void do_soap_call(zval* this_ptr,
        SOAP_CLIENT_BEGIN_CODE();
 
        if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS &&
-           (Z_LVAL_PP(trace) == IS_BOOL || Z_LVAL_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
+           (Z_TYPE_PP(trace) == IS_BOOL || Z_TYPE_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
                zend_hash_del(Z_OBJPROP_P(this_ptr), "__last_request", sizeof("__last_request"));
                zend_hash_del(Z_OBJPROP_P(this_ptr), "__last_response", sizeof("__last_response"));
        }