Declare tentative return types for ext/dom (#6985)

This commit is contained in:
Máté Kocsis 2021-07-20 09:26:36 +02:00 committed by GitHub
parent 7a9a37d909
commit d9838e5453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 236 additions and 192 deletions

View File

@ -106,47 +106,47 @@ class DOMNode
/** @return DOMNode|false */
public function appendChild(DOMNode $node) {}
/** @return string|false */
public function C14N(bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null) {}
/** @tentative-return-type */
public function C14N(bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null): string|false {}
/** @return int|false */
public function C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null) {}
/** @tentative-return-type */
public function C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, ?array $xpath = null, ?array $nsPrefixes = null): int|false {}
/** @return DOMNode|false */
public function cloneNode(bool $deep = false) {}
/** @return int */
public function getLineNo() {}
/** @tentative-return-type */
public function getLineNo(): int {}
/** @return string|null */
public function getNodePath() {}
/** @tentative-return-type */
public function getNodePath(): ?string {}
/** @return bool */
public function hasAttributes() {}
/** @tentative-return-type */
public function hasAttributes(): bool {}
/** @return bool */
public function hasChildNodes() {}
/** @tentative-return-type */
public function hasChildNodes(): bool {}
/** @return DOMNode|false */
public function insertBefore(DOMNode $node, ?DOMNode $child = null) {}
/** @return bool */
public function isDefaultNamespace(string $namespace) {}
/** @tentative-return-type */
public function isDefaultNamespace(string $namespace): bool {}
/** @return bool */
public function isSameNode(DOMNode $otherNode) {}
/** @tentative-return-type */
public function isSameNode(DOMNode $otherNode): bool {}
/** @return bool */
public function isSupported(string $feature, string $version) {}
/** @tentative-return-type */
public function isSupported(string $feature, string $version): bool {}
/** @return string|null */
public function lookupNamespaceURI(?string $prefix) {}
/** @tentative-return-type */
public function lookupNamespaceURI(?string $prefix): ?string {}
/** @return string|null */
public function lookupPrefix(string $namespace) {}
/** @tentative-return-type */
public function lookupPrefix(string $namespace): ?string {}
/** @return void */
public function normalize() {}
/** @tentative-return-type */
public function normalize(): void {}
/** @return DOMNode|false */
public function removeChild(DOMNode $child) {}
@ -184,11 +184,11 @@ class DOMNameSpaceNode
class DOMImplementation
{
/** @return void */
public function getFeature(string $feature, string $version) {}
/** @tentative-return-type */
public function getFeature(string $feature, string $version): never {}
/** @return bool */
public function hasFeature(string $feature, string $version) {}
/** @tentative-return-type */
public function hasFeature(string $feature, string $version): bool {}
/** @return DOMDocumentType|false */
public function createDocumentType(string $qualifiedName, string $publicId = "", string $systemId = "") {}
@ -210,8 +210,8 @@ class DOMDocumentFragment extends DOMNode implements DOMParentNode
public function __construct() {}
/** @return bool */
public function appendXML(string $data) {}
/** @tentative-return-type */
public function appendXML(string $data): bool {}
/** @param DOMNode|string $nodes */
public function append(...$nodes): void {}
@ -230,8 +230,8 @@ class DOMNodeList implements IteratorAggregate, Countable
public function getIterator(): Iterator {}
/** @return DOMNode|null */
public function item(int $index) {}
/** @tentative-return-type */
public function item(int $index): ?DOMNode {}
}
class DOMCharacterData extends DOMNode implements DOMChildNode
@ -248,20 +248,20 @@ class DOMCharacterData extends DOMNode implements DOMChildNode
/** @readonly */
public ?DOMElement $nextElementSibling;
/** @return bool */
public function appendData(string $data) {}
/** @tentative-return-type */
public function appendData(string $data): bool {}
/** @return string|false */
public function substringData(int $offset, int $count) {}
/** @return bool */
public function insertData(int $offset, string $data) {}
/** @tentative-return-type */
public function insertData(int $offset, string $data): bool {}
/** @return bool */
public function deleteData(int $offset, int $count) {}
/** @tentative-return-type */
public function deleteData(int $offset, int $count): bool {}
/** @return bool */
public function replaceData(int $offset, int $count, string $data) {}
/** @tentative-return-type */
public function replaceData(int $offset, int $count, string $data): bool {}
/** @param DOMNode|string $nodes */
public function replaceWith(...$nodes): void {}
@ -294,8 +294,8 @@ class DOMAttr extends DOMNode
public function __construct(string $name, string $value = "") {}
/** @return bool */
public function isId() {}
/** @tentative-return-type */
public function isId(): bool {}
}
class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode
@ -323,44 +323,44 @@ class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode
public function __construct(string $qualifiedName, ?string $value = null, string $namespace = "") {}
/** @return string */
public function getAttribute(string $qualifiedName) {}
/** @tentative-return-type */
public function getAttribute(string $qualifiedName): string {}
/** @return string */
public function getAttributeNS(?string $namespace, string $localName) {}
/** @tentative-return-type */
public function getAttributeNS(?string $namespace, string $localName): string {}
/** @return DOMAttr|DOMNamespaceNode|false */
/** @return DOMAttr|DOMNameSpaceNode|false */
public function getAttributeNode(string $qualifiedName) {}
/** @return DOMAttr|DOMNamespaceNode|null */
/** @return DOMAttr|DOMNameSpaceNode|null */
public function getAttributeNodeNS(?string $namespace, string $localName) {}
/** @return DOMNodeList */
public function getElementsByTagName(string $qualifiedName) {}
/** @tentative-return-type */
public function getElementsByTagName(string $qualifiedName): DOMNodeList {}
/** @return DOMNodeList */
public function getElementsByTagNameNS(?string $namespace, string $localName) {}
/** @tentative-return-type */
public function getElementsByTagNameNS(?string $namespace, string $localName): DOMNodeList {}
/** @return bool */
public function hasAttribute(string $qualifiedName) {}
/** @tentative-return-type */
public function hasAttribute(string $qualifiedName): bool {}
/** @return bool */
public function hasAttributeNS(?string $namespace, string $localName) {}
/** @tentative-return-type */
public function hasAttributeNS(?string $namespace, string $localName): bool {}
/** @return bool */
public function removeAttribute(string $qualifiedName) {}
/** @tentative-return-type */
public function removeAttribute(string $qualifiedName): bool {}
/** @return void */
public function removeAttributeNS(?string $namespace, string $localName) {}
/** @tentative-return-type */
public function removeAttributeNS(?string $namespace, string $localName): void {}
/** @return DOMAttr|false */
public function removeAttributeNode(DOMAttr $attr) {}
/** @return DOMAttr|bool */
public function setAttribute(string $qualifiedName, string $value) {}
public function setAttribute(string $qualifiedName, string $value) {} // TODO return type shouldn't depend on the call scope
/** @return void */
public function setAttributeNS(?string $namespace, string $qualifiedName, string $value) {}
/** @tentative-return-type */
public function setAttributeNS(?string $namespace, string $qualifiedName, string $value): void {}
/** @return DOMAttr|null|false */
public function setAttributeNode(DOMAttr $attr) {}
@ -368,14 +368,14 @@ class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode
/** @return DOMAttr|null|false */
public function setAttributeNodeNS(DOMAttr $attr) {}
/** @return void */
public function setIdAttribute(string $qualifiedName, bool $isId) {}
/** @tentative-return-type */
public function setIdAttribute(string $qualifiedName, bool $isId): void {}
/** @return void */
public function setIdAttributeNS(string $namespace, string $qualifiedName, bool $isId) {}
/** @tentative-return-type */
public function setIdAttributeNS(string $namespace, string $qualifiedName, bool $isId): void {}
/** @return void */
public function setIdAttributeNode(DOMAttr $attr, bool $isId) {}
/** @tentative-return-type */
public function setIdAttributeNode(DOMAttr $attr, bool $isId): void {}
public function remove(): void {}
@ -467,14 +467,14 @@ class DOMDocument extends DOMNode implements DOMParentNode
/** @return DOMCdataSection|false */
public function createCDATASection(string $data) {}
/** @return DOMComment */
public function createComment(string $data) {}
/** @tentative-return-type */
public function createComment(string $data): DOMComment {}
/** @return DOMDocumentFragment */
public function createDocumentFragment() {}
/** @tentative-return-type */
public function createDocumentFragment(): DOMDocumentFragment {}
/** @return DOMElement|false */
public function createElement(string $localName, string $value = "") {}
public function createElement(string $localName, string $value = "") {}
/** @return DOMElement|false */
public function createElementNS(?string $namespace, string $qualifiedName, string $value = "") {}
@ -485,72 +485,72 @@ class DOMDocument extends DOMNode implements DOMParentNode
/** @return DOMProcessingInstruction|false */
public function createProcessingInstruction(string $target, string $data = "") {}
/** @return DOMText */
public function createTextNode(string $data) {}
/** @tentative-return-type */
public function createTextNode(string $data): DOMText {}
/** @return DOMElement|null */
public function getElementById(string $elementId) {}
/** @tentative-return-type */
public function getElementById(string $elementId): ?DOMElement {}
/** @return DOMNodeList */
public function getElementsByTagName(string $qualifiedName) {}
/** @tentative-return-type */
public function getElementsByTagName(string $qualifiedName): DOMNodeList {}
/** @return DOMNodeList */
public function getElementsByTagNameNS(?string $namespace, string $localName) {}
/** @tentative-return-type */
public function getElementsByTagNameNS(?string $namespace, string $localName): DOMNodeList {}
/** @return DOMNode|false */
public function importNode(DOMNode $node, bool $deep = false) {}
/** @return DOMDocument|bool */
public function load(string $filename, int $options = 0) {}
public function load(string $filename, int $options = 0) {} // TODO return type shouldn't depend on the call scope
/** @return DOMDocument|bool */
public function loadXML(string $source, int $options = 0) {}
public function loadXML(string $source, int $options = 0) {} // TODO return type shouldn't depend on the call scope
/** @return void */
public function normalizeDocument() {}
/** @tentative-return-type */
public function normalizeDocument(): void {}
/** @return bool */
public function registerNodeClass(string $baseClass, ?string $extendedClass) {}
/** @tentative-return-type */
public function registerNodeClass(string $baseClass, ?string $extendedClass): bool {}
/** @return int|false */
public function save(string $filename, int $options = 0) {}
/** @tentative-return-type */
public function save(string $filename, int $options = 0): int|false {}
#ifdef LIBXML_HTML_ENABLED
/** @return DOMDocument|bool */
public function loadHTML(string $source, int $options = 0) {}
public function loadHTML(string $source, int $options = 0) {} // TODO return type shouldn't depend on the call scope
/** @return DOMDocument|bool */
public function loadHTMLFile(string $filename, int $options = 0) {}
public function loadHTMLFile(string $filename, int $options = 0) {} // TODO return type shouldn't depend on the call scope
/** @return string|false */
public function saveHTML(?DOMNode $node = null) {}
/** @tentative-return-type */
public function saveHTML(?DOMNode $node = null): string|false {}
/** @return int|false */
public function saveHTMLFile(string $filename) {}
/** @tentative-return-type */
public function saveHTMLFile(string $filename): int|false {}
#endif
/** @return string|false */
public function saveXML(?DOMNode $node = null, int $options = 0) {}
/** @tentative-return-type */
public function saveXML(?DOMNode $node = null, int $options = 0): string|false {}
#ifdef LIBXML_SCHEMAS_ENABLED
/** @return bool */
public function schemaValidate(string $filename, int $flags = 0) {}
/** @tentative-return-type */
public function schemaValidate(string $filename, int $flags = 0): bool {}
/** @return bool */
public function schemaValidateSource(string $source, int $flags = 0) {}
/** @tentative-return-type */
public function schemaValidateSource(string $source, int $flags = 0): bool {}
/** @return bool */
public function relaxNGValidate(string $filename) {}
/** @tentative-return-type */
public function relaxNGValidate(string $filename): bool {}
/** @return bool */
public function relaxNGValidateSource(string $source) {}
/** @tentative-return-type */
public function relaxNGValidateSource(string $source): bool {}
#endif
/** @return bool */
public function validate() {}
/** @tentative-return-type */
public function validate(): bool {}
/** @return int|false */
public function xinclude(int $options = 0) {}
/** @tentative-return-type */
public function xinclude(int $options = 0): int|false {}
/** @return DOMNode|false */
public function adoptNode(DOMNode $node) {}
@ -575,14 +575,14 @@ class DOMText extends DOMCharacterData
public function __construct(string $data = "") {}
/** @return bool */
public function isWhitespaceInElementContent() {}
/** @tentative-return-type */
public function isWhitespaceInElementContent(): bool {}
/**
* @return bool
* @tentative-return-type
* @alias DOMText::isWhitespaceInElementContent
*/
public function isElementContentWhitespace() {}
public function isElementContentWhitespace(): bool {}
/** @return DOMText|false */
public function splitText(int $offset) {}
@ -593,14 +593,14 @@ class DOMNamedNodeMap implements IteratorAggregate, Countable
/** @readonly */
public int $length;
/** @return DOMNode|null */
public function getNamedItem(string $qualifiedName) {}
/** @tentative-return-type */
public function getNamedItem(string $qualifiedName): ?DOMNode {} // TODO DOM spec returns DOMAttr
/** @return DOMNode|null */
public function getNamedItemNS(?string $namespace, string $localName) {}
/** @tentative-return-type */
public function getNamedItemNS(?string $namespace, string $localName): ?DOMNode {} // TODO DOM spec returns DOMAttr
/** @return DOMNode|null */
public function item(int $index) {}
/** @tentative-return-type */
public function item(int $index): ?DOMNode {} // TODO DOM spec returns DOMAttr
/** @tentative-return-type */
public function count(): int {}
@ -663,17 +663,17 @@ class DOMXPath
public function __construct(DOMDocument $document, bool $registerNodeNS = true) {}
/** @return mixed */
public function evaluate(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true) {}
/** @tentative-return-type */
public function evaluate(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {}
/** @return mixed */
public function query(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true) {}
/** @tentative-return-type */
public function query(string $expression, ?DOMNode $contextNode = null, bool $registerNodeNS = true): mixed {}
/** @return bool */
public function registerNamespace(string $prefix, string $namespace) {}
/** @tentative-return-type */
public function registerNamespace(string $prefix, string $namespace): bool {}
/** @return void */
public function registerPhpFunctions(string|array|null $restrict = null) {}
/** @tentative-return-type */
public function registerPhpFunctions(string|array|null $restrict = null): void {}
}
#endif

