From 5caf29a01e8498ecf3cfabceee8cf60a0fd39eb8 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 24 Feb 2021 19:13:11 +0300 Subject: Switch few functions useful in Symphony apps to new ZPP API. --- ext/spl/php_spl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/spl/php_spl.c') diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 67f87774a0..5981d2385f 100644 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -569,9 +569,9 @@ PHP_FUNCTION(spl_autoload_unregister) zend_fcall_info fci; zend_fcall_info_cache fcc; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "f", &fci, &fcc) == FAILURE) { - RETURN_THROWS(); - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_FUNC(fci, fcc) + ZEND_PARSE_PARAMETERS_END(); if (fcc.function_handler && zend_string_equals_literal( fcc.function_handler->common.function_name, "spl_autoload_call")) { -- cgit v1.2.1