@@ -2198,8 +2198,8 @@ ZEND_API zend_opt_double ZEND_FASTCALL zend_parse_arg_double_slow(const zval *ar
2198
2198
ZEND_API zend_opt_double ZEND_FASTCALL zend_parse_arg_double_weak (const zval * arg , uint32_t arg_num );
2199
2199
ZEND_API zend_string * ZEND_FASTCALL zend_parse_arg_str_slow (zval * arg , uint32_t arg_num );
2200
2200
ZEND_API zend_string * ZEND_FASTCALL zend_parse_arg_str_weak (zval * arg , uint32_t arg_num );
2201
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow (zval * arg , zval * * dest , uint32_t arg_num );
2202
- ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_or_str_slow (zval * arg , zval * * dest , uint32_t arg_num );
2201
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_slow (zval * arg , uint32_t arg_num );
2202
+ ZEND_API bool ZEND_FASTCALL zend_parse_arg_number_or_str_slow (zval * arg , uint32_t arg_num );
2203
2203
ZEND_API bool ZEND_FASTCALL zend_parse_arg_str_or_long_slow (zval * arg , zend_string * * dest_str , zend_long * dest_long , uint32_t arg_num );
2204
2204
2205
2205
ZEND_API zend_opt_bool ZEND_FASTCALL zend_flf_parse_arg_bool_slow (const zval * arg , uint32_t arg_num );
@@ -2298,7 +2298,11 @@ static zend_always_inline bool zend_parse_arg_number(zval *arg, zval **dest, boo
2298
2298
} else if (check_null && EXPECTED (Z_TYPE_P (arg ) == IS_NULL )) {
2299
2299
* dest = NULL ;
2300
2300
} else {
2301
- return zend_parse_arg_number_slow (arg , dest , arg_num );
2301
+ if (zend_parse_arg_number_slow (arg , arg_num )) {
2302
+ * dest = arg ;
2303
+ } else {
2304
+ return 0 ;
2305
+ }
2302
2306
}
2303
2307
return 1 ;
2304
2308
}
@@ -2310,7 +2314,11 @@ static zend_always_inline bool zend_parse_arg_number_or_str(zval *arg, zval **de
2310
2314
} else if (check_null && EXPECTED (Z_TYPE_P (arg ) == IS_NULL )) {
2311
2315
* dest = NULL ;
2312
2316
} else {
2313
- return zend_parse_arg_number_or_str_slow (arg , dest , arg_num );
2317
+ if (zend_parse_arg_number_or_str_slow (arg , arg_num )) {
2318
+ * dest = arg ;
2319
+ } else {
2320
+ return false;
2321
+ }
2314
2322
}
2315
2323
return true;
2316
2324
}
0 commit comments