View File

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: aa455c75920e15b5f66964cb560e853d6bc423d2 */
* Stub hash: 9085cafc2477ac2efa9929a681251bf0f2f39879 */
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1)
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
@ -32,14 +32,14 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_appendChild, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_C14N, 0, 0, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMNode_C14N, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, exclusive, _IS_BOOL, 0, "false")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, withComments, _IS_BOOL, 0, "false")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, xpath, IS_ARRAY, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nsPrefixes, IS_ARRAY, 1, "null")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_C14NFile, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMNode_C14NFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, exclusive, _IS_BOOL, 0, "false")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, withComments, _IS_BOOL, 0, "false")
@ -51,40 +51,45 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_cloneNode, 0, 0, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deep, _IS_BOOL, 0, "false")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_getLineNo, 0, 0, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_getLineNo, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNode_getNodePath arginfo_class_DOMNode_getLineNo
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_getNodePath, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNode_hasAttributes arginfo_class_DOMNode_getLineNo
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_hasAttributes, 0, 0, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNode_hasChildNodes arginfo_class_DOMNode_getLineNo
#define arginfo_class_DOMNode_hasChildNodes arginfo_class_DOMNode_hasAttributes
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_insertBefore, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0)
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, child, DOMNode, 1, "null")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_isDefaultNamespace, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_isDefaultNamespace, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_isSameNode, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_isSameNode, 0, 1, _IS_BOOL, 0)
ZEND_ARG_OBJ_INFO(0, otherNode, DOMNode, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_isSupported, 0, 0, 2)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_isSupported, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, feature, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, version, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_lookupNamespaceURI, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_lookupNamespaceURI, 0, 1, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 1)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNode_lookupPrefix arginfo_class_DOMNode_isDefaultNamespace
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_lookupPrefix, 0, 1, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNode_normalize arginfo_class_DOMNode_getLineNo
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNode_normalize, 0, 0, IS_VOID, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_removeChild, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, child, DOMNode, 0)
@ -95,7 +100,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNode_replaceChild, 0, 0, 2)
ZEND_ARG_OBJ_INFO(0, child, DOMNode, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMImplementation_getFeature arginfo_class_DOMNode_isSupported
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMImplementation_getFeature, 0, 2, never, 0)
ZEND_ARG_TYPE_INFO(0, feature, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, version, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMImplementation_hasFeature arginfo_class_DOMNode_isSupported
@ -111,39 +119,44 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMImplementation_createDocument, 0, 0, 0)
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, doctype, DOMDocumentType, 1, "null")
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocumentFragment___construct arginfo_class_DOMNode_getLineNo
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocumentFragment___construct, 0, 0, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocumentFragment_appendXML arginfo_class_DOMCdataSection___construct
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocumentFragment_appendXML, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocumentFragment_append arginfo_class_DOMParentNode_append
#define arginfo_class_DOMDocumentFragment_prepend arginfo_class_DOMParentNode_append
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNodeList_count, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNodeList_count arginfo_class_DOMNode_getLineNo
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOMNodeList_getIterator, 0, 0, Iterator, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMNodeList_item, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMNodeList_item, 0, 1, DOMNode, 1)
ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMCharacterData_appendData arginfo_class_DOMCdataSection___construct
#define arginfo_class_DOMCharacterData_appendData arginfo_class_DOMDocumentFragment_appendXML
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMCharacterData_substringData, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMCharacterData_insertData, 0, 0, 2)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMCharacterData_insertData, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMCharacterData_deleteData arginfo_class_DOMCharacterData_substringData
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMCharacterData_deleteData, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMCharacterData_replaceData, 0, 0, 3)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMCharacterData_replaceData, 0, 3, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, count, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
@ -162,7 +175,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMAttr___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 0, "\"\"")
ZEND_END_ARG_INFO()
#define arginfo_class_DOMAttr_isId arginfo_class_DOMNode_getLineNo
#define arginfo_class_DOMAttr_isId arginfo_class_DOMNode_hasAttributes
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
@ -170,30 +183,48 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, namespace, IS_STRING, 0, "\"\"")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_getAttribute, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_getAttribute, 0, 1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_getAttributeNS, 0, 0, 2)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_getAttributeNS, 0, 2, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_getAttributeNode arginfo_class_DOMElement_getAttribute
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_getAttributeNode, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_getAttributeNodeNS arginfo_class_DOMElement_getAttributeNS
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_getAttributeNodeNS, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_getElementsByTagName arginfo_class_DOMElement_getAttribute
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMElement_getElementsByTagName, 0, 1, DOMNodeList, 0)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_getElementsByTagNameNS arginfo_class_DOMElement_getAttributeNS
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMElement_getElementsByTagNameNS, 0, 2, DOMNodeList, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_hasAttribute arginfo_class_DOMElement_getAttribute
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_hasAttribute, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_hasAttributeNS arginfo_class_DOMElement_getAttributeNS
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_hasAttributeNS, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_removeAttribute arginfo_class_DOMElement_getAttribute
#define arginfo_class_DOMElement_removeAttribute arginfo_class_DOMElement_hasAttribute
#define arginfo_class_DOMElement_removeAttributeNS arginfo_class_DOMElement_getAttributeNS
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_removeAttributeNS, 0, 2, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_removeAttributeNode, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, attr, DOMAttr, 0)
@ -204,7 +235,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_setAttribute, 0, 0, 2)
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_setAttributeNS, 0, 0, 3)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setAttributeNS, 0, 3, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
@ -214,18 +245,18 @@ ZEND_END_ARG_INFO()
#define arginfo_class_DOMElement_setAttributeNodeNS arginfo_class_DOMElement_removeAttributeNode
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_setIdAttribute, 0, 0, 2)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setIdAttribute, 0, 2, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, isId, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_setIdAttributeNS, 0, 0, 3)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setIdAttributeNS, 0, 3, IS_VOID, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, isId, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMElement_setIdAttributeNode, 0, 0, 2)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMElement_setIdAttributeNode, 0, 2, IS_VOID, 0)
ZEND_ARG_OBJ_INFO(0, attr, DOMAttr, 0)
ZEND_ARG_TYPE_INFO(0, isId, _IS_BOOL, 0)
ZEND_END_ARG_INFO()
@ -258,9 +289,12 @@ ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocument_createCDATASection arginfo_class_DOMCdataSection___construct
#define arginfo_class_DOMDocument_createComment arginfo_class_DOMCdataSection___construct
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_createComment, 0, 1, DOMComment, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocument_createDocumentFragment arginfo_class_DOMNode_getLineNo
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_createDocumentFragment, 0, 0, DOMDocumentFragment, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createElement, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
@ -282,15 +316,17 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_createProcessingInstruction, 0,
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, data, IS_STRING, 0, "\"\"")
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocument_createTextNode arginfo_class_DOMCdataSection___construct
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_createTextNode, 0, 1, DOMText, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_getElementById, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMDocument_getElementById, 0, 1, DOMElement, 1)
ZEND_ARG_TYPE_INFO(0, elementId, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocument_getElementsByTagName arginfo_class_DOMElement_getAttribute
#define arginfo_class_DOMDocument_getElementsByTagName arginfo_class_DOMElement_getElementsByTagName
#define arginfo_class_DOMDocument_getElementsByTagNameNS arginfo_class_DOMElement_getAttributeNS
#define arginfo_class_DOMDocument_getElementsByTagNameNS arginfo_class_DOMElement_getElementsByTagNameNS
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_importNode, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0)
@ -307,14 +343,17 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_loadXML, 0, 0, 1)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocument_normalizeDocument arginfo_class_DOMNode_getLineNo
#define arginfo_class_DOMDocument_normalizeDocument arginfo_class_DOMNode_normalize
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_registerNodeClass, 0, 0, 2)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_registerNodeClass, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, baseClass, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, extendedClass, IS_STRING, 1)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMDocument_save arginfo_class_DOMDocument_load
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_save, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
#if defined(LIBXML_HTML_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_loadHTML, 0, 0, 1)
@ -331,51 +370,51 @@ ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_HTML_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_saveHTML, 0, 0, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_saveHTML, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, DOMNode, 1, "null")
ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_HTML_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_saveHTMLFile, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_saveHTMLFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_saveXML, 0, 0, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_saveXML, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, DOMNode, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
#if defined(LIBXML_SCHEMAS_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_schemaValidate, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_schemaValidate, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_SCHEMAS_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_schemaValidateSource, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_schemaValidateSource, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_SCHEMAS_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_relaxNGValidate, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_relaxNGValidate, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_SCHEMAS_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_relaxNGValidateSource, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMDocument_relaxNGValidateSource, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#define arginfo_class_DOMDocument_validate arginfo_class_DOMNode_getLineNo
#define arginfo_class_DOMDocument_validate arginfo_class_DOMNode_hasAttributes
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_xinclude, 0, 0, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_DOMDocument_xinclude, 0, 0, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
@ -387,21 +426,26 @@ ZEND_END_ARG_INFO()
#define arginfo_class_DOMText___construct arginfo_class_DOMComment___construct
#define arginfo_class_DOMText_isWhitespaceInElementContent arginfo_class_DOMNode_getLineNo
#define arginfo_class_DOMText_isWhitespaceInElementContent arginfo_class_DOMNode_hasAttributes
#define arginfo_class_DOMText_isElementContentWhitespace arginfo_class_DOMNode_getLineNo
#define arginfo_class_DOMText_isElementContentWhitespace arginfo_class_DOMNode_hasAttributes
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMText_splitText, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNamedNodeMap_getNamedItem arginfo_class_DOMElement_getAttribute
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMNamedNodeMap_getNamedItem, 0, 1, DOMNode, 1)
ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNamedNodeMap_getNamedItemNS arginfo_class_DOMElement_getAttributeNS
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_DOMNamedNodeMap_getNamedItemNS, 0, 2, DOMNode, 1)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_DOMNamedNodeMap_item arginfo_class_DOMNodeList_item
#define arginfo_class_DOMNamedNodeMap_count arginfo_class_DOMNodeList_count
#define arginfo_class_DOMNamedNodeMap_count arginfo_class_DOMNode_getLineNo
#define arginfo_class_DOMNamedNodeMap_getIterator arginfo_class_DOMNodeList_getIterator
@ -417,7 +461,7 @@ ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_XPATH_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMXPath_evaluate, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMXPath_evaluate, 0, 1, IS_MIXED, 0)
ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0)
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, contextNode, DOMNode, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, registerNodeNS, _IS_BOOL, 0, "true")
@ -429,14 +473,14 @@ ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_XPATH_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMXPath_registerNamespace, 0, 0, 2)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMXPath_registerNamespace, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(LIBXML_XPATH_ENABLED)
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMXPath_registerPhpFunctions, 0, 0, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMXPath_registerPhpFunctions, 0, 0, IS_VOID, 0)
ZEND_ARG_TYPE_MASK(0, restrict, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL, "null")
ZEND_END_ARG_INFO()
#endif