Skip to content

Commit f085bdd

Browse files
committed
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...
1 parent 1dbf80b commit f085bdd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

ext/dom/document.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_cdatasection, 0, 0, 1)
6060
ZEND_ARG_INFO(0, data)
6161
ZEND_END_ARG_INFO();
6262

63-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_processing_instruction, 0, 0, 2)
63+
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_create_processing_instruction, 0, 0, 1)
6464
ZEND_ARG_INFO(0, target)
6565
ZEND_ARG_INFO(0, data)
6666
ZEND_END_ARG_INFO();
@@ -77,7 +77,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_get_elements_by_tag_name, 0, 0, 1)
7777
ZEND_ARG_INFO(0, tagName)
7878
ZEND_END_ARG_INFO();
7979

80-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_import_node, 0, 0, 2)
80+
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_import_node, 0, 0, 1)
8181
ZEND_ARG_OBJ_INFO(0, importedNode, DOMNode, 0)
8282
ZEND_ARG_INFO(0, deep)
8383
ZEND_END_ARG_INFO();

ext/dom/domimplementation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_implementation_create_documenttype, 0, 0, 3)
4040
ZEND_ARG_INFO(0, systemId)
4141
ZEND_END_ARG_INFO();
4242

43-
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_implementation_create_document, 0, 0, 3)
43+
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_implementation_create_document, 0, 0, 2)
4444
ZEND_ARG_INFO(0, namespaceURI)
4545
ZEND_ARG_INFO(0, qualifiedName)
4646
ZEND_ARG_OBJ_INFO(0, docType, DOMDocumentType, 0)

ext/mysqli/mysqli_fe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ const zend_function_entry mysqli_functions[] = {
448448
PHP_FE(mysqli_get_charset, arginfo_mysqli_only_link)
449449
#endif
450450
PHP_FE(mysqli_get_client_info, arginfo_mysqli_no_options)
451-
PHP_FE(mysqli_get_client_version, arginfo_mysqli_only_link)
451+
PHP_FE(mysqli_get_client_version, arginfo_mysqli_no_options)
452452
PHP_FE(mysqli_get_links_stats, arginfo_mysqli_no_options)
453453
PHP_FE(mysqli_get_host_info, arginfo_mysqli_only_link)
454454
PHP_FE(mysqli_get_proto_info, arginfo_mysqli_only_link)

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6359,7 +6359,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_reflection_method_setAccessible, 0)
63596359
ZEND_ARG_INFO(0, value)
63606360
ZEND_END_ARG_INFO()
63616361

6362-
ZEND_BEGIN_ARG_INFO(arginfo_reflection_method_getClosure, 0)
6362+
ZEND_BEGIN_ARG_INFO_EX(arginfo_reflection_method_getClosure, 0, 0, 0)
63636363
ZEND_ARG_INFO(0, object)
63646364
ZEND_END_ARG_INFO()
63656365

ext/standard/basic_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ ZEND_END_ARG_INFO()
18061806
#endif
18071807
/* }}} */
18081808
/* {{{ pack.c */
1809-
ZEND_BEGIN_ARG_INFO_EX(arginfo_pack, 0, 0, 2)
1809+
ZEND_BEGIN_ARG_INFO_EX(arginfo_pack, 0, 0, 1)
18101810
ZEND_ARG_INFO(0, format)
18111811
ZEND_ARG_VARIADIC_INFO(0, args)
18121812
ZEND_END_ARG_INFO()
@@ -2038,7 +2038,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_stream_context_get_options, 0)
20382038
ZEND_ARG_INFO(0, stream_or_context)
20392039
ZEND_END_ARG_INFO()
20402040

2041-
ZEND_BEGIN_ARG_INFO(arginfo_stream_context_set_option, 0)
2041+
ZEND_BEGIN_ARG_INFO_EX(arginfo_stream_context_set_option, 0, 0, 2)
20422042
ZEND_ARG_INFO(0, stream_or_context)
20432043
ZEND_ARG_INFO(0, wrappername)
20442044
ZEND_ARG_INFO(0, optionname)

0 commit comments

Comments
 (0)