From f085bddb51cf3ce4400f89447e40ddac66468f31 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 7 Oct 2019 11:42:22 +0200 Subject: Fix number of required arguments in arginfo * pack() only requires one argument * stream_context_set_option() only requires two arguments * ReflectionMethod::getClosure() accepts no args for static methods * DOMDocument::createProcessingInstruction() only requires one arg * DOMImplementation::createDocument() only requires two arguments * DOMDocument::importNode() only requires one arg * mysql_get_client_version() doesn't accept any args, despite what the docs say... --- ext/standard/basic_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/standard/basic_functions.c') diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cb9be32852..001e37fa70 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1806,7 +1806,7 @@ ZEND_END_ARG_INFO() #endif /* }}} */ /* {{{ pack.c */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_pack, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_pack, 0, 0, 1) ZEND_ARG_INFO(0, format) ZEND_ARG_VARIADIC_INFO(0, args) ZEND_END_ARG_INFO() @@ -2038,7 +2038,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_stream_context_get_options, 0) ZEND_ARG_INFO(0, stream_or_context) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO(arginfo_stream_context_set_option, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_stream_context_set_option, 0, 0, 2) ZEND_ARG_INFO(0, stream_or_context) ZEND_ARG_INFO(0, wrappername) ZEND_ARG_INFO(0, optionname) -- cgit v1.2.1