Commit 41b4d43d3ec for php.net
commit 41b4d43d3ec4ece5d48c320f90aa611c50b7c01b
Author: Gina Peter Banyard <girgias@php.net>
Date: Sun Aug 2 20:11:24 2026 +0100
Zend: ZPP use uint32_t type for variable storing result of ZEND_CALL_NUM_ARGS()
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 299d5d57a24..517c5894e1d 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -198,10 +198,10 @@ ZEND_API zend_string *zend_zval_get_legacy_type(const zval *arg) /* {{{ */
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_none_error(void) /* {{{ */
{
- int num_args = ZEND_CALL_NUM_ARGS(EG(current_execute_data));
+ uint32_t num_args = ZEND_CALL_NUM_ARGS(EG(current_execute_data));
zend_string *func_name = get_active_function_or_method_name();
- zend_argument_count_error("%s() expects exactly 0 arguments, %d given", ZSTR_VAL(func_name), num_args);
+ zend_argument_count_error("%s() expects exactly 0 arguments, %" PRIu32 " given", ZSTR_VAL(func_name), num_args);
zend_string_release(func_name);
}