diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_disabled_functions.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index c088f20..9e64993 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c | |||
| @@ -352,7 +352,12 @@ static void should_disable(zend_execute_data* execute_data, | |||
| 352 | if (config_node->param || config_node->r_param || | 352 | if (config_node->param || config_node->r_param || |
| 353 | (config_node->pos != -1)) { | 353 | (config_node->pos != -1)) { |
| 354 | if (!builtin_param && | 354 | if (!builtin_param && |
| 355 | execute_data->func->op_array.arg_info->is_variadic) { | 355 | #if PHP_VERSION_ID >= 80000 |
| 356 | ZEND_ARG_IS_VARIADIC(execute_data->func->op_array.arg_info) | ||
| 357 | #else | ||
| 358 | execute_data->func->op_array.arg_info->is_variadic | ||
| 359 | #endif | ||
| 360 | ){ | ||
| 356 | sp_log_warn( | 361 | sp_log_warn( |
| 357 | "disable_function", | 362 | "disable_function", |
| 358 | "Snuffleupagus doesn't support variadic functions yet, sorry. " | 363 | "Snuffleupagus doesn't support variadic functions yet, sorry. " |
