@@ -2560,7 +2560,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
2560
2560
}
2561
2561
2562
2562
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 ) {
2564
2564
add_property_stringl (this_ptr , "__last_request" , buf , buf_size , 1 );
2565
2565
}
2566
2566
@@ -2600,7 +2600,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
2600
2600
}
2601
2601
ret = FALSE;
2602
2602
} 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 ) {
2604
2604
add_property_stringl (this_ptr , "__last_response" , Z_STRVAL_P (response ), Z_STRLEN_P (response ), 1 );
2605
2605
}
2606
2606
xmlFree (buf );
@@ -2640,7 +2640,7 @@ static void do_soap_call(zval* this_ptr,
2640
2640
SOAP_CLIENT_BEGIN_CODE ();
2641
2641
2642
2642
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 ) {
2644
2644
zend_hash_del (Z_OBJPROP_P (this_ptr ), "__last_request" , sizeof ("__last_request" ));
2645
2645
zend_hash_del (Z_OBJPROP_P (this_ptr ), "__last_response" , sizeof ("__last_response" ));
2646
2646
}
0 commit comments