@@ -2563,7 +2563,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
2563
2563
}
2564
2564
2565
2565
if (zend_hash_find (Z_OBJPROP_P (this_ptr ), "trace" , sizeof ("trace" ), (void * * ) & trace ) == SUCCESS &&
2566
- Z_LVAL_PP (trace ) > 0 ) {
2566
+ Z_TYPE_PP ( trace ) == IS_LONG && Z_LVAL_PP (trace ) > 0 ) {
2567
2567
add_property_stringl (this_ptr , "__last_request" , buf , buf_size , 1 );
2568
2568
}
2569
2569
@@ -2598,7 +2598,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
2598
2598
}
2599
2599
ret = FALSE;
2600
2600
} else if (zend_hash_find (Z_OBJPROP_P (this_ptr ), "trace" , sizeof ("trace" ), (void * * ) & trace ) == SUCCESS &&
2601
- Z_LVAL_PP (trace ) > 0 ) {
2601
+ Z_TYPE_PP ( trace ) == IS_LONG && Z_LVAL_PP (trace ) > 0 ) {
2602
2602
add_property_stringl (this_ptr , "__last_response" , Z_STRVAL_P (response ), Z_STRLEN_P (response ), 1 );
2603
2603
}
2604
2604
zval_ptr_dtor (& params [4 ]);
@@ -2903,7 +2903,7 @@ PHP_METHOD(SoapClient, __call)
2903
2903
}
2904
2904
2905
2905
/* Add default headers */
2906
- if (zend_hash_find (Z_OBJPROP_P (this_ptr ), "__default_headers" , sizeof ("__default_headers" ), (void * * ) & tmp )== SUCCESS ) {
2906
+ if (zend_hash_find (Z_OBJPROP_P (this_ptr ), "__default_headers" , sizeof ("__default_headers" ), (void * * ) & tmp ) == SUCCESS && Z_TYPE_PP ( tmp ) == IS_ARRAY ) {
2907
2907
HashTable * default_headers = Z_ARRVAL_P (* tmp );
2908
2908
if (soap_headers ) {
2909
2909
if (!free_soap_headers ) {
0 commit comments