[php-src] master: ext/soap: Use bool type instead of int type for functions_all field

From: Date: Sat, 12 Sep 2026 00:04:17 +0000
Subject: [php-src] master: ext/soap: Use bool type instead of int type for functions_all field
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141169@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Date: 2026-09-12T01:00:59+01:00 Commit: https://github.com/php/php-src/commit/8b1668d84245dbdecb3c094ec86c9305c84e2a57 Raw diff: https://github.com/php/php-src/commit/8b1668d84245dbdecb3c094ec86c9305c84e2a57.diff ext/soap: Use bool type instead of int type for functions_all field Changed paths: M ext/soap/php_soap.h M ext/soap/soap.c Diff: diff --git a/ext/soap/php_soap.h b/ext/soap/php_soap.h index f35f357ae394..8d127ef1e5d5 100644 --- a/ext/soap/php_soap.h +++ b/ext/soap/php_soap.h @@ -75,7 +75,7 @@ struct _soapService { struct _soap_functions { HashTable *ft; - int functions_all; + bool functions_all; } soap_functions; struct _soap_class { diff --git a/ext/soap/soap.c b/ext/soap/soap.c index d89ef349799e..752e1c6361e1 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -1098,7 +1098,7 @@ PHP_METHOD(SoapServer, __construct) service->version = version; service->type = SOAP_FUNCTIONS; - service->soap_functions.functions_all = FALSE; + service->soap_functions.functions_all = false; service->soap_functions.ft = zend_new_array(0); SOAP_SERVER_BEGIN_CODE(); @@ -1236,7 +1236,7 @@ PHP_METHOD(SoapServer, getFunctions) ft = &(Z_OBJCE(service->soap_object)->function_table); } else if (service->type == SOAP_CLASS) { ft = &service->soap_class.ce->function_table; - } else if (service->soap_functions.functions_all == TRUE) { + } else if (service->soap_functions.functions_all) { ft = EG(function_table); } else if (service->soap_functions.ft != NULL) { zval *name; @@ -1277,7 +1277,7 @@ PHP_METHOD(SoapServer, addFunction) zval *tmp_function; if (service->soap_functions.ft == NULL) { - service->soap_functions.functions_all = FALSE; + service->soap_functions.functions_all = false; service->soap_functions.ft = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(function_name))); } @@ -1316,7 +1316,7 @@ PHP_METHOD(SoapServer, addFunction) RETURN_THROWS(); } if (service->soap_functions.ft == NULL) { - service->soap_functions.functions_all = FALSE; + service->soap_functions.functions_all = false; service->soap_functions.ft = zend_new_array(0); } @@ -1335,7 +1335,7 @@ PHP_METHOD(SoapServer, addFunction) efree(service->soap_functions.ft); service->soap_functions.ft = NULL; } - service->soap_functions.functions_all = TRUE; + service->soap_functions.functions_all = true; } else { zend_argument_value_error(1, "must be SOAP_FUNCTIONS_ALL when an integer is passed"); } @@ -1620,7 +1620,7 @@ PHP_METHOD(SoapServer, handle) } function_table = &((Z_OBJCE_P(soap_obj))->function_table); } else { - if (service->soap_functions.functions_all == TRUE) { + if (service->soap_functions.functions_all) { function_table = EG(function_table); } else { function_table = service->soap_functions.ft;

« previous php.cvs (#141169) next »