Skip to content

Commit 572b2b7

Browse files
committed
ext/soap: Use bool type for _bailout variable
1 parent b71951b commit 572b2b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/soap/soap.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static void soap_error_handler(int error_num, zend_string *error_filename, uint3
9292
bool _old_in_compilation = CG(in_compilation); \
9393
zend_execute_data *_old_current_execute_data = EG(current_execute_data); \
9494
zval *_old_stack_top = EG(vm_stack_top); \
95-
int _bailout = 0;\
95+
bool _bailout = false;\
9696
SOAP_GLOBAL(use_soap_error_handler) = 1;\
9797
SOAP_GLOBAL(error_code) = "Client";\
9898
Z_OBJ(SOAP_GLOBAL(error_object)) = Z_OBJ_P(ZEND_THIS);\
@@ -104,7 +104,7 @@ static void soap_error_handler(int error_num, zend_string *error_filename, uint3
104104
EG(current_execute_data) = _old_current_execute_data; \
105105
if (EG(exception) == NULL || \
106106
!instanceof_function(EG(exception)->ce, soap_fault_class_entry)) {\
107-
_bailout = 1;\
107+
_bailout = true;\
108108
}\
109109
if (_old_stack_top != EG(vm_stack_top)) { \
110110
while (EG(vm_stack)->prev != NULL && \
@@ -2189,7 +2189,7 @@ static bool do_request(zval *this_ptr, xmlDoc *request, const char *location, co
21892189
int buf_size;
21902190
zval func;
21912191
zval params[5];
2192-
int _bailout = 0;
2192+
bool _bailout = false;
21932193

21942194
ZVAL_NULL(response);
21952195

@@ -2232,7 +2232,7 @@ static bool do_request(zval *this_ptr, xmlDoc *request, const char *location, co
22322232
ZVAL_STR_COPY(Z_CLIENT_LAST_RESPONSE_P(this_ptr), Z_STR_P(response));
22332233
}
22342234
} zend_catch {
2235-
_bailout = 1;
2235+
_bailout = true;
22362236
} zend_end_try();
22372237
zval_ptr_dtor(&func);
22382238
zval_ptr_dtor(&params[2]);

0 commit comments

Comments
 (0)