Skip to content

Commit 39fa55a

Browse files
committed
Switch register_tick_function back to zend_parse_parameters
No reason to use fast ZPP in register_tick_function, so let’s keep the binary size down just a bit.
1 parent 8082b4c commit 39fa55a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ext/standard/basic_functions.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,10 +2361,9 @@ PHP_FUNCTION(register_tick_function)
23612361
zval *params;
23622362
uint32_t param_count;
23632363

2364-
ZEND_PARSE_PARAMETERS_START(1, -1)
2365-
Z_PARAM_FUNC(tick_fe.fci, tick_fe.fci_cache)
2366-
Z_PARAM_VARIADIC('+', params, param_count);
2367-
ZEND_PARSE_PARAMETERS_END();
2364+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "f*", &tick_fe.fci, &tick_fe.fci_cache, &params, &param_count) == FAILURE) {
2365+
RETURN_THROWS();
2366+
}
23682367

23692368
tick_fe.calling = false;
23702369
Z_TRY_ADDREF(tick_fe.fci.function_name);

0 commit comments

Comments
 (0)