File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1256,7 +1256,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_value_error(uint32_t arg_num
1256
1256
#define ZEND_PARSE_PARAMETERS_START_EX (flags , min_num_args , max_num_args ) do { \
1257
1257
const int _flags = (flags); \
1258
1258
uint32_t _min_num_args = (min_num_args); \
1259
- int _max_num_args = (max_num_args); /* TODO uint32_t */ \
1259
+ uint32_t _max_num_args = (uint32_t) ( max_num_args); \
1260
1260
uint32_t _num_args = EX_NUM_ARGS(); \
1261
1261
uint32_t _i = 0; \
1262
1262
zval *_real_arg, *_arg = NULL; \
@@ -1274,8 +1274,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_value_error(uint32_t arg_num
1274
1274
\
1275
1275
do { \
1276
1276
if (UNEXPECTED(_num_args < _min_num_args) || \
1277
- (UNEXPECTED (_num_args > _max_num_args ) && \
1278
- EXPECTED (_max_num_args >= 0 ))) { \
1277
+ UNEXPECTED(_num_args > _max_num_args)) { \
1279
1278
if (!(_flags & ZEND_PARSE_PARAMS_QUIET)) { \
1280
1279
zend_wrong_parameters_count_error(_min_num_args, _max_num_args); \
1281
1280
} \
You can’t perform that action at this time.
0 commit comments