[PHP-CVS] [php-src] master: Zend: ZPP use uint32_t type for variable storing result of ZEND_CALL_NUM_ARGS()
[email protected] (Gina Peter Banyard) Sun, 2 Aug 2026 19:20:13 +0000
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Gina Peter Banyard (Girgias)
Date: 2026-08-02T20:19:49+01:00
Commit: https://github.com/php/php-src/commit/41b4d43d3ec4ece5d48c320f90aa611c50b7c01b
Raw diff: https://github.com/php/php-src/commit/41b4d43d3ec4ece5d48c320f90aa611c50b7c01b.diff
Zend: ZPP use uint32_t type for variable storing result of ZEND_CALL_NUM_ARGS()
Changed paths:
M Zend/zend_API.c
Diff:
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 299d5d57a249..517c5894e1d0 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);
}