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/dom/document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/dom/document.c') diff --git a/ext/dom/document.c b/ext/dom/document.c index 672fd624b3..df1e7a8dfb 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -60,7 +60,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_cdatasection, 0, 0, 1) ZEND_ARG_INFO(0, data) ZEND_END_ARG_INFO(); -ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_processing_instruction, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_processing_instruction, 0, 0, 1) ZEND_ARG_INFO(0, target) ZEND_ARG_INFO(0, data) ZEND_END_ARG_INFO(); @@ -77,7 +77,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_get_elements_by_tag_name, 0, 0, 1) ZEND_ARG_INFO(0, tagName) ZEND_END_ARG_INFO(); -ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_import_node, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_import_node, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, importedNode, DOMNode, 0) ZEND_ARG_INFO(0, deep) ZEND_END_ARG_INFO(); -- cgit v1.2.1