Skip to content

Commit ff70b40

Browse files
committed
fix type in fix for #69085
1 parent 920a0af commit ff70b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/soap/soap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,7 +2560,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
25602560
}
25612561

25622562
if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS &&
2563-
(Z_LVAL_PP(trace) == IS_BOOL || Z_LVAL_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
2563+
(Z_TYPE_PP(trace) == IS_BOOL || Z_TYPE_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
25642564
add_property_stringl(this_ptr, "__last_request", buf, buf_size, 1);
25652565
}
25662566

@@ -2600,7 +2600,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
26002600
}
26012601
ret = FALSE;
26022602
} else if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS &&
2603-
(Z_LVAL_PP(trace) == IS_BOOL || Z_LVAL_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
2603+
(Z_TYPE_PP(trace) == IS_BOOL || Z_TYPE_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
26042604
add_property_stringl(this_ptr, "__last_response", Z_STRVAL_P(response), Z_STRLEN_P(response), 1);
26052605
}
26062606
xmlFree(buf);
@@ -2640,7 +2640,7 @@ static void do_soap_call(zval* this_ptr,
26402640
SOAP_CLIENT_BEGIN_CODE();
26412641

26422642
if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS &&
2643-
(Z_LVAL_PP(trace) == IS_BOOL || Z_LVAL_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
2643+
(Z_TYPE_PP(trace) == IS_BOOL || Z_TYPE_PP(trace) == IS_LONG) && Z_LVAL_PP(trace) != 0) {
26442644
zend_hash_del(Z_OBJPROP_P(this_ptr), "__last_request", sizeof("__last_request"));
26452645
zend_hash_del(Z_OBJPROP_P(this_ptr), "__last_response", sizeof("__last_response"));
26462646
}

0 commit comments

Comments
 (0)