Skip to content

Commit cfe2e11

Browse files
committed
ext/soap: Use bool instead of int
1 parent 5e7c876 commit cfe2e11

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ext/soap/php_sdl.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ void sdl_restore_uri_credentials(sdlCtx *ctx)
294294

295295
#define SAFE_STR(a) ((a)?((const char *)a):"")
296296

297-
static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include)
297+
static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, bool include)
298298
{
299299
sdlPtr tmpsdl = ctx->sdl;
300300
xmlDocPtr wsdl;
@@ -363,7 +363,7 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include)
363363
xmlAttrPtr tmp = get_attribute(trav->properties, "location");
364364
if (tmp) {
365365
xmlChar *uri = schema_location_construct_uri(tmp);
366-
load_wsdl_ex(this_ptr, (char*)uri, ctx, 1);
366+
load_wsdl_ex(this_ptr, (char*)uri, ctx, true);
367367
xmlFree(uri);
368368
}
369369

@@ -556,7 +556,7 @@ static void wsdl_soap_binding_body(sdlCtx* ctx, xmlNodePtr node, char* wsdl_soap
556556
zend_hash_init(&ht, 0, NULL, delete_parameter, 0);
557557
while (*parts) {
558558
sdlParamPtr param;
559-
int found = 0;
559+
bool found = false;
560560
char *end;
561561

562562
while (*parts == ' ') ++parts;
@@ -571,7 +571,7 @@ static void wsdl_soap_binding_body(sdlCtx* ctx, xmlNodePtr node, char* wsdl_soap
571571
*x_param = *param;
572572
param->paramName = NULL;
573573
zend_hash_next_index_insert_ptr(&ht, x_param);
574-
found = 1;
574+
found = true;
575575
break;
576576
}
577577
} ZEND_HASH_FOREACH_END();
@@ -708,7 +708,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri)
708708
zend_hash_init(&ctx.services, 0, NULL, NULL, 0);
709709

710710
zend_try {
711-
load_wsdl_ex(this_ptr, struri, &ctx, 0);
711+
load_wsdl_ex(this_ptr, struri, &ctx, false);
712712
schema_pass2(&ctx);
713713

714714
uint32_t n = zend_hash_num_elements(&ctx.services);
@@ -717,7 +717,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri)
717717
for (uint32_t i = 0; i < n; i++) {
718718
xmlNodePtr service, tmp;
719719
xmlNodePtr trav, port;
720-
int has_soap_port = 0;
720+
bool has_soap_port = false;
721721

722722
service = tmp = zend_hash_get_current_data_ptr(&ctx.services);
723723

@@ -787,7 +787,7 @@ static sdlPtr load_wsdl(zval *this_ptr, char *struri)
787787
soap_error0(E_ERROR, "Parsing WSDL: No address associated with <port>");
788788
}
789789
}
790-
has_soap_port = 1;
790+
has_soap_port = true;
791791

792792
location = get_attribute(address->properties, "location");
793793
if (!location) {

0 commit comments

Comments
 (0)