From 6e7adb3c4815e4cb7ce10b0dfbcdfc8e256c39fc Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Thu, 9 May 2024 10:40:53 +0200 Subject: [PATCH] Update ext/dom names after policy change (#14171) --- ext/dom/characterdata.c | 8 +- ext/dom/document.c | 16 +- ext/dom/domimplementation.c | 6 +- ext/dom/element.c | 14 +- ext/dom/html_collection.c | 2 +- ext/dom/html_document.c | 12 +- ext/dom/node.c | 24 +- ext/dom/php_dom.c | 52 +- ext/dom/php_dom.stub.php | 36 +- ext/dom/php_dom_arginfo.h | 1036 ++++++++--------- ext/dom/tests/dom_import_simplexml.phpt | 4 +- ext/dom/tests/entity_reference_stale_03.phpt | 4 +- ext/dom/tests/gh13863.phpt | 2 +- ...rialize_entity_reference_in_attribute.phpt | 8 +- .../html/encoding/HTMLDocument_GB18030.phpt | 10 +- .../html/encoding/HTMLDocument_Shift_JIS.phpt | 10 +- .../encoding/HTMLDocument_UTF16BE_BOM.phpt | 10 +- .../encoding/HTMLDocument_UTF16LE_BOM.phpt | 10 +- .../html/encoding/HTMLDocument_UTF8_BOM.phpt | 10 +- .../encoding/HTMLDocument_Windows1251.phpt | 10 +- ...MLDocument_createFromFile_http_header.phpt | 4 +- ...ment_createFromFile_override_encoding.phpt | 10 +- ...nt_createFromString_override_encoding.phpt | 10 +- .../HTMLDocument_encoding_edge_case_01.phpt | 6 +- .../HTMLDocument_encoding_edge_case_02.phpt | 6 +- .../HTMLDocument_encoding_edge_case_03.phpt | 6 +- .../HTMLDocument_encoding_edge_case_04.phpt | 6 +- .../HTMLDocument_encoding_edge_case_05.phpt | 6 +- .../HTMLDocument_encoding_edge_case_06.phpt | 6 +- .../HTMLDocument_encoding_edge_case_07.phpt | 6 +- .../HTMLDocument_encoding_field_test.phpt | 10 +- .../HTMLDocument_encoding_unicode_error.phpt | 18 +- .../HTMLDocument_fallback_encoding.phpt | 6 +- ...verride_encoding_incompatible_charset.phpt | 14 +- .../HTMLCollection_dimension_errors.phpt | 6 +- .../HTMLCollection_named_reads.phpt | 2 +- .../html/interactions/HTMLDocument_clone.phpt | 8 +- .../HTMLDocument_documentURI.phpt | 8 +- .../HTMLDocument_getElementsByTagName.phpt | 4 +- .../HTMLDocument_registerNodeClass_01.phpt | 8 +- .../HTMLDocument_registerNodeClass_02.phpt | 14 +- .../HTMLDocument_registerNodeClass_03.phpt | 8 +- .../HTMLDocument_saveHTMLFile_empty_path.phpt | 10 +- .../HTMLDocument_saveHTML_wrong_document.phpt | 8 +- ...should_retain_properties_and_owner_01.phpt | 12 +- ...should_retain_properties_and_owner_02.phpt | 12 +- .../html/interactions/getLineNo_65536.phpt | 2 +- .../modern/html/interactions/noscript.phpt | 16 +- .../interactions/without_constructor.phpt | 6 +- ...File_createFromString_BOM_buffer_edge.phpt | 8 +- ...reateFromString_namespaced_attributes.phpt | 2 +- ...ument_fromFile_DOM_HTML_NO_DEFAULT_NS.phpt | 18 +- .../HTMLDocument_fromFile_empty_path.phpt | 6 +- ...Document_fromFile_local_existing_file.phpt | 8 +- ...nt_fromFile_local_file_does_not_exist.phpt | 10 +- ...nt_fromFile_nul_terminator_cases_path.phpt | 10 +- ...MLDocument_fromFile_parser_warning_01.phpt | 6 +- ...MLDocument_fromFile_parser_warning_02.phpt | 6 +- ...MLDocument_fromFile_parser_warning_03.phpt | 6 +- ..._parser_warning_libxml_get_last_error.phpt | 4 +- ..._fromFile_with_failing_stream_wrapper.phpt | 6 +- ..._fromFile_with_working_stream_wrapper.phpt | 12 +- ...ent_fromString_DOM_HTML_NO_DEFAULT_NS.phpt | 18 +- ...TMLDocument_fromString_LIBXML_COMPACT.phpt | 6 +- ...romString_LIBXML_HTML_NOIMPLIED_error.phpt | 6 +- ...tring_LIBXML_HTML_NOIMPLIED_namespace.phpt | 14 +- .../parser/HTMLDocument_fromString_empty.phpt | 6 +- ...String_fromFile_LIBXML_HTML_NOIMPLIED.phpt | 10 +- .../HTMLDocument_fromString_line_column.phpt | 6 +- ...MLDocument_fromString_normal_no_error.phpt | 6 +- .../HTMLDocument_fromString_old_dtd.phpt | 10 +- ...Document_fromString_parser_warning_01.phpt | 10 +- ...Document_fromString_parser_warning_02.phpt | 18 +- ...Document_fromString_parser_warning_03.phpt | 6 +- ...mString_parser_warning_internal_error.phpt | 4 +- .../HTMLDocument_fromString_without_body.phpt | 6 +- .../parser/HTMLDocument_parse_options.phpt | 68 +- .../html/parser/predefined_namespaces.phpt | 8 +- .../html/parser/user_error_handler.phpt | 4 +- .../html/parser/xml_style_namespace.phpt | 8 +- .../HTMLDocument_entity_reference.phpt | 6 +- .../HTMLDocument_escape_attribute.phpt | 6 +- .../serializer/HTMLDocument_escape_nbsp.phpt | 6 +- .../HTMLDocument_serialize_attribute_ns.phpt | 6 +- .../HTMLDocument_serialize_cdata.phpt | 8 +- .../HTMLDocument_serialize_comment.phpt | 6 +- .../HTMLDocument_serialize_doctype.phpt | 8 +- .../HTMLDocument_serialize_element_ns.phpt | 6 +- ...HTMLDocument_serialize_failing_stream.phpt | 8 +- .../HTMLDocument_serialize_fragment.phpt | 6 +- .../HTMLDocument_serialize_full_document.phpt | 6 +- ...HTMLDocument_serialize_ns_imported_01.phpt | 12 +- ...HTMLDocument_serialize_ns_imported_02.phpt | 12 +- ...HTMLDocument_serialize_ns_imported_03.phpt | 12 +- ...HTMLDocument_serialize_ns_imported_04.phpt | 12 +- ...HTMLDocument_serialize_ns_imported_05.phpt | 12 +- ...HTMLDocument_serialize_ns_imported_06.phpt | 12 +- ...ment_serialize_processing_instruction.phpt | 6 +- .../HTMLDocument_serialize_roots.phpt | 18 +- .../HTMLDocument_serialize_text_01.phpt | 6 +- .../HTMLDocument_serialize_text_02.phpt | 6 +- .../HTMLDocument_serialize_text_03.phpt | 6 +- .../HTMLDocument_serialize_void_elements.phpt | 8 +- ext/dom/tests/modern/spec/Attr_name.phpt | 2 +- ..._deleteData_negative_in_bounds_length.phpt | 6 +- .../CharacterData_insertData_edge_cases.phpt | 4 +- ...racterData_insertData_negative_offset.phpt | 6 +- ...Data_insertData_negative_offset_mod32.phpt | 10 +- ...racterData_replaceData_negative_count.phpt | 6 +- ...Data_replaceData_negative_count_mod32.phpt | 10 +- ...haracterData_substringData_edge_cases.phpt | 4 +- ...Data_substringData_negative_arguments.phpt | 8 +- ...ubstringData_negative_arguments_mod32.phpt | 14 +- .../modern/spec/Document_createAttribute.phpt | 4 +- .../spec/Document_createAttributeNS.phpt | 6 +- .../modern/spec/Document_createElement.phpt | 6 +- .../modern/spec/Document_createElementNS.phpt | 2 +- .../Document_createElement_edge_cases.phpt | 2 +- .../spec/Document_getElementsByTagNameNS.phpt | 2 +- ...ocument_implementation_createDocument.phpt | 16 +- ...ent_implementation_createDocumentType.phpt | 12 +- ...lementation_createDocumentType_errors.phpt | 2 +- ..._implementation_createDocument_errors.phpt | 2 +- ...ent_implementation_createHTMLDocument.phpt | 8 +- .../Document_implementation_same_object.phpt | 8 +- .../spec/Document_importLegacyNode.phpt | 8 +- .../Document_importNode_not_supported.phpt | 2 +- .../modern/spec/Element_getAttribute.phpt | 2 +- .../modern/spec/Element_getAttributeNS.phpt | 2 +- .../modern/spec/Element_getAttributeNode.phpt | 2 +- .../spec/Element_getAttributeNodeNS.phpt | 2 +- .../modern/spec/Element_hasAttribute.phpt | 2 +- .../modern/spec/Element_hasAttributeNS.phpt | 2 +- .../spec/Element_insertAdjacentText.phpt | 4 +- .../modern/spec/Element_prefix_readonly.phpt | 8 +- .../modern/spec/Element_removeAttribute.phpt | 14 +- .../spec/Element_removeAttributeNS.phpt | 30 +- .../Element_removeAttribute_edge_cases.phpt | 2 +- .../modern/spec/Element_setAttributeNS.phpt | 12 +- .../modern/spec/Element_setAttributeNode.phpt | 6 +- .../Element_setAttributeNode_adoption.phpt | 12 +- .../spec/Element_setAttributeNode_inuse.phpt | 6 +- .../Element_setAttribute_with_namespace.phpt | 18 +- ...lement_setAttribute_without_namespace.phpt | 16 +- .../tests/modern/spec/Element_tagName.phpt | 6 +- .../modern/spec/Element_toggleAttribute.phpt | 6 +- .../spec/HTMLDocument_createCDATASection.phpt | 6 +- ...LDocument_createProcessingInstruction.phpt | 6 +- .../HTMLDocument_getElementsByTagName.phpt | 2 +- .../spec/HTMLDocument_importNode_01.phpt | 6 +- .../modern/spec/NamedNodeMap_dimensions.phpt | 6 +- .../spec/NamedNodeMap_dimensions_errors.phpt | 4 +- .../spec/NamedNodeMap_getNamedItem.phpt | 4 +- .../modern/spec/NodeList_dimensions.phpt | 10 +- .../spec/NodeList_dimensions_errors.phpt | 4 +- .../spec/Node_appendChild_attribute.phpt | 4 +- ...ppendChild_fragment_multiple_elements.phpt | 6 +- .../spec/Node_appendChild_invalid_parent.phpt | 4 +- ext/dom/tests/modern/spec/Node_baseURI.phpt | 6 +- ...de_cloneNode_copy_document_properties.phpt | 4 +- .../tests/modern/spec/Node_getRootNode.phpt | 4 +- .../modern/spec/Node_insertBefore_01.phpt | 6 +- .../modern/spec/Node_insertBefore_02.phpt | 6 +- .../modern/spec/Node_isDefaultNamespace.phpt | 4 +- .../modern/spec/Node_isEqualNode_01.phpt | 10 +- .../modern/spec/Node_isEqualNode_02.phpt | 10 +- .../modern/spec/Node_lookupNamespaceURI.phpt | 6 +- .../tests/modern/spec/Node_lookupPrefix.phpt | 4 +- ext/dom/tests/modern/spec/Node_nodeName.phpt | 6 +- .../modern/spec/Node_nodeValue_element.phpt | 4 +- ext/dom/tests/modern/spec/Node_normalize.phpt | 4 +- .../modern/spec/Node_normalize_edge_case.phpt | 6 +- .../spec/Node_replaceChild_edge_cases.phpt | 10 +- ...rentNode_append_exception_consistency.phpt | 4 +- .../modern/spec/ParentNode_edge_case.phpt | 2 +- .../spec/ParentNode_hierarchy_text_nodes.phpt | 2 +- ...ocessingInstruction_data_manipulation.phpt | 2 +- .../modern/spec/Text_splitText_edge_case.phpt | 6 +- .../XMLDocument_getElementsByTagName.phpt | 2 +- .../modern/spec/XMLDocument_version.phpt | 2 +- .../modern/spec/appendChild_dtd_legacy.phpt | 2 +- .../append_text_nodes_invalid_hierarchy.phpt | 4 +- .../spec/attribute_entity_expansion.phpt | 16 +- .../attribute_entity_expansion_legacy.phpt | 14 +- ext/dom/tests/modern/spec/bug47530.phpt | 32 +- ext/dom/tests/modern/spec/bug47847.phpt | 6 +- ext/dom/tests/modern/spec/bug55294.phpt | 6 +- ext/dom/tests/modern/spec/bug81468.phpt | 12 +- .../clone_conflicting_namespace_prefix.phpt | 6 +- ext/dom/tests/modern/spec/clone_document.phpt | 8 +- ext/dom/tests/modern/spec/clone_dtd_node.phpt | 2 +- .../modern/spec/clone_entity_reference.phpt | 6 +- .../tests/modern/spec/clone_text_nodes.phpt | 10 +- .../modern/spec/default_namespace_move.phpt | 8 +- .../tests/modern/spec/documentURI_URL.phpt | 4 +- .../tests/modern/spec/dom_parsing_gh44.phpt | 4 +- .../tests/modern/spec/dom_parsing_gh45.phpt | 4 +- .../tests/modern/spec/dom_parsing_gh47.phpt | 6 +- .../modern/spec/dom_parsing_gh47_bis.phpt | 8 +- ext/dom/tests/modern/spec/gh11404_1.phpt | 4 +- ext/dom/tests/modern/spec/gh11404_2.phpt | 6 +- .../modern/spec/import_entity_reference.phpt | 8 +- .../modern/spec/import_of_lone_attribute.phpt | 6 +- ...rt_of_namepace_conflicting_attributes.phpt | 8 +- .../modern/spec/pre_insertion_validation.phpt | 8 +- .../spec/reconciliation_of_attributes.phpt | 6 +- .../spec/reconciliation_of_elements.phpt | 6 +- .../serialize_default_and_prefixed_xmlns.phpt | 4 +- .../spec/serialize_element_unqualified.phpt | 8 +- .../serialize_non_default_empty_xmlns.phpt | 6 +- .../modern/spec/serialize_xml_attribute.phpt | 4 +- .../serialize_xml_namespace_on_elements.phpt | 4 +- .../modern/spec/serialize_xml_ns_decl.phpt | 6 +- .../modern/spec/textContent_edge_cases.phpt | 6 +- ext/dom/tests/modern/spec/text_merging.phpt | 6 +- .../spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt | 6 +- .../modern/spec/xml_serialize_formatting.phpt | 4 +- ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt | 12 +- ...MLDocument_createFromFile_empty_input.phpt | 6 +- ...ment_createFromFile_override_encoding.phpt | 10 +- ...nt_createFromString_override_encoding.phpt | 10 +- .../tests/modern/xml/XMLDocument_debug.phpt | 6 +- .../modern/xml/XMLDocument_documentURI.phpt | 4 +- .../xml/XMLDocument_fromEmptyDocument_01.phpt | 8 +- .../xml/XMLDocument_fromEmptyDocument_02.phpt | 6 +- .../xml/XMLDocument_fromEmptyDocument_03.phpt | 6 +- .../modern/xml/XMLDocument_fromFile_01.phpt | 8 +- .../modern/xml/XMLDocument_fromFile_02.phpt | 8 +- .../modern/xml/XMLDocument_fromFile_03.phpt | 6 +- .../modern/xml/XMLDocument_fromFile_04.phpt | 6 +- .../modern/xml/XMLDocument_fromString_01.phpt | 8 +- .../modern/xml/XMLDocument_fromString_02.phpt | 6 +- .../modern/xml/XMLDocument_fromString_03.phpt | 8 +- .../modern/xml/XMLDocument_fromString_04.phpt | 6 +- ...MLDocument_node_ownerDocument_for_XML.phpt | 6 +- .../modern/xml/XMLDocument_saveXML_node.phpt | 6 +- .../tests/modern/xml/XMLDocument_xpath.phpt | 16 +- .../modern/xml/XMLDocument_xpath_errors.phpt | 8 +- ext/dom/tests/modern/xml/bug48339.phpt | 4 +- .../tests/modern/xml/simplexml_interop.phpt | 14 +- .../xml/xpath_query_context_in_scope_ns.phpt | 6 +- ext/dom/tests/not_serializable.phpt | 8 +- ext/dom/tests/xml_parsing_LIBXML_RECOVER.phpt | 4 +- ext/dom/xml_document.c | 6 +- ext/dom/xpath.c | 6 +- ...DocNamespaces_no_internal_declaration.phpt | 2 +- .../tests/simplexml_import_new_dom.phpt | 2 +- ext/xsl/php_xsl.stub.php | 8 +- ext/xsl/php_xsl_arginfo.h | 2 +- ...LTProcessor_namespace_mapper_lifetime.phpt | 6 +- .../auto_registration_namespaces_new_dom.phpt | 4 +- 251 files changed, 1501 insertions(+), 1501 deletions(-) diff --git a/ext/dom/characterdata.c b/ext/dom/characterdata.c index 3e7029e8f1b..40e1040b4b2 100644 --- a/ext/dom/characterdata.c +++ b/ext/dom/characterdata.c @@ -184,7 +184,7 @@ PHP_METHOD(DOMCharacterData, appendData) dom_character_data_append_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } -PHP_METHOD(DOM_CharacterData, appendData) +PHP_METHOD(Dom_CharacterData, appendData) { dom_character_data_append_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } @@ -255,7 +255,7 @@ PHP_METHOD(DOMCharacterData, insertData) dom_character_data_insert_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } -PHP_METHOD(DOM_CharacterData, insertData) +PHP_METHOD(Dom_CharacterData, insertData) { dom_character_data_insert_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } @@ -327,7 +327,7 @@ PHP_METHOD(DOMCharacterData, deleteData) dom_character_data_delete_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } -PHP_METHOD(DOM_CharacterData, deleteData) +PHP_METHOD(Dom_CharacterData, deleteData) { dom_character_data_delete_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } @@ -407,7 +407,7 @@ PHP_METHOD(DOMCharacterData, replaceData) dom_character_data_replace_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } -PHP_METHOD(DOM_CharacterData, replaceData) +PHP_METHOD(Dom_CharacterData, replaceData) { dom_character_data_replace_data(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } diff --git a/ext/dom/document.c b/ext/dom/document.c index 9609fce4ffb..0c47c5a8d1e 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -457,7 +457,7 @@ PHP_METHOD(DOMDocument, createElement) DOM_RET_OBJ(node, intern); } -PHP_METHOD(DOM_Document, createElement) +PHP_METHOD(Dom_Document, createElement) { xmlNode *node; xmlDocPtr docp; @@ -662,7 +662,7 @@ PHP_METHOD(DOMDocument, createProcessingInstruction) dom_document_create_processing_instruction(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Document, createProcessingInstruction) +PHP_METHOD(Dom_Document, createProcessingInstruction) { dom_document_create_processing_instruction(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -827,13 +827,13 @@ static void dom_modern_document_import_node(INTERNAL_FUNCTION_PARAMETERS, zend_c DOM_RET_OBJ(retnodep, intern); } -PHP_METHOD(DOM_Document, importNode) +PHP_METHOD(Dom_Document, importNode) { dom_modern_document_import_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_modern_node_class_entry); } /* }}} end dom_document_import_node */ -PHP_METHOD(DOM_Document, importLegacyNode) +PHP_METHOD(Dom_Document, importLegacyNode) { dom_modern_document_import_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_node_class_entry); } @@ -893,7 +893,7 @@ PHP_METHOD(DOMDocument, createElementNS) DOM_RET_OBJ(nodep, intern); } -PHP_METHOD(DOM_Document, createElementNS) +PHP_METHOD(Dom_Document, createElementNS) { xmlDocPtr docp; dom_object *intern; @@ -1199,7 +1199,7 @@ PHP_METHOD(DOMDocument, adoptNode) dom_document_adopt_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Document, adoptNode) +PHP_METHOD(Dom_Document, adoptNode) { dom_document_adopt_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -1693,7 +1693,7 @@ PHP_METHOD(DOMDocument, saveXML) dom_document_save_xml(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_node_class_entry); } -PHP_METHOD(DOM_XMLDocument, saveXML) +PHP_METHOD(Dom_XMLDocument, saveXml) { dom_document_save_xml(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_modern_node_class_entry); } @@ -2266,7 +2266,7 @@ PHP_METHOD(DOMDocument, registerNodeClass) dom_document_register_node_class(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Document, registerNodeClass) +PHP_METHOD(Dom_Document, registerNodeClass) { dom_document_register_node_class(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c index b031e793bbc..cbefca1883a 100644 --- a/ext/dom/domimplementation.c +++ b/ext/dom/domimplementation.c @@ -107,7 +107,7 @@ PHP_METHOD(DOMImplementation, createDocumentType) DOM_RET_OBJ((xmlNodePtr) doctype, NULL); } -PHP_METHOD(DOM_Implementation, createDocumentType) +PHP_METHOD(Dom_Implementation, createDocumentType) { size_t name_len, publicid_len = 0, systemid_len = 0; const char *name, *publicid = NULL, *systemid = NULL; @@ -249,7 +249,7 @@ PHP_METHOD(DOMImplementation, createDocument) } } -PHP_METHOD(DOM_Implementation, createDocument) +PHP_METHOD(Dom_Implementation, createDocument) { zval *dtd = NULL; xmlDtdPtr doctype = NULL; @@ -343,7 +343,7 @@ error: /* }}} end dom_domimplementation_create_document */ /* {{{ URL: https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument */ -PHP_METHOD(DOM_Implementation, createHTMLDocument) +PHP_METHOD(Dom_Implementation, createHTMLDocument) { const char *title = NULL; size_t title_len = 0; diff --git a/ext/dom/element.c b/ext/dom/element.c index 1b9038ef429..348c669e1b4 100644 --- a/ext/dom/element.c +++ b/ext/dom/element.c @@ -572,7 +572,7 @@ PHP_METHOD(DOMElement, removeAttribute) RETURN_BOOL(dom_remove_attribute(nodep, attrp)); } -PHP_METHOD(DOM_Element, removeAttribute) +PHP_METHOD(Dom_Element, removeAttribute) { xmlNodePtr nodep, attrp; dom_object *intern; @@ -749,7 +749,7 @@ PHP_METHOD(DOMElement, removeAttributeNode) dom_element_remove_attribute_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_node_class_entry); } -PHP_METHOD(DOM_Element, removeAttributeNode) +PHP_METHOD(Dom_Element, removeAttributeNode) { dom_element_remove_attribute_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_modern_node_class_entry); } @@ -785,7 +785,7 @@ PHP_METHOD(DOMElement, getElementsByTagName) dom_element_get_elements_by_tag_name(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Element, getElementsByTagName) +PHP_METHOD(Dom_Element, getElementsByTagName) { dom_element_get_elements_by_tag_name(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -1172,7 +1172,7 @@ PHP_METHOD(DOMElement, setAttributeNodeNS) dom_element_set_attribute_node_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, /* use_ns */ true, /* modern */ false); } -PHP_METHOD(DOM_Element, setAttributeNodeNS) +PHP_METHOD(Dom_Element, setAttributeNodeNS) { dom_element_set_attribute_node_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, /* use_ns */ true, /* modern */ true); } @@ -1208,7 +1208,7 @@ PHP_METHOD(DOMElement, getElementsByTagNameNS) dom_element_get_elements_by_tag_name_ns(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Element, getElementsByTagNameNS) +PHP_METHOD(Dom_Element, getElementsByTagNameNS) { dom_element_get_elements_by_tag_name_ns(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -1387,7 +1387,7 @@ PHP_METHOD(DOMElement, setIdAttributeNode) dom_element_set_id_attribute_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_attr_class_entry); } -PHP_METHOD(DOM_Element, setIdAttributeNode) +PHP_METHOD(Dom_Element, setIdAttributeNode) { dom_element_set_id_attribute_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_modern_attr_class_entry); } @@ -1595,7 +1595,7 @@ PHP_METHOD(DOMElement, insertAdjacentElement) dom_element_insert_adjacent_element(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_element_class_entry); } -PHP_METHOD(DOM_Element, insertAdjacentElement) +PHP_METHOD(Dom_Element, insertAdjacentElement) { dom_element_insert_adjacent_element(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_modern_element_class_entry); } diff --git a/ext/dom/html_collection.c b/ext/dom/html_collection.c index 3b74074559a..c207a87d159 100644 --- a/ext/dom/html_collection.c +++ b/ext/dom/html_collection.c @@ -89,7 +89,7 @@ static void dom_html_collection_named_item_into_zval(zval *return_value, zend_st } } -PHP_METHOD(DOM_HTMLCollection, namedItem) +PHP_METHOD(Dom_HTMLCollection, namedItem) { zend_string *key; ZEND_PARSE_PARAMETERS_START(1, 1) diff --git a/ext/dom/html_document.c b/ext/dom/html_document.c index fe0a447fbb2..6e109a35bd3 100644 --- a/ext/dom/html_document.c +++ b/ext/dom/html_document.c @@ -722,13 +722,13 @@ static bool check_options_validity(uint32_t arg_num, zend_long options) "LIBXML_NOERROR, " "LIBXML_COMPACT, " "LIBXML_HTML_NOIMPLIED, " - "DOM\\NO_DEFAULT_NS)"); + "Dom\\NO_DEFAULT_NS)"); return false; } return true; } -PHP_METHOD(DOM_HTMLDocument, createEmpty) +PHP_METHOD(Dom_HTMLDocument, createEmpty) { const char *encoding = "UTF-8"; size_t encoding_len = strlen("UTF-8"); @@ -775,7 +775,7 @@ static bool dom_should_register_error_handlers(zend_long options) return php_libxml_uses_internal_errors() || ((EG(error_reporting) | EG(user_error_handler_error_reporting)) & E_WARNING); } -PHP_METHOD(DOM_HTMLDocument, createFromString) +PHP_METHOD(Dom_HTMLDocument, createFromString) { const char *source, *override_encoding = NULL; size_t source_len, override_encoding_len; @@ -926,7 +926,7 @@ fail_oom: RETURN_THROWS(); } -PHP_METHOD(DOM_HTMLDocument, createFromFile) +PHP_METHOD(Dom_HTMLDocument, createFromFile) { const char *filename, *override_encoding = NULL; php_dom_libxml_ns_mapper *ns_mapper = NULL; @@ -1265,7 +1265,7 @@ static zend_result dom_common_save(dom_output_ctx *output_ctx, const xmlDoc *doc return SUCCESS; } -PHP_METHOD(DOM_HTMLDocument, saveHTMLFile) +PHP_METHOD(Dom_HTMLDocument, saveHtmlFile) { zval *id; xmlDoc *docp; @@ -1304,7 +1304,7 @@ PHP_METHOD(DOM_HTMLDocument, saveHTMLFile) RETURN_LONG(bytes); } -PHP_METHOD(DOM_HTMLDocument, saveHTML) +PHP_METHOD(Dom_HTMLDocument, saveHtml) { zval *nodep = NULL; const xmlDoc *docp; diff --git a/ext/dom/node.c b/ext/dom/node.c index 882ba7f89d2..c2ceff5d526 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -1021,7 +1021,7 @@ PHP_METHOD(DOMNode, insertBefore) dom_node_insert_before(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Node, insertBefore) +PHP_METHOD(Dom_Node, insertBefore) { dom_node_insert_before(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -1207,7 +1207,7 @@ PHP_METHOD(DOMNode, replaceChild) dom_node_replace_child(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Node, replaceChild) +PHP_METHOD(Dom_Node, replaceChild) { dom_node_replace_child(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -1257,7 +1257,7 @@ PHP_METHOD(DOMNode, removeChild) dom_node_remove_child(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_node_class_entry); } -PHP_METHOD(DOM_Node, removeChild) +PHP_METHOD(Dom_Node, removeChild) { dom_node_remove_child(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_modern_node_class_entry); } @@ -1389,7 +1389,7 @@ PHP_METHOD(DOMNode, appendChild) dom_node_append_child_legacy(return_value, intern, childobj, nodep, child); } -PHP_METHOD(DOM_Node, appendChild) +PHP_METHOD(Dom_Node, appendChild) { zval *node; xmlNodePtr nodep, child; @@ -1580,7 +1580,7 @@ PHP_METHOD(DOMNode, isSameNode) dom_node_is_same_node(INTERNAL_FUNCTION_PARAM_PASSTHRU, node); } -PHP_METHOD(DOM_Node, isSameNode) +PHP_METHOD(Dom_Node, isSameNode) { zval *node; if (zend_parse_parameters(ZEND_NUM_ARGS(), "O!", &node, dom_modern_node_class_entry) != SUCCESS) { @@ -1780,7 +1780,7 @@ PHP_METHOD(DOMNode, isEqualNode) dom_node_is_equal_node_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Node, isEqualNode) +PHP_METHOD(Dom_Node, isEqualNode) { dom_node_is_equal_node_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -1877,7 +1877,7 @@ PHP_METHOD(DOMNode, lookupPrefix) dom_node_lookup_prefix(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Node, lookupPrefix) +PHP_METHOD(Dom_Node, lookupPrefix) { dom_node_lookup_prefix(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -1989,7 +1989,7 @@ PHP_METHOD(DOMNode, isDefaultNamespace) RETURN_FALSE; } -PHP_METHOD(DOM_Node, isDefaultNamespace) +PHP_METHOD(Dom_Node, isDefaultNamespace) { zval *id; xmlNodePtr nodep; @@ -2291,7 +2291,7 @@ PHP_METHOD(DOMNode, getNodePath) dom_node_get_node_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, false); } -PHP_METHOD(DOM_Node, getNodePath) +PHP_METHOD(Dom_Node, getNodePath) { dom_node_get_node_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, true); } @@ -2354,7 +2354,7 @@ PHP_METHOD(DOMNode, contains) RETURN_BOOL(dom_node_contains(thisp, otherp)); } -PHP_METHOD(DOM_Node, contains) +PHP_METHOD(Dom_Node, contains) { zval *other, *id; xmlNodePtr otherp, thisp; @@ -2570,7 +2570,7 @@ PHP_METHOD(DOMNode, compareDocumentPosition) dom_node_compare_document_position(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_node_class_entry); } -PHP_METHOD(DOM_Node, compareDocumentPosition) +PHP_METHOD(Dom_Node, compareDocumentPosition) { dom_node_compare_document_position(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_modern_node_class_entry); } @@ -2585,7 +2585,7 @@ PHP_METHOD(DOM_Node, compareDocumentPosition) * - If the user implements __sleep / __wakeup, then it's also not a problem because they will not enter the throwing methods. */ -PHP_METHOD(DOM_Node, __construct) +PHP_METHOD(Dom_Node, __construct) { ZEND_UNREACHABLE(); } diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index d85c0be56dc..20acdfd51b8 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -521,7 +521,7 @@ static void dom_import_simplexml_common(INTERNAL_FUNCTION_PARAMETERS, php_libxml if (new_class == PHP_LIBXML_CLASS_MODERN) { zend_argument_type_error(1, "must not be already imported as a DOMNode"); } else { - zend_argument_type_error(1, "must not be already imported as a DOM\\Node"); + zend_argument_type_error(1, "must not be already imported as a Dom\\Node"); } RETURN_THROWS(); } @@ -545,7 +545,7 @@ PHP_FUNCTION(dom_import_simplexml) dom_import_simplexml_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_LIBXML_CLASS_LEGACY); } -PHP_FUNCTION(DOM_import_simplexml) +PHP_FUNCTION(Dom_import_simplexml) { dom_import_simplexml_common(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_LIBXML_CLASS_MODERN); } @@ -733,15 +733,15 @@ PHP_MINIT_FUNCTION(dom) dom_domexception_class_entry = register_class_DOMException(zend_ce_exception); dom_parentnode_class_entry = register_class_DOMParentNode(); - dom_modern_parentnode_class_entry = register_class_DOM_ParentNode(); + dom_modern_parentnode_class_entry = register_class_Dom_ParentNode(); dom_childnode_class_entry = register_class_DOMChildNode(); - dom_modern_childnode_class_entry = register_class_DOM_ChildNode(); + dom_modern_childnode_class_entry = register_class_Dom_ChildNode(); dom_domimplementation_class_entry = register_class_DOMImplementation(); dom_domimplementation_class_entry->create_object = dom_objects_new; dom_domimplementation_class_entry->default_object_handlers = &dom_object_handlers; - dom_modern_domimplementation_class_entry = register_class_DOM_Implementation(); + dom_modern_domimplementation_class_entry = register_class_Dom_Implementation(); dom_modern_domimplementation_class_entry->create_object = dom_objects_new; dom_modern_domimplementation_class_entry->default_object_handlers = &dom_modern_domimplementation_object_handlers; @@ -770,7 +770,7 @@ PHP_MINIT_FUNCTION(dom) DOM_REGISTER_PROP_HANDLER(&dom_node_prop_handlers, "textContent", dom_node_text_content_read, dom_node_text_content_write); zend_hash_add_new_ptr(&classes, dom_node_class_entry->name, &dom_node_prop_handlers); - dom_modern_node_class_entry = register_class_DOM_Node(); + dom_modern_node_class_entry = register_class_Dom_Node(); dom_modern_node_class_entry->create_object = dom_objects_new; dom_modern_node_class_entry->default_object_handlers = &dom_object_handlers; @@ -820,7 +820,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_documentfragment_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_documentfragment_class_entry->name, &dom_documentfragment_prop_handlers); - dom_modern_documentfragment_class_entry = register_class_DOM_DocumentFragment(dom_modern_node_class_entry, dom_modern_parentnode_class_entry); + dom_modern_documentfragment_class_entry = register_class_Dom_DocumentFragment(dom_modern_node_class_entry, dom_modern_parentnode_class_entry); dom_modern_documentfragment_class_entry->create_object = dom_objects_new; dom_modern_documentfragment_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_init(&dom_modern_documentfragment_prop_handlers, 0, NULL, NULL, true); @@ -832,7 +832,7 @@ PHP_MINIT_FUNCTION(dom) DOM_OVERWRITE_PROP_HANDLER(&dom_modern_documentfragment_prop_handlers, "textContent", dom_node_text_content_read, dom_node_text_content_write); zend_hash_add_new_ptr(&classes, dom_modern_documentfragment_class_entry->name, &dom_modern_documentfragment_prop_handlers); - dom_abstract_base_document_class_entry = register_class_DOM_Document(dom_modern_node_class_entry, dom_modern_parentnode_class_entry); + dom_abstract_base_document_class_entry = register_class_Dom_Document(dom_modern_node_class_entry, dom_modern_parentnode_class_entry); dom_abstract_base_document_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_init(&dom_abstract_base_document_prop_handlers, 0, NULL, NULL, true); DOM_REGISTER_PROP_HANDLER(&dom_abstract_base_document_prop_handlers, "implementation", dom_modern_document_implementation_read, NULL); @@ -879,11 +879,11 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_document_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_document_class_entry->name, &dom_document_prop_handlers); - dom_html_document_class_entry = register_class_DOM_HTMLDocument(dom_abstract_base_document_class_entry); + dom_html_document_class_entry = register_class_Dom_HTMLDocument(dom_abstract_base_document_class_entry); dom_html_document_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_add_new_ptr(&classes, dom_html_document_class_entry->name, &dom_abstract_base_document_prop_handlers); - dom_xml_document_class_entry = register_class_DOM_XMLDocument(dom_abstract_base_document_class_entry); + dom_xml_document_class_entry = register_class_Dom_XMLDocument(dom_abstract_base_document_class_entry); dom_xml_document_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_init(&dom_xml_document_prop_handlers, 0, NULL, NULL, true); DOM_REGISTER_PROP_HANDLER(&dom_xml_document_prop_handlers, "xmlEncoding", dom_document_encoding_read, NULL); @@ -903,7 +903,7 @@ PHP_MINIT_FUNCTION(dom) DOM_REGISTER_PROP_HANDLER(&dom_nodelist_prop_handlers, "length", dom_nodelist_length_read, NULL); zend_hash_add_new_ptr(&classes, dom_nodelist_class_entry->name, &dom_nodelist_prop_handlers); - dom_modern_nodelist_class_entry = register_class_DOM_NodeList(zend_ce_aggregate, zend_ce_countable); + dom_modern_nodelist_class_entry = register_class_Dom_NodeList(zend_ce_aggregate, zend_ce_countable); dom_modern_nodelist_class_entry->create_object = dom_nnodemap_objects_new; dom_modern_nodelist_class_entry->default_object_handlers = &dom_modern_nodelist_object_handlers; dom_modern_nodelist_class_entry->get_iterator = php_dom_get_iterator; @@ -919,21 +919,21 @@ PHP_MINIT_FUNCTION(dom) DOM_REGISTER_PROP_HANDLER(&dom_namednodemap_prop_handlers, "length", dom_namednodemap_length_read, NULL); zend_hash_add_new_ptr(&classes, dom_namednodemap_class_entry->name, &dom_namednodemap_prop_handlers); - dom_modern_namednodemap_class_entry = register_class_DOM_NamedNodeMap(zend_ce_aggregate, zend_ce_countable); + dom_modern_namednodemap_class_entry = register_class_Dom_NamedNodeMap(zend_ce_aggregate, zend_ce_countable); dom_modern_namednodemap_class_entry->create_object = dom_nnodemap_objects_new; dom_modern_namednodemap_class_entry->default_object_handlers = &dom_modern_nnodemap_object_handlers; dom_modern_namednodemap_class_entry->get_iterator = php_dom_get_iterator; zend_hash_add_new_ptr(&classes, dom_modern_namednodemap_class_entry->name, &dom_namednodemap_prop_handlers); - dom_modern_dtd_namednodemap_class_entry = register_class_DOM_DTDNamedNodeMap(zend_ce_aggregate, zend_ce_countable); + dom_modern_dtd_namednodemap_class_entry = register_class_Dom_DtdNamedNodeMap(zend_ce_aggregate, zend_ce_countable); dom_modern_dtd_namednodemap_class_entry->create_object = dom_nnodemap_objects_new; dom_modern_dtd_namednodemap_class_entry->default_object_handlers = &dom_modern_nnodemap_object_handlers; dom_modern_dtd_namednodemap_class_entry->get_iterator = php_dom_get_iterator; zend_hash_add_new_ptr(&classes, dom_modern_dtd_namednodemap_class_entry->name, &dom_namednodemap_prop_handlers); - dom_html_collection_class_entry = register_class_DOM_HTMLCollection(zend_ce_aggregate, zend_ce_countable); + dom_html_collection_class_entry = register_class_Dom_HTMLCollection(zend_ce_aggregate, zend_ce_countable); dom_html_collection_class_entry->create_object = dom_nnodemap_objects_new; dom_html_collection_class_entry->default_object_handlers = &dom_html_collection_object_handlers; dom_html_collection_class_entry->get_iterator = php_dom_get_iterator; @@ -952,7 +952,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_characterdata_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_characterdata_class_entry->name, &dom_characterdata_prop_handlers); - dom_modern_characterdata_class_entry = register_class_DOM_CharacterData(dom_modern_node_class_entry, dom_modern_childnode_class_entry); + dom_modern_characterdata_class_entry = register_class_Dom_CharacterData(dom_modern_node_class_entry, dom_modern_childnode_class_entry); dom_modern_characterdata_class_entry->create_object = dom_objects_new; dom_modern_characterdata_class_entry->default_object_handlers = &dom_object_handlers; @@ -979,7 +979,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_attr_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_attr_class_entry->name, &dom_attr_prop_handlers); - dom_modern_attr_class_entry = register_class_DOM_Attr(dom_modern_node_class_entry); + dom_modern_attr_class_entry = register_class_Dom_Attr(dom_modern_node_class_entry); dom_modern_attr_class_entry->create_object = dom_objects_new; dom_modern_attr_class_entry->default_object_handlers = &dom_object_handlers; @@ -1013,7 +1013,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_element_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_element_class_entry->name, &dom_element_prop_handlers); - dom_modern_element_class_entry = register_class_DOM_Element(dom_modern_node_class_entry, dom_modern_parentnode_class_entry, dom_modern_childnode_class_entry); + dom_modern_element_class_entry = register_class_Dom_Element(dom_modern_node_class_entry, dom_modern_parentnode_class_entry, dom_modern_childnode_class_entry); dom_modern_element_class_entry->create_object = dom_objects_new; dom_modern_element_class_entry->default_object_handlers = &dom_object_handlers; @@ -1043,7 +1043,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_text_prop_handlers, &dom_characterdata_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_text_class_entry->name, &dom_text_prop_handlers); - dom_modern_text_class_entry = register_class_DOM_Text(dom_modern_characterdata_class_entry); + dom_modern_text_class_entry = register_class_Dom_Text(dom_modern_characterdata_class_entry); dom_modern_text_class_entry->create_object = dom_objects_new; dom_modern_text_class_entry->default_object_handlers = &dom_object_handlers; @@ -1057,7 +1057,7 @@ PHP_MINIT_FUNCTION(dom) dom_comment_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_add_new_ptr(&classes, dom_comment_class_entry->name, &dom_characterdata_prop_handlers); - dom_modern_comment_class_entry = register_class_DOM_Comment(dom_modern_characterdata_class_entry); + dom_modern_comment_class_entry = register_class_Dom_Comment(dom_modern_characterdata_class_entry); dom_modern_comment_class_entry->create_object = dom_objects_new; dom_modern_comment_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_add_new_ptr(&classes, dom_modern_comment_class_entry->name, &dom_modern_characterdata_prop_handlers); @@ -1067,7 +1067,7 @@ PHP_MINIT_FUNCTION(dom) dom_cdatasection_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_add_new_ptr(&classes, dom_cdatasection_class_entry->name, &dom_text_prop_handlers); - dom_modern_cdatasection_class_entry = register_class_DOM_CDATASection(dom_modern_text_class_entry); + dom_modern_cdatasection_class_entry = register_class_Dom_CDATASection(dom_modern_text_class_entry); dom_modern_cdatasection_class_entry->create_object = dom_objects_new; dom_modern_cdatasection_class_entry->default_object_handlers = &dom_object_handlers; zend_hash_add_new_ptr(&classes, dom_modern_cdatasection_class_entry->name, &dom_modern_text_prop_handlers); @@ -1086,7 +1086,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_documenttype_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_documenttype_class_entry->name, &dom_documenttype_prop_handlers); - dom_modern_documenttype_class_entry = register_class_DOM_DocumentType(dom_modern_node_class_entry, dom_modern_childnode_class_entry); + dom_modern_documenttype_class_entry = register_class_Dom_DocumentType(dom_modern_node_class_entry, dom_modern_childnode_class_entry); dom_modern_documenttype_class_entry->create_object = dom_objects_new; dom_modern_documenttype_class_entry->default_object_handlers = &dom_object_handlers; @@ -1110,7 +1110,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_notation_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_notation_class_entry->name, &dom_notation_prop_handlers); - dom_modern_notation_class_entry = register_class_DOM_Notation(dom_modern_node_class_entry); + dom_modern_notation_class_entry = register_class_Dom_Notation(dom_modern_node_class_entry); dom_modern_notation_class_entry->create_object = dom_objects_new; dom_modern_notation_class_entry->default_object_handlers = &dom_object_handlers; @@ -1134,7 +1134,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_entity_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_entity_class_entry->name, &dom_entity_prop_handlers); - dom_modern_entity_class_entry = register_class_DOM_Entity(dom_modern_node_class_entry); + dom_modern_entity_class_entry = register_class_Dom_Entity(dom_modern_node_class_entry); dom_modern_entity_class_entry->create_object = dom_objects_new; dom_modern_entity_class_entry->default_object_handlers = &dom_object_handlers; @@ -1157,7 +1157,7 @@ PHP_MINIT_FUNCTION(dom) DOM_OVERWRITE_PROP_HANDLER(&dom_entity_reference_prop_handlers, "childNodes", dom_entity_reference_child_nodes_read, NULL); zend_hash_add_new_ptr(&classes, dom_entityreference_class_entry->name, &dom_entity_reference_prop_handlers); - dom_modern_entityreference_class_entry = register_class_DOM_EntityReference(dom_modern_node_class_entry); + dom_modern_entityreference_class_entry = register_class_Dom_EntityReference(dom_modern_node_class_entry); dom_modern_entityreference_class_entry->create_object = dom_objects_new; dom_modern_entityreference_class_entry->default_object_handlers = &dom_object_handlers; @@ -1179,7 +1179,7 @@ PHP_MINIT_FUNCTION(dom) zend_hash_merge(&dom_processinginstruction_prop_handlers, &dom_node_prop_handlers, NULL, false); zend_hash_add_new_ptr(&classes, dom_processinginstruction_class_entry->name, &dom_processinginstruction_prop_handlers); - dom_modern_processinginstruction_class_entry = register_class_DOM_ProcessingInstruction(dom_modern_characterdata_class_entry); + dom_modern_processinginstruction_class_entry = register_class_Dom_ProcessingInstruction(dom_modern_characterdata_class_entry); dom_modern_processinginstruction_class_entry->create_object = dom_objects_new; dom_modern_processinginstruction_class_entry->default_object_handlers = &dom_object_handlers; @@ -1205,7 +1205,7 @@ PHP_MINIT_FUNCTION(dom) DOM_REGISTER_PROP_HANDLER(&dom_xpath_prop_handlers, "registerNodeNamespaces", dom_xpath_register_node_ns_read, dom_xpath_register_node_ns_write); zend_hash_add_new_ptr(&classes, dom_xpath_class_entry->name, &dom_xpath_prop_handlers); - dom_modern_xpath_class_entry = register_class_DOM_XPath(); + dom_modern_xpath_class_entry = register_class_Dom_XPath(); dom_modern_xpath_class_entry->create_object = dom_xpath_objects_new; dom_modern_xpath_class_entry->default_object_handlers = &dom_xpath_object_handlers; diff --git a/ext/dom/php_dom.stub.php b/ext/dom/php_dom.stub.php index 692499407cc..1246430c9ab 100644 --- a/ext/dom/php_dom.stub.php +++ b/ext/dom/php_dom.stub.php @@ -889,7 +889,7 @@ namespace public function replaceChildren(...$nodes): void {} } - /** @alias DOM\DOMException */ + /** @alias Dom\DOMException */ final class DOMException extends Exception { /** @@ -1025,7 +1025,7 @@ namespace function dom_import_simplexml(object $node): DOMElement {} } -namespace DOM +namespace Dom { /** * @var int @@ -1252,7 +1252,7 @@ namespace DOM public function getIterator(): \Iterator {} } - class DTDNamedNodeMap implements \IteratorAggregate, \Countable + class DtdNamedNodeMap implements \IteratorAggregate, \Countable { /** @readonly */ public int $length; @@ -1330,7 +1330,7 @@ namespace DOM public function getAttributeNode(string $qualifiedName): ?Attr {} /** @implementation-alias DOMElement::getAttributeNodeNS */ public function getAttributeNodeNS(?string $namespace, string $localName): ?Attr {} - /** @implementation-alias DOM\Element::setAttributeNodeNS */ + /** @implementation-alias Dom\Element::setAttributeNodeNS */ public function setAttributeNode(Attr $attr) : ?Attr {} public function setAttributeNodeNS(Attr $attr) : ?Attr {} public function removeAttributeNode(Attr $attr) : Attr {} @@ -1452,9 +1452,9 @@ namespace DOM /** @readonly */ public string $name; /** @readonly */ - public DTDNamedNodeMap $entities; + public DtdNamedNodeMap $entities; /** @readonly */ - public DTDNamedNodeMap $notations; + public DtdNamedNodeMap $notations; /** @readonly */ public string $publicId; /** @readonly */ @@ -1482,7 +1482,7 @@ namespace DOM public int $childElementCount; /** @implementation-alias DOMDocumentFragment::appendXML */ - public function appendXML(string $data): bool {} + public function appendXml(string $data): bool {} /** @implementation-alias DOMElement::append */ public function append(Node|string ...$nodes): void {} /** @implementation-alias DOMElement::prepend */ @@ -1525,9 +1525,9 @@ namespace DOM public ?DocumentType $doctype; /** @readonly */ public ?Element $documentElement; - /** @implementation-alias DOM\Element::getElementsByTagName */ + /** @implementation-alias Dom\Element::getElementsByTagName */ public function getElementsByTagName(string $qualifiedName): HTMLCollection {} - /** @implementation-alias DOM\Element::getElementsByTagNameNS */ + /** @implementation-alias Dom\Element::getElementsByTagNameNS */ public function getElementsByTagNameNS(?string $namespace, string $localName): HTMLCollection {} public function createElement(string $localName): Element {} @@ -1568,9 +1568,9 @@ namespace DOM /** @implementation-alias DOMDocument::schemaValidateSource */ public function schemaValidateSource(string $source, int $flags = 0): bool {} /** @implementation-alias DOMDocument::relaxNGValidate */ - public function relaxNGValidate(string $filename): bool {} + public function relaxNgValidate(string $filename): bool {} /** @implementation-alias DOMDocument::relaxNGValidateSource */ - public function relaxNGValidateSource(string $source): bool {} + public function relaxNgValidateSource(string $source): bool {} #endif /** @implementation-alias DOMElement::append */ @@ -1591,15 +1591,15 @@ namespace DOM public static function createFromString(string $source, int $options = 0, ?string $overrideEncoding = null): HTMLDocument {} - /** @implementation-alias DOM\XMLDocument::saveXML */ - public function saveXML(?Node $node = null, int $options = 0): string|false {} + /** @implementation-alias Dom\XMLDocument::saveXml */ + public function saveXml(?Node $node = null, int $options = 0): string|false {} /** @implementation-alias DOMDocument::save */ - public function saveXMLFile(string $filename, int $options = 0): int|false {} + public function saveXmlFile(string $filename, int $options = 0): int|false {} - public function saveHTML(?Node $node = null): string {} + public function saveHtml(?Node $node = null): string {} - public function saveHTMLFile(string $filename): int|false {} + public function saveHtmlFile(string $filename): int|false {} } final class XMLDocument extends Document @@ -1628,10 +1628,10 @@ namespace DOM /** @implementation-alias DOMDocument::xinclude */ public function xinclude(int $options = 0): int|false {} - public function saveXML(?Node $node = null, int $options = 0): string|false {} + public function saveXml(?Node $node = null, int $options = 0): string|false {} /** @implementation-alias DOMDocument::save */ - public function saveXMLFile(string $filename, int $options = 0): int|false {} + public function saveXmlFile(string $filename, int $options = 0): int|false {} } #ifdef LIBXML_XPATH_ENABLED diff --git a/ext/dom/php_dom_arginfo.h b/ext/dom/php_dom_arginfo.h index dbb8109f448..72b26a42a97 100644 --- a/ext/dom/php_dom_arginfo.h +++ b/ext/dom/php_dom_arginfo.h @@ -1,11 +1,11 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 49a153db3d3aa28031d7a15c15f89f6f3e9c33a5 */ + * Stub hash: 1abdcd82008f0b8aead06c9fe62fbcdbfc598a4f */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 0) ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_DOM_import_simplexml, 0, 1, DOM\\Element, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_Dom_import_simplexml, 0, 1, Dom\\Element, 0) ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0) ZEND_END_ARG_INFO() @@ -559,111 +559,111 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOMXPath_quote, 0, 1, IS_S ZEND_END_ARG_INFO() #endif -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_ParentNode_append, 0, 0, IS_VOID, 0) - ZEND_ARG_VARIADIC_OBJ_TYPE_MASK(0, nodes, DOM\\\116ode, MAY_BE_STRING) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_ParentNode_append, 0, 0, IS_VOID, 0) + ZEND_ARG_VARIADIC_OBJ_TYPE_MASK(0, nodes, Dom\\\116ode, MAY_BE_STRING) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_ParentNode_prepend arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_ParentNode_prepend arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_ParentNode_replaceChildren arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_ParentNode_replaceChildren arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_ChildNode_remove arginfo_class_DOMChildNode_remove +#define arginfo_class_Dom_ChildNode_remove arginfo_class_DOMChildNode_remove -#define arginfo_class_DOM_ChildNode_before arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_ChildNode_before arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_ChildNode_after arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_ChildNode_after arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_ChildNode_replaceWith arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_ChildNode_replaceWith arginfo_class_Dom_ParentNode_append -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Implementation_createDocumentType, 0, 3, DOM\\DocumentType, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Implementation_createDocumentType, 0, 3, Dom\\DocumentType, 0) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, publicId, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, systemId, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Implementation_createDocument, 0, 2, DOM\\XMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Implementation_createDocument, 0, 2, Dom\\XMLDocument, 0) ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) - ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, doctype, DOM\\DocumentType, 1, "null") + ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, doctype, Dom\\DocumentType, 1, "null") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Implementation_createHTMLDocument, 0, 0, DOM\\HTMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Implementation_createHTMLDocument, 0, 0, Dom\\HTMLDocument, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, title, IS_STRING, 1, "null") ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Node___construct arginfo_class_DOMDocumentFragment___construct +#define arginfo_class_Dom_Node___construct arginfo_class_DOMDocumentFragment___construct -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Node_getRootNode, 0, 0, DOM\\\116ode, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Node_getRootNode, 0, 0, Dom\\\116ode, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_hasChildNodes, 0, 0, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_hasChildNodes, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Node_normalize arginfo_class_DOMChildNode_remove +#define arginfo_class_Dom_Node_normalize arginfo_class_DOMChildNode_remove -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Node_cloneNode, 0, 0, DOM\\\116ode, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Node_cloneNode, 0, 0, Dom\\\116ode, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deep, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_isEqualNode, 0, 1, _IS_BOOL, 0) - ZEND_ARG_OBJ_INFO(0, otherNode, DOM\\\116ode, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_isEqualNode, 0, 1, _IS_BOOL, 0) + ZEND_ARG_OBJ_INFO(0, otherNode, Dom\\\116ode, 1) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Node_isSameNode arginfo_class_DOM_Node_isEqualNode +#define arginfo_class_Dom_Node_isSameNode arginfo_class_Dom_Node_isEqualNode -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_compareDocumentPosition, 0, 1, IS_LONG, 0) - ZEND_ARG_OBJ_INFO(0, other, DOM\\\116ode, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_compareDocumentPosition, 0, 1, IS_LONG, 0) + ZEND_ARG_OBJ_INFO(0, other, Dom\\\116ode, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_contains, 0, 1, _IS_BOOL, 0) - ZEND_ARG_OBJ_INFO(0, other, DOM\\\116ode, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_contains, 0, 1, _IS_BOOL, 0) + ZEND_ARG_OBJ_INFO(0, other, Dom\\\116ode, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_lookupPrefix, 0, 1, IS_STRING, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_lookupPrefix, 0, 1, IS_STRING, 1) ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_lookupNamespaceURI, 0, 1, IS_STRING, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_lookupNamespaceURI, 0, 1, IS_STRING, 1) ZEND_ARG_TYPE_INFO(0, prefix, IS_STRING, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_isDefaultNamespace, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_isDefaultNamespace, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Node_insertBefore, 0, 2, DOM\\\116ode, 0) - ZEND_ARG_OBJ_INFO(0, node, DOM\\\116ode, 0) - ZEND_ARG_OBJ_INFO(0, child, DOM\\\116ode, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Node_insertBefore, 0, 2, Dom\\\116ode, 0) + ZEND_ARG_OBJ_INFO(0, node, Dom\\\116ode, 0) + ZEND_ARG_OBJ_INFO(0, child, Dom\\\116ode, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Node_appendChild, 0, 1, DOM\\\116ode, 0) - ZEND_ARG_OBJ_INFO(0, node, DOM\\\116ode, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Node_appendChild, 0, 1, Dom\\\116ode, 0) + ZEND_ARG_OBJ_INFO(0, node, Dom\\\116ode, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Node_replaceChild, 0, 2, DOM\\\116ode, 0) - ZEND_ARG_OBJ_INFO(0, node, DOM\\\116ode, 0) - ZEND_ARG_OBJ_INFO(0, child, DOM\\\116ode, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Node_replaceChild, 0, 2, Dom\\\116ode, 0) + ZEND_ARG_OBJ_INFO(0, node, Dom\\\116ode, 0) + ZEND_ARG_OBJ_INFO(0, child, Dom\\\116ode, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Node_removeChild, 0, 1, DOM\\\116ode, 0) - ZEND_ARG_OBJ_INFO(0, child, DOM\\\116ode, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Node_removeChild, 0, 1, Dom\\\116ode, 0) + ZEND_ARG_OBJ_INFO(0, child, Dom\\\116ode, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_getLineNo, 0, 0, IS_LONG, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_getLineNo, 0, 0, IS_LONG, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Node_getNodePath, 0, 0, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Node_getNodePath, 0, 0, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_DOM_Node_C14N, 0, 0, MAY_BE_STRING|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Dom_Node_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_WITH_RETURN_TYPE_MASK_EX(arginfo_class_DOM_Node_C14NFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Dom_Node_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") @@ -671,431 +671,431 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_DOM_Node_C14NFile, 0, 1, M ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nsPrefixes, IS_ARRAY, 1, "null") ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Node___sleep arginfo_class_DOMNode___sleep +#define arginfo_class_Dom_Node___sleep arginfo_class_DOMNode___sleep -#define arginfo_class_DOM_Node___wakeup arginfo_class_DOMChildNode_remove +#define arginfo_class_Dom_Node___wakeup arginfo_class_DOMChildNode_remove -#define arginfo_class_DOM_NodeList_count arginfo_class_DOM_Node_getLineNo +#define arginfo_class_Dom_NodeList_count arginfo_class_Dom_Node_getLineNo -#define arginfo_class_DOM_NodeList_getIterator arginfo_class_DOMNodeList_getIterator +#define arginfo_class_Dom_NodeList_getIterator arginfo_class_DOMNodeList_getIterator -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_NodeList_item, 0, 1, DOM\\\116ode, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_NodeList_item, 0, 1, Dom\\\116ode, 1) ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_NamedNodeMap_item, 0, 1, DOM\\Attr, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_NamedNodeMap_item, 0, 1, Dom\\Attr, 1) ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_NamedNodeMap_getNamedItem, 0, 1, DOM\\Attr, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_NamedNodeMap_getNamedItem, 0, 1, Dom\\Attr, 1) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_NamedNodeMap_getNamedItemNS, 0, 2, DOM\\Attr, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_NamedNodeMap_getNamedItemNS, 0, 2, Dom\\Attr, 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_DOM_NamedNodeMap_count arginfo_class_DOM_Node_getLineNo +#define arginfo_class_Dom_NamedNodeMap_count arginfo_class_Dom_Node_getLineNo -#define arginfo_class_DOM_NamedNodeMap_getIterator arginfo_class_DOMNodeList_getIterator +#define arginfo_class_Dom_NamedNodeMap_getIterator arginfo_class_DOMNodeList_getIterator -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_DOM_DTDNamedNodeMap_item, 0, 1, DOM\\Entity|DOM\\\116otation, MAY_BE_NULL) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Dom_DtdNamedNodeMap_item, 0, 1, Dom\\Entity|Dom\\\116otation, MAY_BE_NULL) ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_DOM_DTDNamedNodeMap_getNamedItem, 0, 1, DOM\\Entity|DOM\\\116otation, MAY_BE_NULL) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Dom_DtdNamedNodeMap_getNamedItem, 0, 1, Dom\\Entity|Dom\\\116otation, MAY_BE_NULL) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_DOM_DTDNamedNodeMap_getNamedItemNS, 0, 2, DOM\\Entity|DOM\\\116otation, MAY_BE_NULL) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Dom_DtdNamedNodeMap_getNamedItemNS, 0, 2, Dom\\Entity|Dom\\\116otation, MAY_BE_NULL) 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_DOM_DTDNamedNodeMap_count arginfo_class_DOM_Node_getLineNo +#define arginfo_class_Dom_DtdNamedNodeMap_count arginfo_class_Dom_Node_getLineNo -#define arginfo_class_DOM_DTDNamedNodeMap_getIterator arginfo_class_DOMNodeList_getIterator +#define arginfo_class_Dom_DtdNamedNodeMap_getIterator arginfo_class_DOMNodeList_getIterator -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_HTMLCollection_item, 0, 1, DOM\\Element, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_HTMLCollection_item, 0, 1, Dom\\Element, 1) ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_HTMLCollection_namedItem, 0, 1, DOM\\Element, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_HTMLCollection_namedItem, 0, 1, Dom\\Element, 1) ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_HTMLCollection_count arginfo_class_DOM_Node_getLineNo +#define arginfo_class_Dom_HTMLCollection_count arginfo_class_Dom_Node_getLineNo -#define arginfo_class_DOM_HTMLCollection_getIterator arginfo_class_DOMNodeList_getIterator +#define arginfo_class_Dom_HTMLCollection_getIterator arginfo_class_DOMNodeList_getIterator -#define arginfo_class_DOM_Element_hasAttributes arginfo_class_DOM_Node_hasChildNodes +#define arginfo_class_Dom_Element_hasAttributes arginfo_class_Dom_Node_hasChildNodes -#define arginfo_class_DOM_Element_getAttributeNames arginfo_class_DOMNode___sleep +#define arginfo_class_Dom_Element_getAttributeNames arginfo_class_DOMNode___sleep -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_getAttribute, 0, 1, IS_STRING, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_getAttribute, 0, 1, IS_STRING, 1) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_getAttributeNS, 0, 2, IS_STRING, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_getAttributeNS, 0, 2, IS_STRING, 1) 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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_setAttribute, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_setAttribute, 0, 2, IS_VOID, 0) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_setAttributeNS, 0, 3, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_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) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_removeAttribute, 0, 1, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_removeAttribute, 0, 1, IS_VOID, 0) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_removeAttributeNS, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_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() -#define arginfo_class_DOM_Element_toggleAttribute arginfo_class_DOMElement_toggleAttribute +#define arginfo_class_Dom_Element_toggleAttribute arginfo_class_DOMElement_toggleAttribute -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_hasAttribute, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_hasAttribute, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_hasAttributeNS, 0, 2, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_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_DOM_Element_getAttributeNode arginfo_class_DOM_NamedNodeMap_getNamedItem +#define arginfo_class_Dom_Element_getAttributeNode arginfo_class_Dom_NamedNodeMap_getNamedItem -#define arginfo_class_DOM_Element_getAttributeNodeNS arginfo_class_DOM_NamedNodeMap_getNamedItemNS +#define arginfo_class_Dom_Element_getAttributeNodeNS arginfo_class_Dom_NamedNodeMap_getNamedItemNS -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Element_setAttributeNode, 0, 1, DOM\\Attr, 1) - ZEND_ARG_OBJ_INFO(0, attr, DOM\\Attr, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Element_setAttributeNode, 0, 1, Dom\\Attr, 1) + ZEND_ARG_OBJ_INFO(0, attr, Dom\\Attr, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Element_setAttributeNodeNS arginfo_class_DOM_Element_setAttributeNode +#define arginfo_class_Dom_Element_setAttributeNodeNS arginfo_class_Dom_Element_setAttributeNode -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Element_removeAttributeNode, 0, 1, DOM\\Attr, 0) - ZEND_ARG_OBJ_INFO(0, attr, DOM\\Attr, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Element_removeAttributeNode, 0, 1, Dom\\Attr, 0) + ZEND_ARG_OBJ_INFO(0, attr, Dom\\Attr, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Element_getElementsByTagName, 0, 1, DOM\\HTMLCollection, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Element_getElementsByTagName, 0, 1, Dom\\HTMLCollection, 0) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Element_getElementsByTagNameNS, 0, 2, DOM\\HTMLCollection, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Element_getElementsByTagNameNS, 0, 2, Dom\\HTMLCollection, 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_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Element_insertAdjacentElement, 0, 2, DOM\\Element, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Element_insertAdjacentElement, 0, 2, Dom\\Element, 1) ZEND_ARG_TYPE_INFO(0, where, IS_STRING, 0) - ZEND_ARG_OBJ_INFO(0, element, DOM\\Element, 0) + ZEND_ARG_OBJ_INFO(0, element, Dom\\Element, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Element_insertAdjacentText arginfo_class_DOMElement_insertAdjacentText +#define arginfo_class_Dom_Element_insertAdjacentText arginfo_class_DOMElement_insertAdjacentText -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_setIdAttribute, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_setIdAttributeNS, 0, 3, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_setIdAttributeNS, 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, isId, _IS_BOOL, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Element_setIdAttributeNode, 0, 2, IS_VOID, 0) - ZEND_ARG_OBJ_INFO(0, attr, DOM\\Attr, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Element_setIdAttributeNode, 0, 2, IS_VOID, 0) + ZEND_ARG_OBJ_INFO(0, attr, Dom\\Attr, 0) ZEND_ARG_TYPE_INFO(0, isId, _IS_BOOL, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Element_remove arginfo_class_DOMChildNode_remove +#define arginfo_class_Dom_Element_remove arginfo_class_DOMChildNode_remove -#define arginfo_class_DOM_Element_before arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Element_before arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Element_after arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Element_after arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Element_replaceWith arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Element_replaceWith arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Element_append arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Element_append arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Element_prepend arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Element_prepend arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Element_replaceChildren arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Element_replaceChildren arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Attr_isId arginfo_class_DOM_Node_hasChildNodes +#define arginfo_class_Dom_Attr_isId arginfo_class_Dom_Node_hasChildNodes -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_CharacterData_substringData, 0, 2, IS_STRING, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_CharacterData_substringData, 0, 2, IS_STRING, 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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_CharacterData_appendData, 0, 1, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_CharacterData_appendData, 0, 1, IS_VOID, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_CharacterData_insertData, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_CharacterData_insertData, 0, 2, IS_VOID, 0) ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_CharacterData_deleteData, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_CharacterData_deleteData, 0, 2, IS_VOID, 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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_CharacterData_replaceData, 0, 3, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_CharacterData_replaceData, 0, 3, IS_VOID, 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) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_CharacterData_remove arginfo_class_DOMChildNode_remove +#define arginfo_class_Dom_CharacterData_remove arginfo_class_DOMChildNode_remove -#define arginfo_class_DOM_CharacterData_before arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_CharacterData_before arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_CharacterData_after arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_CharacterData_after arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_CharacterData_replaceWith arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_CharacterData_replaceWith arginfo_class_Dom_ParentNode_append -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Text_splitText, 0, 1, DOM\\Text, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Text_splitText, 0, 1, Dom\\Text, 0) ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_DocumentType_remove arginfo_class_DOMChildNode_remove +#define arginfo_class_Dom_DocumentType_remove arginfo_class_DOMChildNode_remove -#define arginfo_class_DOM_DocumentType_before arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_DocumentType_before arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_DocumentType_after arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_DocumentType_after arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_DocumentType_replaceWith arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_DocumentType_replaceWith arginfo_class_Dom_ParentNode_append -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_DocumentFragment_appendXML, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_DocumentFragment_appendXml, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_DocumentFragment_append arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_DocumentFragment_append arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_DocumentFragment_prepend arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_DocumentFragment_prepend arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_DocumentFragment_replaceChildren arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_DocumentFragment_replaceChildren arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Document_getElementsByTagName arginfo_class_DOM_Element_getElementsByTagName +#define arginfo_class_Dom_Document_getElementsByTagName arginfo_class_Dom_Element_getElementsByTagName -#define arginfo_class_DOM_Document_getElementsByTagNameNS arginfo_class_DOM_Element_getElementsByTagNameNS +#define arginfo_class_Dom_Document_getElementsByTagNameNS arginfo_class_Dom_Element_getElementsByTagNameNS -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createElement, 0, 1, DOM\\Element, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createElement, 0, 1, Dom\\Element, 0) ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createElementNS, 0, 2, DOM\\Element, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createElementNS, 0, 2, Dom\\Element, 0) ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createDocumentFragment, 0, 0, DOM\\DocumentFragment, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createDocumentFragment, 0, 0, Dom\\DocumentFragment, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createTextNode, 0, 1, DOM\\Text, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createTextNode, 0, 1, Dom\\Text, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createCDATASection, 0, 1, DOM\\CDATASection, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createCDATASection, 0, 1, Dom\\CDATASection, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createComment, 0, 1, DOM\\Comment, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createComment, 0, 1, Dom\\Comment, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createProcessingInstruction, 0, 2, DOM\\ProcessingInstruction, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createProcessingInstruction, 0, 2, Dom\\ProcessingInstruction, 0) ZEND_ARG_TYPE_INFO(0, target, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_importNode, 0, 1, DOM\\\116ode, 0) - ZEND_ARG_OBJ_INFO(0, node, DOM\\\116ode, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_importNode, 0, 1, Dom\\\116ode, 0) + ZEND_ARG_OBJ_INFO(0, node, Dom\\\116ode, 1) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deep, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() -#define arginfo_class_DOM_Document_adoptNode arginfo_class_DOM_Node_appendChild +#define arginfo_class_Dom_Document_adoptNode arginfo_class_Dom_Node_appendChild -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createAttribute, 0, 1, DOM\\Attr, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createAttribute, 0, 1, Dom\\Attr, 0) ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_createAttributeNS, 0, 2, DOM\\Attr, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_createAttributeNS, 0, 2, Dom\\Attr, 0) ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 1) ZEND_ARG_TYPE_INFO(0, qualifiedName, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_getElementById, 0, 1, DOM\\Element, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_getElementById, 0, 1, Dom\\Element, 1) ZEND_ARG_TYPE_INFO(0, elementId, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Document_registerNodeClass, 0, 2, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Document_registerNodeClass, 0, 2, IS_VOID, 0) ZEND_ARG_TYPE_INFO(0, baseClass, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, extendedClass, IS_STRING, 1) ZEND_END_ARG_INFO() #if defined(LIBXML_SCHEMAS_ENABLED) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Document_schemaValidate, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Document_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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Document_schemaValidateSource, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Document_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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Document_relaxNGValidate, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Document_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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_Document_relaxNGValidateSource, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_Document_relaxNgValidateSource, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0) ZEND_END_ARG_INFO() #endif -#define arginfo_class_DOM_Document_append arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Document_append arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Document_prepend arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Document_prepend arginfo_class_Dom_ParentNode_append -#define arginfo_class_DOM_Document_replaceChildren arginfo_class_DOM_ParentNode_append +#define arginfo_class_Dom_Document_replaceChildren arginfo_class_Dom_ParentNode_append -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_Document_importLegacyNode, 0, 1, DOM\\\116ode, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_Document_importLegacyNode, 0, 1, Dom\\\116ode, 0) ZEND_ARG_OBJ_INFO(0, node, DOMNode, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deep, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_HTMLDocument_createEmpty, 0, 0, DOM\\HTMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_HTMLDocument_createEmpty, 0, 0, Dom\\HTMLDocument, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 0, "\"UTF-8\"") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_HTMLDocument_createFromFile, 0, 1, DOM\\HTMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_HTMLDocument_createFromFile, 0, 1, Dom\\HTMLDocument, 0) ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, overrideEncoding, IS_STRING, 1, "null") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_HTMLDocument_createFromString, 0, 1, DOM\\HTMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_HTMLDocument_createFromString, 0, 1, Dom\\HTMLDocument, 0) ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, overrideEncoding, IS_STRING, 1, "null") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_DOM_HTMLDocument_saveXML, 0, 0, MAY_BE_STRING|MAY_BE_FALSE) - ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, DOM\\\116ode, 1, "null") +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Dom_HTMLDocument_saveXml, 0, 0, MAY_BE_STRING|MAY_BE_FALSE) + ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, Dom\\\116ode, 1, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_DOM_HTMLDocument_saveXMLFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Dom_HTMLDocument_saveXmlFile, 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() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_HTMLDocument_saveHTML, 0, 0, IS_STRING, 0) - ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, DOM\\\116ode, 1, "null") +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_HTMLDocument_saveHtml, 0, 0, IS_STRING, 0) + ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, node, Dom\\\116ode, 1, "null") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_DOM_HTMLDocument_saveHTMLFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Dom_HTMLDocument_saveHtmlFile, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_XMLDocument_createEmpty, 0, 0, DOM\\XMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_XMLDocument_createEmpty, 0, 0, Dom\\XMLDocument, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, version, IS_STRING, 0, "\"1.0\"") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 0, "\"UTF-8\"") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_XMLDocument_createFromFile, 0, 1, DOM\\XMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_XMLDocument_createFromFile, 0, 1, Dom\\XMLDocument, 0) ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, overrideEncoding, IS_STRING, 1, "null") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_XMLDocument_createFromString, 0, 1, DOM\\XMLDocument, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_XMLDocument_createFromString, 0, 1, Dom\\XMLDocument, 0) ZEND_ARG_TYPE_INFO(0, source, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, overrideEncoding, IS_STRING, 1, "null") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_XMLDocument_createEntityReference, 0, 1, DOM\\EntityReference, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_XMLDocument_createEntityReference, 0, 1, Dom\\EntityReference, 0) ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() -#define arginfo_class_DOM_XMLDocument_validate arginfo_class_DOM_Node_hasChildNodes +#define arginfo_class_Dom_XMLDocument_validate arginfo_class_Dom_Node_hasChildNodes -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_DOM_XMLDocument_xinclude, 0, 0, MAY_BE_LONG|MAY_BE_FALSE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Dom_XMLDocument_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() -#define arginfo_class_DOM_XMLDocument_saveXML arginfo_class_DOM_HTMLDocument_saveXML +#define arginfo_class_Dom_XMLDocument_saveXml arginfo_class_Dom_HTMLDocument_saveXml -#define arginfo_class_DOM_XMLDocument_saveXMLFile arginfo_class_DOM_HTMLDocument_saveXMLFile +#define arginfo_class_Dom_XMLDocument_saveXmlFile arginfo_class_Dom_HTMLDocument_saveXmlFile #if defined(LIBXML_XPATH_ENABLED) -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOM_XPath___construct, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, document, DOM\\Document, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Dom_XPath___construct, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, document, Dom\\Document, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, registerNodeNS, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() #endif #if defined(LIBXML_XPATH_ENABLED) -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_DOM_XPath_evaluate, 0, 1, DOM\\\116odeList, MAY_BE_NULL|MAY_BE_BOOL|MAY_BE_DOUBLE|MAY_BE_STRING) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Dom_XPath_evaluate, 0, 1, Dom\\\116odeList, MAY_BE_NULL|MAY_BE_BOOL|MAY_BE_DOUBLE|MAY_BE_STRING) ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) - ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, contextNode, DOM\\\116ode, 1, "null") + ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, contextNode, Dom\\\116ode, 1, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, registerNodeNS, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() #endif #if defined(LIBXML_XPATH_ENABLED) -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOM_XPath_query, 0, 1, DOM\\\116odeList, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_XPath_query, 0, 1, Dom\\\116odeList, 0) ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) - ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, contextNode, DOM\\\116ode, 1, "null") + ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, contextNode, Dom\\\116ode, 1, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, registerNodeNS, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() #endif #if defined(LIBXML_XPATH_ENABLED) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_XPath_registerNamespace, 0, 2, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_XPath_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_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOM_XPath_registerPhpFunctions, 0, 0, IS_VOID, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Dom_XPath_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 #if defined(LIBXML_XPATH_ENABLED) -#define arginfo_class_DOM_XPath_registerPhpFunctionNS arginfo_class_DOMXPath_registerPhpFunctionNS +#define arginfo_class_Dom_XPath_registerPhpFunctionNS arginfo_class_DOMXPath_registerPhpFunctionNS #endif #if defined(LIBXML_XPATH_ENABLED) -#define arginfo_class_DOM_XPath_quote arginfo_class_DOMXPath_quote +#define arginfo_class_Dom_XPath_quote arginfo_class_DOMXPath_quote #endif ZEND_FUNCTION(dom_import_simplexml); -ZEND_FUNCTION(DOM_import_simplexml); +ZEND_FUNCTION(Dom_import_simplexml); ZEND_METHOD(DOMCdataSection, __construct); ZEND_METHOD(DOMComment, __construct); ZEND_METHOD(DOMNode, appendChild); @@ -1245,62 +1245,62 @@ ZEND_METHOD(DOMXPath, registerPhpFunctionNS); #if defined(LIBXML_XPATH_ENABLED) ZEND_METHOD(DOMXPath, quote); #endif -ZEND_METHOD(DOM_Implementation, createDocumentType); -ZEND_METHOD(DOM_Implementation, createDocument); -ZEND_METHOD(DOM_Implementation, createHTMLDocument); -ZEND_METHOD(DOM_Node, __construct); -ZEND_METHOD(DOM_Node, isEqualNode); -ZEND_METHOD(DOM_Node, isSameNode); -ZEND_METHOD(DOM_Node, compareDocumentPosition); -ZEND_METHOD(DOM_Node, contains); -ZEND_METHOD(DOM_Node, lookupPrefix); -ZEND_METHOD(DOM_Node, isDefaultNamespace); -ZEND_METHOD(DOM_Node, insertBefore); -ZEND_METHOD(DOM_Node, appendChild); -ZEND_METHOD(DOM_Node, replaceChild); -ZEND_METHOD(DOM_Node, removeChild); -ZEND_METHOD(DOM_Node, getNodePath); -ZEND_METHOD(DOM_HTMLCollection, namedItem); -ZEND_METHOD(DOM_Element, removeAttribute); -ZEND_METHOD(DOM_Element, setAttributeNodeNS); -ZEND_METHOD(DOM_Element, removeAttributeNode); -ZEND_METHOD(DOM_Element, getElementsByTagName); -ZEND_METHOD(DOM_Element, getElementsByTagNameNS); -ZEND_METHOD(DOM_Element, insertAdjacentElement); -ZEND_METHOD(DOM_Element, setIdAttributeNode); -ZEND_METHOD(DOM_CharacterData, appendData); -ZEND_METHOD(DOM_CharacterData, insertData); -ZEND_METHOD(DOM_CharacterData, deleteData); -ZEND_METHOD(DOM_CharacterData, replaceData); -ZEND_METHOD(DOM_Document, createElement); -ZEND_METHOD(DOM_Document, createElementNS); -ZEND_METHOD(DOM_Document, createProcessingInstruction); -ZEND_METHOD(DOM_Document, importNode); -ZEND_METHOD(DOM_Document, adoptNode); -ZEND_METHOD(DOM_Document, registerNodeClass); -ZEND_METHOD(DOM_Document, importLegacyNode); -ZEND_METHOD(DOM_HTMLDocument, createEmpty); -ZEND_METHOD(DOM_HTMLDocument, createFromFile); -ZEND_METHOD(DOM_HTMLDocument, createFromString); -ZEND_METHOD(DOM_XMLDocument, saveXML); -ZEND_METHOD(DOM_HTMLDocument, saveHTML); -ZEND_METHOD(DOM_HTMLDocument, saveHTMLFile); -ZEND_METHOD(DOM_XMLDocument, createEmpty); -ZEND_METHOD(DOM_XMLDocument, createFromFile); -ZEND_METHOD(DOM_XMLDocument, createFromString); +ZEND_METHOD(Dom_Implementation, createDocumentType); +ZEND_METHOD(Dom_Implementation, createDocument); +ZEND_METHOD(Dom_Implementation, createHTMLDocument); +ZEND_METHOD(Dom_Node, __construct); +ZEND_METHOD(Dom_Node, isEqualNode); +ZEND_METHOD(Dom_Node, isSameNode); +ZEND_METHOD(Dom_Node, compareDocumentPosition); +ZEND_METHOD(Dom_Node, contains); +ZEND_METHOD(Dom_Node, lookupPrefix); +ZEND_METHOD(Dom_Node, isDefaultNamespace); +ZEND_METHOD(Dom_Node, insertBefore); +ZEND_METHOD(Dom_Node, appendChild); +ZEND_METHOD(Dom_Node, replaceChild); +ZEND_METHOD(Dom_Node, removeChild); +ZEND_METHOD(Dom_Node, getNodePath); +ZEND_METHOD(Dom_HTMLCollection, namedItem); +ZEND_METHOD(Dom_Element, removeAttribute); +ZEND_METHOD(Dom_Element, setAttributeNodeNS); +ZEND_METHOD(Dom_Element, removeAttributeNode); +ZEND_METHOD(Dom_Element, getElementsByTagName); +ZEND_METHOD(Dom_Element, getElementsByTagNameNS); +ZEND_METHOD(Dom_Element, insertAdjacentElement); +ZEND_METHOD(Dom_Element, setIdAttributeNode); +ZEND_METHOD(Dom_CharacterData, appendData); +ZEND_METHOD(Dom_CharacterData, insertData); +ZEND_METHOD(Dom_CharacterData, deleteData); +ZEND_METHOD(Dom_CharacterData, replaceData); +ZEND_METHOD(Dom_Document, createElement); +ZEND_METHOD(Dom_Document, createElementNS); +ZEND_METHOD(Dom_Document, createProcessingInstruction); +ZEND_METHOD(Dom_Document, importNode); +ZEND_METHOD(Dom_Document, adoptNode); +ZEND_METHOD(Dom_Document, registerNodeClass); +ZEND_METHOD(Dom_Document, importLegacyNode); +ZEND_METHOD(Dom_HTMLDocument, createEmpty); +ZEND_METHOD(Dom_HTMLDocument, createFromFile); +ZEND_METHOD(Dom_HTMLDocument, createFromString); +ZEND_METHOD(Dom_XMLDocument, saveXml); +ZEND_METHOD(Dom_HTMLDocument, saveHtml); +ZEND_METHOD(Dom_HTMLDocument, saveHtmlFile); +ZEND_METHOD(Dom_XMLDocument, createEmpty); +ZEND_METHOD(Dom_XMLDocument, createFromFile); +ZEND_METHOD(Dom_XMLDocument, createFromString); #if defined(LIBXML_XPATH_ENABLED) -ZEND_METHOD(DOM_XPath, __construct); +ZEND_METHOD(Dom_XPath, __construct); #endif #if defined(LIBXML_XPATH_ENABLED) -ZEND_METHOD(DOM_XPath, evaluate); +ZEND_METHOD(Dom_XPath, evaluate); #endif #if defined(LIBXML_XPATH_ENABLED) -ZEND_METHOD(DOM_XPath, query); +ZEND_METHOD(Dom_XPath, query); #endif static const zend_function_entry ext_functions[] = { ZEND_FE(dom_import_simplexml, arginfo_dom_import_simplexml) - ZEND_RAW_FENTRY(ZEND_NS_NAME("DOM", "import_simplexml"), zif_DOM_import_simplexml, arginfo_DOM_import_simplexml, 0, NULL, NULL) + ZEND_RAW_FENTRY(ZEND_NS_NAME("Dom", "import_simplexml"), zif_Dom_import_simplexml, arginfo_Dom_import_simplexml, 0, NULL, NULL) ZEND_FE_END }; @@ -1550,251 +1550,251 @@ static const zend_function_entry class_DOMXPath_methods[] = { }; #endif -static const zend_function_entry class_DOM_ParentNode_methods[] = { - ZEND_RAW_FENTRY("append", NULL, arginfo_class_DOM_ParentNode_append, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) - ZEND_RAW_FENTRY("prepend", NULL, arginfo_class_DOM_ParentNode_prepend, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) - ZEND_RAW_FENTRY("replaceChildren", NULL, arginfo_class_DOM_ParentNode_replaceChildren, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) +static const zend_function_entry class_Dom_ParentNode_methods[] = { + ZEND_RAW_FENTRY("append", NULL, arginfo_class_Dom_ParentNode_append, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) + ZEND_RAW_FENTRY("prepend", NULL, arginfo_class_Dom_ParentNode_prepend, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) + ZEND_RAW_FENTRY("replaceChildren", NULL, arginfo_class_Dom_ParentNode_replaceChildren, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_ChildNode_methods[] = { - ZEND_RAW_FENTRY("remove", NULL, arginfo_class_DOM_ChildNode_remove, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) - ZEND_RAW_FENTRY("before", NULL, arginfo_class_DOM_ChildNode_before, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) - ZEND_RAW_FENTRY("after", NULL, arginfo_class_DOM_ChildNode_after, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) - ZEND_RAW_FENTRY("replaceWith", NULL, arginfo_class_DOM_ChildNode_replaceWith, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) +static const zend_function_entry class_Dom_ChildNode_methods[] = { + ZEND_RAW_FENTRY("remove", NULL, arginfo_class_Dom_ChildNode_remove, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) + ZEND_RAW_FENTRY("before", NULL, arginfo_class_Dom_ChildNode_before, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) + ZEND_RAW_FENTRY("after", NULL, arginfo_class_Dom_ChildNode_after, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) + ZEND_RAW_FENTRY("replaceWith", NULL, arginfo_class_Dom_ChildNode_replaceWith, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_Implementation_methods[] = { - ZEND_ME(DOM_Implementation, createDocumentType, arginfo_class_DOM_Implementation_createDocumentType, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Implementation, createDocument, arginfo_class_DOM_Implementation_createDocument, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Implementation, createHTMLDocument, arginfo_class_DOM_Implementation_createHTMLDocument, ZEND_ACC_PUBLIC) +static const zend_function_entry class_Dom_Implementation_methods[] = { + ZEND_ME(Dom_Implementation, createDocumentType, arginfo_class_Dom_Implementation_createDocumentType, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Implementation, createDocument, arginfo_class_Dom_Implementation_createDocument, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Implementation, createHTMLDocument, arginfo_class_Dom_Implementation_createHTMLDocument, ZEND_ACC_PUBLIC) ZEND_FE_END }; -static const zend_function_entry class_DOM_Node_methods[] = { - ZEND_ME(DOM_Node, __construct, arginfo_class_DOM_Node___construct, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL) - ZEND_RAW_FENTRY("getRootNode", zim_DOMNode_getRootNode, arginfo_class_DOM_Node_getRootNode, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("hasChildNodes", zim_DOMNode_hasChildNodes, arginfo_class_DOM_Node_hasChildNodes, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("normalize", zim_DOMNode_normalize, arginfo_class_DOM_Node_normalize, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("cloneNode", zim_DOMNode_cloneNode, arginfo_class_DOM_Node_cloneNode, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Node, isEqualNode, arginfo_class_DOM_Node_isEqualNode, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, isSameNode, arginfo_class_DOM_Node_isSameNode, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, compareDocumentPosition, arginfo_class_DOM_Node_compareDocumentPosition, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, contains, arginfo_class_DOM_Node_contains, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, lookupPrefix, arginfo_class_DOM_Node_lookupPrefix, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("lookupNamespaceURI", zim_DOMNode_lookupNamespaceURI, arginfo_class_DOM_Node_lookupNamespaceURI, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Node, isDefaultNamespace, arginfo_class_DOM_Node_isDefaultNamespace, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, insertBefore, arginfo_class_DOM_Node_insertBefore, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, appendChild, arginfo_class_DOM_Node_appendChild, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, replaceChild, arginfo_class_DOM_Node_replaceChild, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Node, removeChild, arginfo_class_DOM_Node_removeChild, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("getLineNo", zim_DOMNode_getLineNo, arginfo_class_DOM_Node_getLineNo, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Node, getNodePath, arginfo_class_DOM_Node_getNodePath, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("C14N", zim_DOMNode_C14N, arginfo_class_DOM_Node_C14N, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("C14NFile", zim_DOMNode_C14NFile, arginfo_class_DOM_Node_C14NFile, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("__sleep", zim_DOMNode___sleep, arginfo_class_DOM_Node___sleep, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("__wakeup", zim_DOMNode___wakeup, arginfo_class_DOM_Node___wakeup, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_Node_methods[] = { + ZEND_ME(Dom_Node, __construct, arginfo_class_Dom_Node___construct, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL) + ZEND_RAW_FENTRY("getRootNode", zim_DOMNode_getRootNode, arginfo_class_Dom_Node_getRootNode, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("hasChildNodes", zim_DOMNode_hasChildNodes, arginfo_class_Dom_Node_hasChildNodes, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("normalize", zim_DOMNode_normalize, arginfo_class_Dom_Node_normalize, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("cloneNode", zim_DOMNode_cloneNode, arginfo_class_Dom_Node_cloneNode, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Node, isEqualNode, arginfo_class_Dom_Node_isEqualNode, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, isSameNode, arginfo_class_Dom_Node_isSameNode, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, compareDocumentPosition, arginfo_class_Dom_Node_compareDocumentPosition, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, contains, arginfo_class_Dom_Node_contains, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, lookupPrefix, arginfo_class_Dom_Node_lookupPrefix, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("lookupNamespaceURI", zim_DOMNode_lookupNamespaceURI, arginfo_class_Dom_Node_lookupNamespaceURI, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Node, isDefaultNamespace, arginfo_class_Dom_Node_isDefaultNamespace, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, insertBefore, arginfo_class_Dom_Node_insertBefore, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, appendChild, arginfo_class_Dom_Node_appendChild, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, replaceChild, arginfo_class_Dom_Node_replaceChild, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Node, removeChild, arginfo_class_Dom_Node_removeChild, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("getLineNo", zim_DOMNode_getLineNo, arginfo_class_Dom_Node_getLineNo, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Node, getNodePath, arginfo_class_Dom_Node_getNodePath, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("C14N", zim_DOMNode_C14N, arginfo_class_Dom_Node_C14N, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("C14NFile", zim_DOMNode_C14NFile, arginfo_class_Dom_Node_C14NFile, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("__sleep", zim_DOMNode___sleep, arginfo_class_Dom_Node___sleep, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("__wakeup", zim_DOMNode___wakeup, arginfo_class_Dom_Node___wakeup, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_NodeList_methods[] = { - ZEND_RAW_FENTRY("count", zim_DOMNodeList_count, arginfo_class_DOM_NodeList_count, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getIterator", zim_DOMNodeList_getIterator, arginfo_class_DOM_NodeList_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("item", zim_DOMNodeList_item, arginfo_class_DOM_NodeList_item, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_NodeList_methods[] = { + ZEND_RAW_FENTRY("count", zim_DOMNodeList_count, arginfo_class_Dom_NodeList_count, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getIterator", zim_DOMNodeList_getIterator, arginfo_class_Dom_NodeList_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("item", zim_DOMNodeList_item, arginfo_class_Dom_NodeList_item, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_NamedNodeMap_methods[] = { - ZEND_RAW_FENTRY("item", zim_DOMNamedNodeMap_item, arginfo_class_DOM_NamedNodeMap_item, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getNamedItem", zim_DOMNamedNodeMap_getNamedItem, arginfo_class_DOM_NamedNodeMap_getNamedItem, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getNamedItemNS", zim_DOMNamedNodeMap_getNamedItemNS, arginfo_class_DOM_NamedNodeMap_getNamedItemNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("count", zim_DOMNamedNodeMap_count, arginfo_class_DOM_NamedNodeMap_count, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getIterator", zim_DOMNamedNodeMap_getIterator, arginfo_class_DOM_NamedNodeMap_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_NamedNodeMap_methods[] = { + ZEND_RAW_FENTRY("item", zim_DOMNamedNodeMap_item, arginfo_class_Dom_NamedNodeMap_item, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getNamedItem", zim_DOMNamedNodeMap_getNamedItem, arginfo_class_Dom_NamedNodeMap_getNamedItem, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getNamedItemNS", zim_DOMNamedNodeMap_getNamedItemNS, arginfo_class_Dom_NamedNodeMap_getNamedItemNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("count", zim_DOMNamedNodeMap_count, arginfo_class_Dom_NamedNodeMap_count, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getIterator", zim_DOMNamedNodeMap_getIterator, arginfo_class_Dom_NamedNodeMap_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_DTDNamedNodeMap_methods[] = { - ZEND_RAW_FENTRY("item", zim_DOMNamedNodeMap_item, arginfo_class_DOM_DTDNamedNodeMap_item, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getNamedItem", zim_DOMNamedNodeMap_getNamedItem, arginfo_class_DOM_DTDNamedNodeMap_getNamedItem, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getNamedItemNS", zim_DOMNamedNodeMap_getNamedItemNS, arginfo_class_DOM_DTDNamedNodeMap_getNamedItemNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("count", zim_DOMNamedNodeMap_count, arginfo_class_DOM_DTDNamedNodeMap_count, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getIterator", zim_DOMNamedNodeMap_getIterator, arginfo_class_DOM_DTDNamedNodeMap_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_DtdNamedNodeMap_methods[] = { + ZEND_RAW_FENTRY("item", zim_DOMNamedNodeMap_item, arginfo_class_Dom_DtdNamedNodeMap_item, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getNamedItem", zim_DOMNamedNodeMap_getNamedItem, arginfo_class_Dom_DtdNamedNodeMap_getNamedItem, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getNamedItemNS", zim_DOMNamedNodeMap_getNamedItemNS, arginfo_class_Dom_DtdNamedNodeMap_getNamedItemNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("count", zim_DOMNamedNodeMap_count, arginfo_class_Dom_DtdNamedNodeMap_count, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getIterator", zim_DOMNamedNodeMap_getIterator, arginfo_class_Dom_DtdNamedNodeMap_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_HTMLCollection_methods[] = { - ZEND_RAW_FENTRY("item", zim_DOMNodeList_item, arginfo_class_DOM_HTMLCollection_item, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_HTMLCollection, namedItem, arginfo_class_DOM_HTMLCollection_namedItem, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("count", zim_DOMNodeList_count, arginfo_class_DOM_HTMLCollection_count, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getIterator", zim_DOMNodeList_getIterator, arginfo_class_DOM_HTMLCollection_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_HTMLCollection_methods[] = { + ZEND_RAW_FENTRY("item", zim_DOMNodeList_item, arginfo_class_Dom_HTMLCollection_item, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_HTMLCollection, namedItem, arginfo_class_Dom_HTMLCollection_namedItem, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("count", zim_DOMNodeList_count, arginfo_class_Dom_HTMLCollection_count, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getIterator", zim_DOMNodeList_getIterator, arginfo_class_Dom_HTMLCollection_getIterator, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_Element_methods[] = { - ZEND_RAW_FENTRY("hasAttributes", zim_DOMNode_hasAttributes, arginfo_class_DOM_Element_hasAttributes, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getAttributeNames", zim_DOMElement_getAttributeNames, arginfo_class_DOM_Element_getAttributeNames, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getAttribute", zim_DOMElement_getAttribute, arginfo_class_DOM_Element_getAttribute, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getAttributeNS", zim_DOMElement_getAttributeNS, arginfo_class_DOM_Element_getAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("setAttribute", zim_DOMElement_setAttribute, arginfo_class_DOM_Element_setAttribute, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("setAttributeNS", zim_DOMElement_setAttributeNS, arginfo_class_DOM_Element_setAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Element, removeAttribute, arginfo_class_DOM_Element_removeAttribute, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("removeAttributeNS", zim_DOMElement_removeAttributeNS, arginfo_class_DOM_Element_removeAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("toggleAttribute", zim_DOMElement_toggleAttribute, arginfo_class_DOM_Element_toggleAttribute, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("hasAttribute", zim_DOMElement_hasAttribute, arginfo_class_DOM_Element_hasAttribute, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("hasAttributeNS", zim_DOMElement_hasAttributeNS, arginfo_class_DOM_Element_hasAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getAttributeNode", zim_DOMElement_getAttributeNode, arginfo_class_DOM_Element_getAttributeNode, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getAttributeNodeNS", zim_DOMElement_getAttributeNodeNS, arginfo_class_DOM_Element_getAttributeNodeNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("setAttributeNode", zim_DOM_Element_setAttributeNodeNS, arginfo_class_DOM_Element_setAttributeNode, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Element, setAttributeNodeNS, arginfo_class_DOM_Element_setAttributeNodeNS, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Element, removeAttributeNode, arginfo_class_DOM_Element_removeAttributeNode, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Element, getElementsByTagName, arginfo_class_DOM_Element_getElementsByTagName, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Element, getElementsByTagNameNS, arginfo_class_DOM_Element_getElementsByTagNameNS, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Element, insertAdjacentElement, arginfo_class_DOM_Element_insertAdjacentElement, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("insertAdjacentText", zim_DOMElement_insertAdjacentText, arginfo_class_DOM_Element_insertAdjacentText, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("setIdAttribute", zim_DOMElement_setIdAttribute, arginfo_class_DOM_Element_setIdAttribute, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("setIdAttributeNS", zim_DOMElement_setIdAttributeNS, arginfo_class_DOM_Element_setIdAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Element, setIdAttributeNode, arginfo_class_DOM_Element_setIdAttributeNode, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("remove", zim_DOMElement_remove, arginfo_class_DOM_Element_remove, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("before", zim_DOMElement_before, arginfo_class_DOM_Element_before, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("after", zim_DOMElement_after, arginfo_class_DOM_Element_after, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("replaceWith", zim_DOMElement_replaceWith, arginfo_class_DOM_Element_replaceWith, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("append", zim_DOMElement_append, arginfo_class_DOM_Element_append, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("prepend", zim_DOMElement_prepend, arginfo_class_DOM_Element_prepend, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("replaceChildren", zim_DOMElement_replaceChildren, arginfo_class_DOM_Element_replaceChildren, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_Element_methods[] = { + ZEND_RAW_FENTRY("hasAttributes", zim_DOMNode_hasAttributes, arginfo_class_Dom_Element_hasAttributes, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getAttributeNames", zim_DOMElement_getAttributeNames, arginfo_class_Dom_Element_getAttributeNames, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getAttribute", zim_DOMElement_getAttribute, arginfo_class_Dom_Element_getAttribute, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getAttributeNS", zim_DOMElement_getAttributeNS, arginfo_class_Dom_Element_getAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("setAttribute", zim_DOMElement_setAttribute, arginfo_class_Dom_Element_setAttribute, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("setAttributeNS", zim_DOMElement_setAttributeNS, arginfo_class_Dom_Element_setAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Element, removeAttribute, arginfo_class_Dom_Element_removeAttribute, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("removeAttributeNS", zim_DOMElement_removeAttributeNS, arginfo_class_Dom_Element_removeAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("toggleAttribute", zim_DOMElement_toggleAttribute, arginfo_class_Dom_Element_toggleAttribute, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("hasAttribute", zim_DOMElement_hasAttribute, arginfo_class_Dom_Element_hasAttribute, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("hasAttributeNS", zim_DOMElement_hasAttributeNS, arginfo_class_Dom_Element_hasAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getAttributeNode", zim_DOMElement_getAttributeNode, arginfo_class_Dom_Element_getAttributeNode, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getAttributeNodeNS", zim_DOMElement_getAttributeNodeNS, arginfo_class_Dom_Element_getAttributeNodeNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("setAttributeNode", zim_Dom_Element_setAttributeNodeNS, arginfo_class_Dom_Element_setAttributeNode, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Element, setAttributeNodeNS, arginfo_class_Dom_Element_setAttributeNodeNS, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Element, removeAttributeNode, arginfo_class_Dom_Element_removeAttributeNode, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Element, getElementsByTagName, arginfo_class_Dom_Element_getElementsByTagName, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Element, getElementsByTagNameNS, arginfo_class_Dom_Element_getElementsByTagNameNS, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Element, insertAdjacentElement, arginfo_class_Dom_Element_insertAdjacentElement, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("insertAdjacentText", zim_DOMElement_insertAdjacentText, arginfo_class_Dom_Element_insertAdjacentText, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("setIdAttribute", zim_DOMElement_setIdAttribute, arginfo_class_Dom_Element_setIdAttribute, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("setIdAttributeNS", zim_DOMElement_setIdAttributeNS, arginfo_class_Dom_Element_setIdAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Element, setIdAttributeNode, arginfo_class_Dom_Element_setIdAttributeNode, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("remove", zim_DOMElement_remove, arginfo_class_Dom_Element_remove, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("before", zim_DOMElement_before, arginfo_class_Dom_Element_before, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("after", zim_DOMElement_after, arginfo_class_Dom_Element_after, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("replaceWith", zim_DOMElement_replaceWith, arginfo_class_Dom_Element_replaceWith, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("append", zim_DOMElement_append, arginfo_class_Dom_Element_append, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("prepend", zim_DOMElement_prepend, arginfo_class_Dom_Element_prepend, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("replaceChildren", zim_DOMElement_replaceChildren, arginfo_class_Dom_Element_replaceChildren, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_Attr_methods[] = { - ZEND_RAW_FENTRY("isId", zim_DOMAttr_isId, arginfo_class_DOM_Attr_isId, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_Attr_methods[] = { + ZEND_RAW_FENTRY("isId", zim_DOMAttr_isId, arginfo_class_Dom_Attr_isId, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_CharacterData_methods[] = { - ZEND_RAW_FENTRY("substringData", zim_DOMCharacterData_substringData, arginfo_class_DOM_CharacterData_substringData, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_CharacterData, appendData, arginfo_class_DOM_CharacterData_appendData, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_CharacterData, insertData, arginfo_class_DOM_CharacterData_insertData, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_CharacterData, deleteData, arginfo_class_DOM_CharacterData_deleteData, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_CharacterData, replaceData, arginfo_class_DOM_CharacterData_replaceData, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("remove", zim_DOMElement_remove, arginfo_class_DOM_CharacterData_remove, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("before", zim_DOMElement_before, arginfo_class_DOM_CharacterData_before, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("after", zim_DOMElement_after, arginfo_class_DOM_CharacterData_after, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("replaceWith", zim_DOMElement_replaceWith, arginfo_class_DOM_CharacterData_replaceWith, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_CharacterData_methods[] = { + ZEND_RAW_FENTRY("substringData", zim_DOMCharacterData_substringData, arginfo_class_Dom_CharacterData_substringData, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_CharacterData, appendData, arginfo_class_Dom_CharacterData_appendData, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_CharacterData, insertData, arginfo_class_Dom_CharacterData_insertData, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_CharacterData, deleteData, arginfo_class_Dom_CharacterData_deleteData, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_CharacterData, replaceData, arginfo_class_Dom_CharacterData_replaceData, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("remove", zim_DOMElement_remove, arginfo_class_Dom_CharacterData_remove, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("before", zim_DOMElement_before, arginfo_class_Dom_CharacterData_before, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("after", zim_DOMElement_after, arginfo_class_Dom_CharacterData_after, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("replaceWith", zim_DOMElement_replaceWith, arginfo_class_Dom_CharacterData_replaceWith, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_Text_methods[] = { - ZEND_RAW_FENTRY("splitText", zim_DOMText_splitText, arginfo_class_DOM_Text_splitText, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_Text_methods[] = { + ZEND_RAW_FENTRY("splitText", zim_DOMText_splitText, arginfo_class_Dom_Text_splitText, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_CDATASection_methods[] = { +static const zend_function_entry class_Dom_CDATASection_methods[] = { ZEND_FE_END }; -static const zend_function_entry class_DOM_ProcessingInstruction_methods[] = { +static const zend_function_entry class_Dom_ProcessingInstruction_methods[] = { ZEND_FE_END }; -static const zend_function_entry class_DOM_Comment_methods[] = { +static const zend_function_entry class_Dom_Comment_methods[] = { ZEND_FE_END }; -static const zend_function_entry class_DOM_DocumentType_methods[] = { - ZEND_RAW_FENTRY("remove", zim_DOMElement_remove, arginfo_class_DOM_DocumentType_remove, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("before", zim_DOMElement_before, arginfo_class_DOM_DocumentType_before, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("after", zim_DOMElement_after, arginfo_class_DOM_DocumentType_after, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("replaceWith", zim_DOMElement_replaceWith, arginfo_class_DOM_DocumentType_replaceWith, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_DocumentType_methods[] = { + ZEND_RAW_FENTRY("remove", zim_DOMElement_remove, arginfo_class_Dom_DocumentType_remove, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("before", zim_DOMElement_before, arginfo_class_Dom_DocumentType_before, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("after", zim_DOMElement_after, arginfo_class_Dom_DocumentType_after, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("replaceWith", zim_DOMElement_replaceWith, arginfo_class_Dom_DocumentType_replaceWith, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_DocumentFragment_methods[] = { - ZEND_RAW_FENTRY("appendXML", zim_DOMDocumentFragment_appendXML, arginfo_class_DOM_DocumentFragment_appendXML, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("append", zim_DOMElement_append, arginfo_class_DOM_DocumentFragment_append, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("prepend", zim_DOMElement_prepend, arginfo_class_DOM_DocumentFragment_prepend, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("replaceChildren", zim_DOMElement_replaceChildren, arginfo_class_DOM_DocumentFragment_replaceChildren, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_DocumentFragment_methods[] = { + ZEND_RAW_FENTRY("appendXml", zim_DOMDocumentFragment_appendXML, arginfo_class_Dom_DocumentFragment_appendXml, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("append", zim_DOMElement_append, arginfo_class_Dom_DocumentFragment_append, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("prepend", zim_DOMElement_prepend, arginfo_class_Dom_DocumentFragment_prepend, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("replaceChildren", zim_DOMElement_replaceChildren, arginfo_class_Dom_DocumentFragment_replaceChildren, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; -static const zend_function_entry class_DOM_Entity_methods[] = { +static const zend_function_entry class_Dom_Entity_methods[] = { ZEND_FE_END }; -static const zend_function_entry class_DOM_EntityReference_methods[] = { +static const zend_function_entry class_Dom_EntityReference_methods[] = { ZEND_FE_END }; -static const zend_function_entry class_DOM_Notation_methods[] = { +static const zend_function_entry class_Dom_Notation_methods[] = { ZEND_FE_END }; -static const zend_function_entry class_DOM_Document_methods[] = { - ZEND_RAW_FENTRY("getElementsByTagName", zim_DOM_Element_getElementsByTagName, arginfo_class_DOM_Document_getElementsByTagName, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getElementsByTagNameNS", zim_DOM_Element_getElementsByTagNameNS, arginfo_class_DOM_Document_getElementsByTagNameNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Document, createElement, arginfo_class_DOM_Document_createElement, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Document, createElementNS, arginfo_class_DOM_Document_createElementNS, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("createDocumentFragment", zim_DOMDocument_createDocumentFragment, arginfo_class_DOM_Document_createDocumentFragment, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("createTextNode", zim_DOMDocument_createTextNode, arginfo_class_DOM_Document_createTextNode, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("createCDATASection", zim_DOMDocument_createCDATASection, arginfo_class_DOM_Document_createCDATASection, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("createComment", zim_DOMDocument_createComment, arginfo_class_DOM_Document_createComment, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Document, createProcessingInstruction, arginfo_class_DOM_Document_createProcessingInstruction, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Document, importNode, arginfo_class_DOM_Document_importNode, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_Document, adoptNode, arginfo_class_DOM_Document_adoptNode, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("createAttribute", zim_DOMDocument_createAttribute, arginfo_class_DOM_Document_createAttribute, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("createAttributeNS", zim_DOMDocument_createAttributeNS, arginfo_class_DOM_Document_createAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("getElementById", zim_DOMDocument_getElementById, arginfo_class_DOM_Document_getElementById, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Document, registerNodeClass, arginfo_class_DOM_Document_registerNodeClass, ZEND_ACC_PUBLIC) +static const zend_function_entry class_Dom_Document_methods[] = { + ZEND_RAW_FENTRY("getElementsByTagName", zim_Dom_Element_getElementsByTagName, arginfo_class_Dom_Document_getElementsByTagName, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getElementsByTagNameNS", zim_Dom_Element_getElementsByTagNameNS, arginfo_class_Dom_Document_getElementsByTagNameNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Document, createElement, arginfo_class_Dom_Document_createElement, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Document, createElementNS, arginfo_class_Dom_Document_createElementNS, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("createDocumentFragment", zim_DOMDocument_createDocumentFragment, arginfo_class_Dom_Document_createDocumentFragment, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("createTextNode", zim_DOMDocument_createTextNode, arginfo_class_Dom_Document_createTextNode, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("createCDATASection", zim_DOMDocument_createCDATASection, arginfo_class_Dom_Document_createCDATASection, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("createComment", zim_DOMDocument_createComment, arginfo_class_Dom_Document_createComment, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Document, createProcessingInstruction, arginfo_class_Dom_Document_createProcessingInstruction, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Document, importNode, arginfo_class_Dom_Document_importNode, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_Document, adoptNode, arginfo_class_Dom_Document_adoptNode, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("createAttribute", zim_DOMDocument_createAttribute, arginfo_class_Dom_Document_createAttribute, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("createAttributeNS", zim_DOMDocument_createAttributeNS, arginfo_class_Dom_Document_createAttributeNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("getElementById", zim_DOMDocument_getElementById, arginfo_class_Dom_Document_getElementById, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Document, registerNodeClass, arginfo_class_Dom_Document_registerNodeClass, ZEND_ACC_PUBLIC) #if defined(LIBXML_SCHEMAS_ENABLED) - ZEND_RAW_FENTRY("schemaValidate", zim_DOMDocument_schemaValidate, arginfo_class_DOM_Document_schemaValidate, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("schemaValidate", zim_DOMDocument_schemaValidate, arginfo_class_Dom_Document_schemaValidate, ZEND_ACC_PUBLIC, NULL, NULL) #endif #if defined(LIBXML_SCHEMAS_ENABLED) - ZEND_RAW_FENTRY("schemaValidateSource", zim_DOMDocument_schemaValidateSource, arginfo_class_DOM_Document_schemaValidateSource, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("schemaValidateSource", zim_DOMDocument_schemaValidateSource, arginfo_class_Dom_Document_schemaValidateSource, ZEND_ACC_PUBLIC, NULL, NULL) #endif #if defined(LIBXML_SCHEMAS_ENABLED) - ZEND_RAW_FENTRY("relaxNGValidate", zim_DOMDocument_relaxNGValidate, arginfo_class_DOM_Document_relaxNGValidate, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("relaxNgValidate", zim_DOMDocument_relaxNGValidate, arginfo_class_Dom_Document_relaxNgValidate, ZEND_ACC_PUBLIC, NULL, NULL) #endif #if defined(LIBXML_SCHEMAS_ENABLED) - ZEND_RAW_FENTRY("relaxNGValidateSource", zim_DOMDocument_relaxNGValidateSource, arginfo_class_DOM_Document_relaxNGValidateSource, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("relaxNgValidateSource", zim_DOMDocument_relaxNGValidateSource, arginfo_class_Dom_Document_relaxNgValidateSource, ZEND_ACC_PUBLIC, NULL, NULL) #endif - ZEND_RAW_FENTRY("append", zim_DOMElement_append, arginfo_class_DOM_Document_append, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("prepend", zim_DOMElement_prepend, arginfo_class_DOM_Document_prepend, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("replaceChildren", zim_DOMDocument_replaceChildren, arginfo_class_DOM_Document_replaceChildren, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_Document, importLegacyNode, arginfo_class_DOM_Document_importLegacyNode, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("append", zim_DOMElement_append, arginfo_class_Dom_Document_append, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("prepend", zim_DOMElement_prepend, arginfo_class_Dom_Document_prepend, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("replaceChildren", zim_DOMDocument_replaceChildren, arginfo_class_Dom_Document_replaceChildren, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_Document, importLegacyNode, arginfo_class_Dom_Document_importLegacyNode, ZEND_ACC_PUBLIC) ZEND_FE_END }; -static const zend_function_entry class_DOM_HTMLDocument_methods[] = { - ZEND_ME(DOM_HTMLDocument, createEmpty, arginfo_class_DOM_HTMLDocument_createEmpty, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(DOM_HTMLDocument, createFromFile, arginfo_class_DOM_HTMLDocument_createFromFile, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(DOM_HTMLDocument, createFromString, arginfo_class_DOM_HTMLDocument_createFromString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_RAW_FENTRY("saveXML", zim_DOM_XMLDocument_saveXML, arginfo_class_DOM_HTMLDocument_saveXML, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("saveXMLFile", zim_DOMDocument_save, arginfo_class_DOM_HTMLDocument_saveXMLFile, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_HTMLDocument, saveHTML, arginfo_class_DOM_HTMLDocument_saveHTML, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_HTMLDocument, saveHTMLFile, arginfo_class_DOM_HTMLDocument_saveHTMLFile, ZEND_ACC_PUBLIC) +static const zend_function_entry class_Dom_HTMLDocument_methods[] = { + ZEND_ME(Dom_HTMLDocument, createEmpty, arginfo_class_Dom_HTMLDocument_createEmpty, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + ZEND_ME(Dom_HTMLDocument, createFromFile, arginfo_class_Dom_HTMLDocument_createFromFile, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + ZEND_ME(Dom_HTMLDocument, createFromString, arginfo_class_Dom_HTMLDocument_createFromString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + ZEND_RAW_FENTRY("saveXml", zim_Dom_XMLDocument_saveXml, arginfo_class_Dom_HTMLDocument_saveXml, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("saveXmlFile", zim_DOMDocument_save, arginfo_class_Dom_HTMLDocument_saveXmlFile, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_HTMLDocument, saveHtml, arginfo_class_Dom_HTMLDocument_saveHtml, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_HTMLDocument, saveHtmlFile, arginfo_class_Dom_HTMLDocument_saveHtmlFile, ZEND_ACC_PUBLIC) ZEND_FE_END }; -static const zend_function_entry class_DOM_XMLDocument_methods[] = { - ZEND_ME(DOM_XMLDocument, createEmpty, arginfo_class_DOM_XMLDocument_createEmpty, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(DOM_XMLDocument, createFromFile, arginfo_class_DOM_XMLDocument_createFromFile, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_ME(DOM_XMLDocument, createFromString, arginfo_class_DOM_XMLDocument_createFromString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - ZEND_RAW_FENTRY("createEntityReference", zim_DOMDocument_createEntityReference, arginfo_class_DOM_XMLDocument_createEntityReference, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("validate", zim_DOMDocument_validate, arginfo_class_DOM_XMLDocument_validate, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("xinclude", zim_DOMDocument_xinclude, arginfo_class_DOM_XMLDocument_xinclude, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_ME(DOM_XMLDocument, saveXML, arginfo_class_DOM_XMLDocument_saveXML, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("saveXMLFile", zim_DOMDocument_save, arginfo_class_DOM_XMLDocument_saveXMLFile, ZEND_ACC_PUBLIC, NULL, NULL) +static const zend_function_entry class_Dom_XMLDocument_methods[] = { + ZEND_ME(Dom_XMLDocument, createEmpty, arginfo_class_Dom_XMLDocument_createEmpty, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + ZEND_ME(Dom_XMLDocument, createFromFile, arginfo_class_Dom_XMLDocument_createFromFile, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + ZEND_ME(Dom_XMLDocument, createFromString, arginfo_class_Dom_XMLDocument_createFromString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) + ZEND_RAW_FENTRY("createEntityReference", zim_DOMDocument_createEntityReference, arginfo_class_Dom_XMLDocument_createEntityReference, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("validate", zim_DOMDocument_validate, arginfo_class_Dom_XMLDocument_validate, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("xinclude", zim_DOMDocument_xinclude, arginfo_class_Dom_XMLDocument_xinclude, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_ME(Dom_XMLDocument, saveXml, arginfo_class_Dom_XMLDocument_saveXml, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("saveXmlFile", zim_DOMDocument_save, arginfo_class_Dom_XMLDocument_saveXmlFile, ZEND_ACC_PUBLIC, NULL, NULL) ZEND_FE_END }; #if defined(LIBXML_XPATH_ENABLED) -static const zend_function_entry class_DOM_XPath_methods[] = { - ZEND_ME(DOM_XPath, __construct, arginfo_class_DOM_XPath___construct, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_XPath, evaluate, arginfo_class_DOM_XPath_evaluate, ZEND_ACC_PUBLIC) - ZEND_ME(DOM_XPath, query, arginfo_class_DOM_XPath_query, ZEND_ACC_PUBLIC) - ZEND_RAW_FENTRY("registerNamespace", zim_DOMXPath_registerNamespace, arginfo_class_DOM_XPath_registerNamespace, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("registerPhpFunctions", zim_DOMXPath_registerPhpFunctions, arginfo_class_DOM_XPath_registerPhpFunctions, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("registerPhpFunctionNS", zim_DOMXPath_registerPhpFunctionNS, arginfo_class_DOM_XPath_registerPhpFunctionNS, ZEND_ACC_PUBLIC, NULL, NULL) - ZEND_RAW_FENTRY("quote", zim_DOMXPath_quote, arginfo_class_DOM_XPath_quote, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL) +static const zend_function_entry class_Dom_XPath_methods[] = { + ZEND_ME(Dom_XPath, __construct, arginfo_class_Dom_XPath___construct, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_XPath, evaluate, arginfo_class_Dom_XPath_evaluate, ZEND_ACC_PUBLIC) + ZEND_ME(Dom_XPath, query, arginfo_class_Dom_XPath_query, ZEND_ACC_PUBLIC) + ZEND_RAW_FENTRY("registerNamespace", zim_DOMXPath_registerNamespace, arginfo_class_Dom_XPath_registerNamespace, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("registerPhpFunctions", zim_DOMXPath_registerPhpFunctions, arginfo_class_Dom_XPath_registerPhpFunctions, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("registerPhpFunctionNS", zim_DOMXPath_registerPhpFunctionNS, arginfo_class_Dom_XPath_registerPhpFunctionNS, ZEND_ACC_PUBLIC, NULL, NULL) + ZEND_RAW_FENTRY("quote", zim_DOMXPath_quote, arginfo_class_Dom_XPath_quote, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC, NULL, NULL) ZEND_FE_END }; #endif @@ -1849,22 +1849,22 @@ static void register_php_dom_symbols(int module_number) REGISTER_LONG_CONSTANT("DOM_NAMESPACE_ERR", NAMESPACE_ERR, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("DOM_INVALID_ACCESS_ERR", INVALID_ACCESS_ERR, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("DOM_VALIDATION_ERR", VALIDATION_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\INDEX_SIZE_ERR", INDEX_SIZE_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\STRING_SIZE_ERR", DOMSTRING_SIZE_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\HIERARCHY_REQUEST_ERR", HIERARCHY_REQUEST_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\WRONG_DOCUMENT_ERR", WRONG_DOCUMENT_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\INVALID_CHARACTER_ERR", INVALID_CHARACTER_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\NO_DATA_ALLOWED_ERR", NO_DATA_ALLOWED_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\NO_MODIFICATION_ALLOWED_ERR", NO_MODIFICATION_ALLOWED_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\NOT_FOUND_ERR", NOT_FOUND_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\NOT_SUPPORTED_ERR", NOT_SUPPORTED_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\INUSE_ATTRIBUTE_ERR", INUSE_ATTRIBUTE_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\INVALID_STATE_ERR", INVALID_STATE_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\SYNTAX_ERR", SYNTAX_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\INVALID_MODIFICATION_ERR", INVALID_MODIFICATION_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\NAMESPACE_ERR", NAMESPACE_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\VALIDATION_ERR", VALIDATION_ERR, CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("DOM\\HTML_NO_DEFAULT_NS", DOM_HTML_NO_DEFAULT_NS, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\INDEX_SIZE_ERR", INDEX_SIZE_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\STRING_SIZE_ERR", DOMSTRING_SIZE_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\HIERARCHY_REQUEST_ERR", HIERARCHY_REQUEST_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\WRONG_DOCUMENT_ERR", WRONG_DOCUMENT_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\INVALID_CHARACTER_ERR", INVALID_CHARACTER_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\NO_DATA_ALLOWED_ERR", NO_DATA_ALLOWED_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\NO_MODIFICATION_ALLOWED_ERR", NO_MODIFICATION_ALLOWED_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\NOT_FOUND_ERR", NOT_FOUND_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\NOT_SUPPORTED_ERR", NOT_SUPPORTED_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\INUSE_ATTRIBUTE_ERR", INUSE_ATTRIBUTE_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\INVALID_STATE_ERR", INVALID_STATE_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\SYNTAX_ERR", SYNTAX_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\INVALID_MODIFICATION_ERR", INVALID_MODIFICATION_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\NAMESPACE_ERR", NAMESPACE_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\VALIDATION_ERR", VALIDATION_ERR, CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("Dom\\HTML_NO_DEFAULT_NS", DOM_HTML_NO_DEFAULT_NS, CONST_PERSISTENT); } static zend_class_entry *register_class_DOMDocumentType(zend_class_entry *class_entry_DOMNode) @@ -2551,7 +2551,7 @@ static zend_class_entry *register_class_DOMException(zend_class_entry *class_ent INIT_CLASS_ENTRY(ce, "DOMException", class_DOMException_methods); class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception); class_entry->ce_flags |= ZEND_ACC_FINAL; - zend_register_class_alias("DOM\\DOMException", class_entry); + zend_register_class_alias("Dom\\DOMException", class_entry); zval property_code_default_value; ZVAL_LONG(&property_code_default_value, 0); @@ -2721,42 +2721,42 @@ static zend_class_entry *register_class_DOMXPath(void) } #endif -static zend_class_entry *register_class_DOM_ParentNode(void) +static zend_class_entry *register_class_Dom_ParentNode(void) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "ParentNode", class_DOM_ParentNode_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "ParentNode", class_Dom_ParentNode_methods); class_entry = zend_register_internal_interface(&ce); return class_entry; } -static zend_class_entry *register_class_DOM_ChildNode(void) +static zend_class_entry *register_class_Dom_ChildNode(void) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "ChildNode", class_DOM_ChildNode_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "ChildNode", class_Dom_ChildNode_methods); class_entry = zend_register_internal_interface(&ce); return class_entry; } -static zend_class_entry *register_class_DOM_Implementation(void) +static zend_class_entry *register_class_Dom_Implementation(void) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Implementation", class_DOM_Implementation_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Implementation", class_Dom_Implementation_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); class_entry->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE; return class_entry; } -static zend_class_entry *register_class_DOM_Node(void) +static zend_class_entry *register_class_Dom_Node(void) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Node", class_DOM_Node_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Node", class_Dom_Node_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); class_entry->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES; @@ -2823,57 +2823,57 @@ static zend_class_entry *register_class_DOM_Node(void) zval property_ownerDocument_default_value; ZVAL_UNDEF(&property_ownerDocument_default_value); zend_string *property_ownerDocument_name = zend_string_init("ownerDocument", sizeof("ownerDocument") - 1, 1); - zend_string *property_ownerDocument_class_DOM_Document = zend_string_init("DOM\\Document", sizeof("DOM\\Document")-1, 1); - zend_declare_typed_property(class_entry, property_ownerDocument_name, &property_ownerDocument_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_ownerDocument_class_DOM_Document, 0, MAY_BE_NULL)); + zend_string *property_ownerDocument_class_Dom_Document = zend_string_init("Dom\\Document", sizeof("Dom\\Document")-1, 1); + zend_declare_typed_property(class_entry, property_ownerDocument_name, &property_ownerDocument_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_ownerDocument_class_Dom_Document, 0, MAY_BE_NULL)); zend_string_release(property_ownerDocument_name); zval property_parentNode_default_value; ZVAL_UNDEF(&property_parentNode_default_value); zend_string *property_parentNode_name = zend_string_init("parentNode", sizeof("parentNode") - 1, 1); - zend_string *property_parentNode_class_DOM_Node = zend_string_init("DOM\\\116ode", sizeof("DOM\\\116ode")-1, 1); - zend_declare_typed_property(class_entry, property_parentNode_name, &property_parentNode_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_parentNode_class_DOM_Node, 0, MAY_BE_NULL)); + zend_string *property_parentNode_class_Dom_Node = zend_string_init("Dom\\\116ode", sizeof("Dom\\\116ode")-1, 1); + zend_declare_typed_property(class_entry, property_parentNode_name, &property_parentNode_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_parentNode_class_Dom_Node, 0, MAY_BE_NULL)); zend_string_release(property_parentNode_name); zval property_parentElement_default_value; ZVAL_UNDEF(&property_parentElement_default_value); zend_string *property_parentElement_name = zend_string_init("parentElement", sizeof("parentElement") - 1, 1); - zend_string *property_parentElement_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_parentElement_name, &property_parentElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_parentElement_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_parentElement_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_parentElement_name, &property_parentElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_parentElement_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_parentElement_name); zval property_childNodes_default_value; ZVAL_UNDEF(&property_childNodes_default_value); zend_string *property_childNodes_name = zend_string_init("childNodes", sizeof("childNodes") - 1, 1); - zend_string *property_childNodes_class_DOM_NodeList = zend_string_init("DOM\\\116odeList", sizeof("DOM\\\116odeList")-1, 1); - zend_declare_typed_property(class_entry, property_childNodes_name, &property_childNodes_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_childNodes_class_DOM_NodeList, 0, 0)); + zend_string *property_childNodes_class_Dom_NodeList = zend_string_init("Dom\\\116odeList", sizeof("Dom\\\116odeList")-1, 1); + zend_declare_typed_property(class_entry, property_childNodes_name, &property_childNodes_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_childNodes_class_Dom_NodeList, 0, 0)); zend_string_release(property_childNodes_name); zval property_firstChild_default_value; ZVAL_UNDEF(&property_firstChild_default_value); zend_string *property_firstChild_name = zend_string_init("firstChild", sizeof("firstChild") - 1, 1); - zend_string *property_firstChild_class_DOM_Node = zend_string_init("DOM\\\116ode", sizeof("DOM\\\116ode")-1, 1); - zend_declare_typed_property(class_entry, property_firstChild_name, &property_firstChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstChild_class_DOM_Node, 0, MAY_BE_NULL)); + zend_string *property_firstChild_class_Dom_Node = zend_string_init("Dom\\\116ode", sizeof("Dom\\\116ode")-1, 1); + zend_declare_typed_property(class_entry, property_firstChild_name, &property_firstChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstChild_class_Dom_Node, 0, MAY_BE_NULL)); zend_string_release(property_firstChild_name); zval property_lastChild_default_value; ZVAL_UNDEF(&property_lastChild_default_value); zend_string *property_lastChild_name = zend_string_init("lastChild", sizeof("lastChild") - 1, 1); - zend_string *property_lastChild_class_DOM_Node = zend_string_init("DOM\\\116ode", sizeof("DOM\\\116ode")-1, 1); - zend_declare_typed_property(class_entry, property_lastChild_name, &property_lastChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastChild_class_DOM_Node, 0, MAY_BE_NULL)); + zend_string *property_lastChild_class_Dom_Node = zend_string_init("Dom\\\116ode", sizeof("Dom\\\116ode")-1, 1); + zend_declare_typed_property(class_entry, property_lastChild_name, &property_lastChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastChild_class_Dom_Node, 0, MAY_BE_NULL)); zend_string_release(property_lastChild_name); zval property_previousSibling_default_value; ZVAL_UNDEF(&property_previousSibling_default_value); zend_string *property_previousSibling_name = zend_string_init("previousSibling", sizeof("previousSibling") - 1, 1); - zend_string *property_previousSibling_class_DOM_Node = zend_string_init("DOM\\\116ode", sizeof("DOM\\\116ode")-1, 1); - zend_declare_typed_property(class_entry, property_previousSibling_name, &property_previousSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousSibling_class_DOM_Node, 0, MAY_BE_NULL)); + zend_string *property_previousSibling_class_Dom_Node = zend_string_init("Dom\\\116ode", sizeof("Dom\\\116ode")-1, 1); + zend_declare_typed_property(class_entry, property_previousSibling_name, &property_previousSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousSibling_class_Dom_Node, 0, MAY_BE_NULL)); zend_string_release(property_previousSibling_name); zval property_nextSibling_default_value; ZVAL_UNDEF(&property_nextSibling_default_value); zend_string *property_nextSibling_name = zend_string_init("nextSibling", sizeof("nextSibling") - 1, 1); - zend_string *property_nextSibling_class_DOM_Node = zend_string_init("DOM\\\116ode", sizeof("DOM\\\116ode")-1, 1); - zend_declare_typed_property(class_entry, property_nextSibling_name, &property_nextSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextSibling_class_DOM_Node, 0, MAY_BE_NULL)); + zend_string *property_nextSibling_class_Dom_Node = zend_string_init("Dom\\\116ode", sizeof("Dom\\\116ode")-1, 1); + zend_declare_typed_property(class_entry, property_nextSibling_name, &property_nextSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextSibling_class_Dom_Node, 0, MAY_BE_NULL)); zend_string_release(property_nextSibling_name); zval property_nodeValue_default_value; @@ -2891,11 +2891,11 @@ static zend_class_entry *register_class_DOM_Node(void) return class_entry; } -static zend_class_entry *register_class_DOM_NodeList(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) +static zend_class_entry *register_class_Dom_NodeList(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "NodeList", class_DOM_NodeList_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "NodeList", class_Dom_NodeList_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); zend_class_implements(class_entry, 2, class_entry_IteratorAggregate, class_entry_Countable); @@ -2908,11 +2908,11 @@ static zend_class_entry *register_class_DOM_NodeList(zend_class_entry *class_ent return class_entry; } -static zend_class_entry *register_class_DOM_NamedNodeMap(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) +static zend_class_entry *register_class_Dom_NamedNodeMap(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "NamedNodeMap", class_DOM_NamedNodeMap_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "NamedNodeMap", class_Dom_NamedNodeMap_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); zend_class_implements(class_entry, 2, class_entry_IteratorAggregate, class_entry_Countable); @@ -2925,11 +2925,11 @@ static zend_class_entry *register_class_DOM_NamedNodeMap(zend_class_entry *class return class_entry; } -static zend_class_entry *register_class_DOM_DTDNamedNodeMap(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) +static zend_class_entry *register_class_Dom_DtdNamedNodeMap(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "DTDNamedNodeMap", class_DOM_DTDNamedNodeMap_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "DtdNamedNodeMap", class_Dom_DtdNamedNodeMap_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); zend_class_implements(class_entry, 2, class_entry_IteratorAggregate, class_entry_Countable); @@ -2942,11 +2942,11 @@ static zend_class_entry *register_class_DOM_DTDNamedNodeMap(zend_class_entry *cl return class_entry; } -static zend_class_entry *register_class_DOM_HTMLCollection(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) +static zend_class_entry *register_class_Dom_HTMLCollection(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "HTMLCollection", class_DOM_HTMLCollection_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "HTMLCollection", class_Dom_HTMLCollection_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); zend_class_implements(class_entry, 2, class_entry_IteratorAggregate, class_entry_Countable); @@ -2959,13 +2959,13 @@ static zend_class_entry *register_class_DOM_HTMLCollection(zend_class_entry *cla return class_entry; } -static zend_class_entry *register_class_DOM_Element(zend_class_entry *class_entry_DOM_Node, zend_class_entry *class_entry_DOM_ParentNode, zend_class_entry *class_entry_DOM_ChildNode) +static zend_class_entry *register_class_Dom_Element(zend_class_entry *class_entry_Dom_Node, zend_class_entry *class_entry_Dom_ParentNode, zend_class_entry *class_entry_Dom_ChildNode) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Element", class_DOM_Element_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); - zend_class_implements(class_entry, 2, class_entry_DOM_ParentNode, class_entry_DOM_ChildNode); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Element", class_Dom_Element_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); + zend_class_implements(class_entry, 2, class_entry_Dom_ParentNode, class_entry_Dom_ChildNode); zval property_namespaceURI_default_value; ZVAL_UNDEF(&property_namespaceURI_default_value); @@ -3006,22 +3006,22 @@ static zend_class_entry *register_class_DOM_Element(zend_class_entry *class_entr zval property_attributes_default_value; ZVAL_UNDEF(&property_attributes_default_value); zend_string *property_attributes_name = zend_string_init("attributes", sizeof("attributes") - 1, 1); - zend_string *property_attributes_class_DOM_NamedNodeMap = zend_string_init("DOM\\\116amedNodeMap", sizeof("DOM\\\116amedNodeMap")-1, 1); - zend_declare_typed_property(class_entry, property_attributes_name, &property_attributes_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_attributes_class_DOM_NamedNodeMap, 0, 0)); + zend_string *property_attributes_class_Dom_NamedNodeMap = zend_string_init("Dom\\\116amedNodeMap", sizeof("Dom\\\116amedNodeMap")-1, 1); + zend_declare_typed_property(class_entry, property_attributes_name, &property_attributes_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_attributes_class_Dom_NamedNodeMap, 0, 0)); zend_string_release(property_attributes_name); zval property_firstElementChild_default_value; ZVAL_UNDEF(&property_firstElementChild_default_value); zend_string *property_firstElementChild_name = zend_string_init("firstElementChild", sizeof("firstElementChild") - 1, 1); - zend_string *property_firstElementChild_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_firstElementChild_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_firstElementChild_name); zval property_lastElementChild_default_value; ZVAL_UNDEF(&property_lastElementChild_default_value); zend_string *property_lastElementChild_name = zend_string_init("lastElementChild", sizeof("lastElementChild") - 1, 1); - zend_string *property_lastElementChild_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_lastElementChild_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_lastElementChild_name); zval property_childElementCount_default_value; @@ -3033,26 +3033,26 @@ static zend_class_entry *register_class_DOM_Element(zend_class_entry *class_entr zval property_previousElementSibling_default_value; ZVAL_UNDEF(&property_previousElementSibling_default_value); zend_string *property_previousElementSibling_name = zend_string_init("previousElementSibling", sizeof("previousElementSibling") - 1, 1); - zend_string *property_previousElementSibling_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_previousElementSibling_name, &property_previousElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousElementSibling_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_previousElementSibling_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_previousElementSibling_name, &property_previousElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousElementSibling_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_previousElementSibling_name); zval property_nextElementSibling_default_value; ZVAL_UNDEF(&property_nextElementSibling_default_value); zend_string *property_nextElementSibling_name = zend_string_init("nextElementSibling", sizeof("nextElementSibling") - 1, 1); - zend_string *property_nextElementSibling_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_nextElementSibling_name, &property_nextElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextElementSibling_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_nextElementSibling_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_nextElementSibling_name, &property_nextElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextElementSibling_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_nextElementSibling_name); return class_entry; } -static zend_class_entry *register_class_DOM_Attr(zend_class_entry *class_entry_DOM_Node) +static zend_class_entry *register_class_Dom_Attr(zend_class_entry *class_entry_Dom_Node) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Attr", class_DOM_Attr_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Attr", class_Dom_Attr_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); zval property_namespaceURI_default_value; ZVAL_UNDEF(&property_namespaceURI_default_value); @@ -3087,8 +3087,8 @@ static zend_class_entry *register_class_DOM_Attr(zend_class_entry *class_entry_D zval property_ownerElement_default_value; ZVAL_UNDEF(&property_ownerElement_default_value); zend_string *property_ownerElement_name = zend_string_init("ownerElement", sizeof("ownerElement") - 1, 1); - zend_string *property_ownerElement_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_ownerElement_name, &property_ownerElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_ownerElement_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_ownerElement_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_ownerElement_name, &property_ownerElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_ownerElement_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_ownerElement_name); zval property_specified_default_value; @@ -3100,26 +3100,26 @@ static zend_class_entry *register_class_DOM_Attr(zend_class_entry *class_entry_D return class_entry; } -static zend_class_entry *register_class_DOM_CharacterData(zend_class_entry *class_entry_DOM_Node, zend_class_entry *class_entry_DOM_ChildNode) +static zend_class_entry *register_class_Dom_CharacterData(zend_class_entry *class_entry_Dom_Node, zend_class_entry *class_entry_Dom_ChildNode) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "CharacterData", class_DOM_CharacterData_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); - zend_class_implements(class_entry, 1, class_entry_DOM_ChildNode); + INIT_NS_CLASS_ENTRY(ce, "Dom", "CharacterData", class_Dom_CharacterData_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); + zend_class_implements(class_entry, 1, class_entry_Dom_ChildNode); zval property_previousElementSibling_default_value; ZVAL_UNDEF(&property_previousElementSibling_default_value); zend_string *property_previousElementSibling_name = zend_string_init("previousElementSibling", sizeof("previousElementSibling") - 1, 1); - zend_string *property_previousElementSibling_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_previousElementSibling_name, &property_previousElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousElementSibling_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_previousElementSibling_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_previousElementSibling_name, &property_previousElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_previousElementSibling_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_previousElementSibling_name); zval property_nextElementSibling_default_value; ZVAL_UNDEF(&property_nextElementSibling_default_value); zend_string *property_nextElementSibling_name = zend_string_init("nextElementSibling", sizeof("nextElementSibling") - 1, 1); - zend_string *property_nextElementSibling_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_nextElementSibling_name, &property_nextElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextElementSibling_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_nextElementSibling_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_nextElementSibling_name, &property_nextElementSibling_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_nextElementSibling_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_nextElementSibling_name); zval property_data_default_value; @@ -3137,12 +3137,12 @@ static zend_class_entry *register_class_DOM_CharacterData(zend_class_entry *clas return class_entry; } -static zend_class_entry *register_class_DOM_Text(zend_class_entry *class_entry_DOM_CharacterData) +static zend_class_entry *register_class_Dom_Text(zend_class_entry *class_entry_Dom_CharacterData) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Text", class_DOM_Text_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_CharacterData); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Text", class_Dom_Text_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_CharacterData); zval property_wholeText_default_value; ZVAL_UNDEF(&property_wholeText_default_value); @@ -3153,22 +3153,22 @@ static zend_class_entry *register_class_DOM_Text(zend_class_entry *class_entry_D return class_entry; } -static zend_class_entry *register_class_DOM_CDATASection(zend_class_entry *class_entry_DOM_Text) +static zend_class_entry *register_class_Dom_CDATASection(zend_class_entry *class_entry_Dom_Text) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "CDATASection", class_DOM_CDATASection_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Text); + INIT_NS_CLASS_ENTRY(ce, "Dom", "CDATASection", class_Dom_CDATASection_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Text); return class_entry; } -static zend_class_entry *register_class_DOM_ProcessingInstruction(zend_class_entry *class_entry_DOM_CharacterData) +static zend_class_entry *register_class_Dom_ProcessingInstruction(zend_class_entry *class_entry_Dom_CharacterData) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "ProcessingInstruction", class_DOM_ProcessingInstruction_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_CharacterData); + INIT_NS_CLASS_ENTRY(ce, "Dom", "ProcessingInstruction", class_Dom_ProcessingInstruction_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_CharacterData); zval property_target_default_value; ZVAL_UNDEF(&property_target_default_value); @@ -3179,23 +3179,23 @@ static zend_class_entry *register_class_DOM_ProcessingInstruction(zend_class_ent return class_entry; } -static zend_class_entry *register_class_DOM_Comment(zend_class_entry *class_entry_DOM_CharacterData) +static zend_class_entry *register_class_Dom_Comment(zend_class_entry *class_entry_Dom_CharacterData) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Comment", class_DOM_Comment_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_CharacterData); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Comment", class_Dom_Comment_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_CharacterData); return class_entry; } -static zend_class_entry *register_class_DOM_DocumentType(zend_class_entry *class_entry_DOM_Node, zend_class_entry *class_entry_DOM_ChildNode) +static zend_class_entry *register_class_Dom_DocumentType(zend_class_entry *class_entry_Dom_Node, zend_class_entry *class_entry_Dom_ChildNode) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "DocumentType", class_DOM_DocumentType_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); - zend_class_implements(class_entry, 1, class_entry_DOM_ChildNode); + INIT_NS_CLASS_ENTRY(ce, "Dom", "DocumentType", class_Dom_DocumentType_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); + zend_class_implements(class_entry, 1, class_entry_Dom_ChildNode); zval property_name_default_value; ZVAL_UNDEF(&property_name_default_value); @@ -3206,15 +3206,15 @@ static zend_class_entry *register_class_DOM_DocumentType(zend_class_entry *class zval property_entities_default_value; ZVAL_UNDEF(&property_entities_default_value); zend_string *property_entities_name = zend_string_init("entities", sizeof("entities") - 1, 1); - zend_string *property_entities_class_DOM_DTDNamedNodeMap = zend_string_init("DOM\\DTDNamedNodeMap", sizeof("DOM\\DTDNamedNodeMap")-1, 1); - zend_declare_typed_property(class_entry, property_entities_name, &property_entities_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_entities_class_DOM_DTDNamedNodeMap, 0, 0)); + zend_string *property_entities_class_Dom_DtdNamedNodeMap = zend_string_init("Dom\\DtdNamedNodeMap", sizeof("Dom\\DtdNamedNodeMap")-1, 1); + zend_declare_typed_property(class_entry, property_entities_name, &property_entities_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_entities_class_Dom_DtdNamedNodeMap, 0, 0)); zend_string_release(property_entities_name); zval property_notations_default_value; ZVAL_UNDEF(&property_notations_default_value); zend_string *property_notations_name = zend_string_init("notations", sizeof("notations") - 1, 1); - zend_string *property_notations_class_DOM_DTDNamedNodeMap = zend_string_init("DOM\\DTDNamedNodeMap", sizeof("DOM\\DTDNamedNodeMap")-1, 1); - zend_declare_typed_property(class_entry, property_notations_name, &property_notations_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_notations_class_DOM_DTDNamedNodeMap, 0, 0)); + zend_string *property_notations_class_Dom_DtdNamedNodeMap = zend_string_init("Dom\\DtdNamedNodeMap", sizeof("Dom\\DtdNamedNodeMap")-1, 1); + zend_declare_typed_property(class_entry, property_notations_name, &property_notations_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_notations_class_Dom_DtdNamedNodeMap, 0, 0)); zend_string_release(property_notations_name); zval property_publicId_default_value; @@ -3238,26 +3238,26 @@ static zend_class_entry *register_class_DOM_DocumentType(zend_class_entry *class return class_entry; } -static zend_class_entry *register_class_DOM_DocumentFragment(zend_class_entry *class_entry_DOM_Node, zend_class_entry *class_entry_DOM_ParentNode) +static zend_class_entry *register_class_Dom_DocumentFragment(zend_class_entry *class_entry_Dom_Node, zend_class_entry *class_entry_Dom_ParentNode) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "DocumentFragment", class_DOM_DocumentFragment_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); - zend_class_implements(class_entry, 1, class_entry_DOM_ParentNode); + INIT_NS_CLASS_ENTRY(ce, "Dom", "DocumentFragment", class_Dom_DocumentFragment_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); + zend_class_implements(class_entry, 1, class_entry_Dom_ParentNode); zval property_firstElementChild_default_value; ZVAL_UNDEF(&property_firstElementChild_default_value); zend_string *property_firstElementChild_name = zend_string_init("firstElementChild", sizeof("firstElementChild") - 1, 1); - zend_string *property_firstElementChild_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_firstElementChild_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_firstElementChild_name); zval property_lastElementChild_default_value; ZVAL_UNDEF(&property_lastElementChild_default_value); zend_string *property_lastElementChild_name = zend_string_init("lastElementChild", sizeof("lastElementChild") - 1, 1); - zend_string *property_lastElementChild_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_lastElementChild_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_lastElementChild_name); zval property_childElementCount_default_value; @@ -3269,12 +3269,12 @@ static zend_class_entry *register_class_DOM_DocumentFragment(zend_class_entry *c return class_entry; } -static zend_class_entry *register_class_DOM_Entity(zend_class_entry *class_entry_DOM_Node) +static zend_class_entry *register_class_Dom_Entity(zend_class_entry *class_entry_Dom_Node) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Entity", class_DOM_Entity_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Entity", class_Dom_Entity_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); zval property_publicId_default_value; ZVAL_UNDEF(&property_publicId_default_value); @@ -3297,22 +3297,22 @@ static zend_class_entry *register_class_DOM_Entity(zend_class_entry *class_entry return class_entry; } -static zend_class_entry *register_class_DOM_EntityReference(zend_class_entry *class_entry_DOM_Node) +static zend_class_entry *register_class_Dom_EntityReference(zend_class_entry *class_entry_Dom_Node) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "EntityReference", class_DOM_EntityReference_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); + INIT_NS_CLASS_ENTRY(ce, "Dom", "EntityReference", class_Dom_EntityReference_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); return class_entry; } -static zend_class_entry *register_class_DOM_Notation(zend_class_entry *class_entry_DOM_Node) +static zend_class_entry *register_class_Dom_Notation(zend_class_entry *class_entry_Dom_Node) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Notation", class_DOM_Notation_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Notation", class_Dom_Notation_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); zval property_publicId_default_value; ZVAL_UNDEF(&property_publicId_default_value); @@ -3329,20 +3329,20 @@ static zend_class_entry *register_class_DOM_Notation(zend_class_entry *class_ent return class_entry; } -static zend_class_entry *register_class_DOM_Document(zend_class_entry *class_entry_DOM_Node, zend_class_entry *class_entry_DOM_ParentNode) +static zend_class_entry *register_class_Dom_Document(zend_class_entry *class_entry_Dom_Node, zend_class_entry *class_entry_Dom_ParentNode) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "Document", class_DOM_Document_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Node); + INIT_NS_CLASS_ENTRY(ce, "Dom", "Document", class_Dom_Document_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Node); class_entry->ce_flags |= ZEND_ACC_ABSTRACT; - zend_class_implements(class_entry, 1, class_entry_DOM_ParentNode); + zend_class_implements(class_entry, 1, class_entry_Dom_ParentNode); zval property_implementation_default_value; ZVAL_UNDEF(&property_implementation_default_value); zend_string *property_implementation_name = zend_string_init("implementation", sizeof("implementation") - 1, 1); - zend_string *property_implementation_class_DOM_Implementation = zend_string_init("DOM\\Implementation", sizeof("DOM\\Implementation")-1, 1); - zend_declare_typed_property(class_entry, property_implementation_name, &property_implementation_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_implementation_class_DOM_Implementation, 0, 0)); + zend_string *property_implementation_class_Dom_Implementation = zend_string_init("Dom\\Implementation", sizeof("Dom\\Implementation")-1, 1); + zend_declare_typed_property(class_entry, property_implementation_name, &property_implementation_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_implementation_class_Dom_Implementation, 0, 0)); zend_string_release(property_implementation_name); zval property_URL_default_value; @@ -3378,29 +3378,29 @@ static zend_class_entry *register_class_DOM_Document(zend_class_entry *class_ent zval property_doctype_default_value; ZVAL_UNDEF(&property_doctype_default_value); zend_string *property_doctype_name = zend_string_init("doctype", sizeof("doctype") - 1, 1); - zend_string *property_doctype_class_DOM_DocumentType = zend_string_init("DOM\\DocumentType", sizeof("DOM\\DocumentType")-1, 1); - zend_declare_typed_property(class_entry, property_doctype_name, &property_doctype_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_doctype_class_DOM_DocumentType, 0, MAY_BE_NULL)); + zend_string *property_doctype_class_Dom_DocumentType = zend_string_init("Dom\\DocumentType", sizeof("Dom\\DocumentType")-1, 1); + zend_declare_typed_property(class_entry, property_doctype_name, &property_doctype_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_doctype_class_Dom_DocumentType, 0, MAY_BE_NULL)); zend_string_release(property_doctype_name); zval property_documentElement_default_value; ZVAL_UNDEF(&property_documentElement_default_value); zend_string *property_documentElement_name = zend_string_init("documentElement", sizeof("documentElement") - 1, 1); - zend_string *property_documentElement_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_documentElement_name, &property_documentElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_documentElement_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_documentElement_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_documentElement_name, &property_documentElement_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_documentElement_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_documentElement_name); zval property_firstElementChild_default_value; ZVAL_UNDEF(&property_firstElementChild_default_value); zend_string *property_firstElementChild_name = zend_string_init("firstElementChild", sizeof("firstElementChild") - 1, 1); - zend_string *property_firstElementChild_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_firstElementChild_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_firstElementChild_name, &property_firstElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_firstElementChild_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_firstElementChild_name); zval property_lastElementChild_default_value; ZVAL_UNDEF(&property_lastElementChild_default_value); zend_string *property_lastElementChild_name = zend_string_init("lastElementChild", sizeof("lastElementChild") - 1, 1); - zend_string *property_lastElementChild_class_DOM_Element = zend_string_init("DOM\\Element", sizeof("DOM\\Element")-1, 1); - zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_DOM_Element, 0, MAY_BE_NULL)); + zend_string *property_lastElementChild_class_Dom_Element = zend_string_init("Dom\\Element", sizeof("Dom\\Element")-1, 1); + zend_declare_typed_property(class_entry, property_lastElementChild_name, &property_lastElementChild_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_lastElementChild_class_Dom_Element, 0, MAY_BE_NULL)); zend_string_release(property_lastElementChild_name); zval property_childElementCount_default_value; @@ -3412,23 +3412,23 @@ static zend_class_entry *register_class_DOM_Document(zend_class_entry *class_ent return class_entry; } -static zend_class_entry *register_class_DOM_HTMLDocument(zend_class_entry *class_entry_DOM_Document) +static zend_class_entry *register_class_Dom_HTMLDocument(zend_class_entry *class_entry_Dom_Document) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "HTMLDocument", class_DOM_HTMLDocument_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Document); + INIT_NS_CLASS_ENTRY(ce, "Dom", "HTMLDocument", class_Dom_HTMLDocument_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Document); class_entry->ce_flags |= ZEND_ACC_FINAL; return class_entry; } -static zend_class_entry *register_class_DOM_XMLDocument(zend_class_entry *class_entry_DOM_Document) +static zend_class_entry *register_class_Dom_XMLDocument(zend_class_entry *class_entry_Dom_Document) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "XMLDocument", class_DOM_XMLDocument_methods); - class_entry = zend_register_internal_class_ex(&ce, class_entry_DOM_Document); + INIT_NS_CLASS_ENTRY(ce, "Dom", "XMLDocument", class_Dom_XMLDocument_methods); + class_entry = zend_register_internal_class_ex(&ce, class_entry_Dom_Document); class_entry->ce_flags |= ZEND_ACC_FINAL; zval property_xmlEncoding_default_value; @@ -3459,19 +3459,19 @@ static zend_class_entry *register_class_DOM_XMLDocument(zend_class_entry *class_ } #if defined(LIBXML_XPATH_ENABLED) -static zend_class_entry *register_class_DOM_XPath(void) +static zend_class_entry *register_class_Dom_XPath(void) { zend_class_entry ce, *class_entry; - INIT_NS_CLASS_ENTRY(ce, "DOM", "XPath", class_DOM_XPath_methods); + INIT_NS_CLASS_ENTRY(ce, "Dom", "XPath", class_Dom_XPath_methods); class_entry = zend_register_internal_class_ex(&ce, NULL); class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NOT_SERIALIZABLE; zval property_document_default_value; ZVAL_UNDEF(&property_document_default_value); zend_string *property_document_name = zend_string_init("document", sizeof("document") - 1, 1); - zend_string *property_document_class_DOM_Document = zend_string_init("DOM\\Document", sizeof("DOM\\Document")-1, 1); - zend_declare_typed_property(class_entry, property_document_name, &property_document_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_document_class_DOM_Document, 0, 0)); + zend_string *property_document_class_Dom_Document = zend_string_init("Dom\\Document", sizeof("Dom\\Document")-1, 1); + zend_declare_typed_property(class_entry, property_document_name, &property_document_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_CLASS(property_document_class_Dom_Document, 0, 0)); zend_string_release(property_document_name); zval property_registerNodeNamespaces_default_value; diff --git a/ext/dom/tests/dom_import_simplexml.phpt b/ext/dom/tests/dom_import_simplexml.phpt index f38ea1227ca..e761bfa66d8 100644 --- a/ext/dom/tests/dom_import_simplexml.phpt +++ b/ext/dom/tests/dom_import_simplexml.phpt @@ -15,7 +15,7 @@ print $dom->ownerDocument->saveXML(); // This should fail because it has been imported already above in legacy DOM try { - DOM\import_simplexml($s); + Dom\import_simplexml($s); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } @@ -32,4 +32,4 @@ try { John Steinbeck -DOM\import_simplexml(): Argument #1 ($node) must not be already imported as a DOMNode +Dom\import_simplexml(): Argument #1 ($node) must not be already imported as a DOMNode diff --git a/ext/dom/tests/entity_reference_stale_03.phpt b/ext/dom/tests/entity_reference_stale_03.phpt index dee005d8db9..03ac2ab1958 100644 --- a/ext/dom/tests/entity_reference_stale_03.phpt +++ b/ext/dom/tests/entity_reference_stale_03.phpt @@ -6,7 +6,7 @@ dom ]> @@ -28,7 +28,7 @@ foreach (['firstChild', 'lastChild', 'textContent', 'childNodes'] as $prop) { NULL NULL NULL -object(DOM\NodeList)#1 (1) { +object(Dom\NodeList)#1 (1) { ["length"]=> int(0) } diff --git a/ext/dom/tests/gh13863.phpt b/ext/dom/tests/gh13863.phpt index e9a7058c341..bf761438ac8 100644 --- a/ext/dom/tests/gh13863.phpt +++ b/ext/dom/tests/gh13863.phpt @@ -26,7 +26,7 @@ function createTestDoc(DomType $type) { $doc->preserveWhiteSpace = false; $doc->loadXML($xml); } else { - $doc = DOM\XMLDocument::createFromString($xml, LIBXML_NOBLANKS); + $doc = Dom\XMLDocument::createFromString($xml, LIBXML_NOBLANKS); } return $doc; diff --git a/ext/dom/tests/modern/common/serialize_entity_reference_in_attribute.phpt b/ext/dom/tests/modern/common/serialize_entity_reference_in_attribute.phpt index 79f92439bd5..231546c6b37 100644 --- a/ext/dom/tests/modern/common/serialize_entity_reference_in_attribute.phpt +++ b/ext/dom/tests/modern/common/serialize_entity_reference_in_attribute.phpt @@ -5,7 +5,7 @@ dom --FILE-- ]> @@ -13,11 +13,11 @@ $xml = DOM\XMLDocument::createFromString(<<documentElement->firstChild; -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; -$html = DOM\HTMLDocument::createEmpty(); +$html = Dom\HTMLDocument::createEmpty(); $html->append($html->importNode($el, true)); -echo $html->saveHTML(), "\n"; +echo $html->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt index 05a348df0ce..f1967adc379 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument GB18030 encoding test +Dom\HTMLDocument GB18030 encoding test --EXTENSIONS-- dom --FILE-- charset); $dom->documentElement->firstChild->nextElementSibling->textContent = "é"; -$output = $dom->saveHTML(); +$output = $dom->saveHtml(); echo $output, "\n"; -$dom->saveHTMLFile(__DIR__ . "/gb18030_output.tmp"); +$dom->saveHtmlFile(__DIR__ . "/gb18030_output.tmp"); var_dump(file_get_contents(__DIR__ . "/gb18030_output.tmp") === $output); echo "--- After changing encoding to UTF-8 ---\n"; $dom->charset = "UTF-8"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --CLEAN-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt index 84e835c1d8d..56c0523821e 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument Shift JIS encoding test +Dom\HTMLDocument Shift JIS encoding test --EXTENSIONS-- dom --FILE-- charset); $dom->documentElement->firstChild->nextElementSibling->textContent .= "é"; -$output = $dom->saveHTML(); +$output = $dom->saveHtml(); echo $output, "\n"; -$dom->saveHTMLFile(__DIR__ . "/shift_jis.tmp"); +$dom->saveHtmlFile(__DIR__ . "/shift_jis.tmp"); var_dump(file_get_contents(__DIR__ . "/shift_jis.tmp") === $output); echo "--- After changing encoding to UTF-8 ---\n"; $dom->charset = "UTF-8"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --CLEAN-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt index 315384345a4..eb4af0a5b3c 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument UTF-16BE BOM encoding test +Dom\HTMLDocument UTF-16BE BOM encoding test --EXTENSIONS-- dom --FILE-- characterSet); $dom->documentElement->firstChild->nextElementSibling->textContent = "é"; -$output = $dom->saveHTML(); +$output = $dom->saveHtml(); echo $output, "\n"; -$dom->saveHTMLFile(__DIR__ . "/utf16be_bom_output.tmp"); +$dom->saveHtmlFile(__DIR__ . "/utf16be_bom_output.tmp"); var_dump(file_get_contents(__DIR__ . "/utf16be_bom_output.tmp") === $output); echo "--- After changing encoding to UTF-8 ---\n"; $dom->characterSet = "UTF-8"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --CLEAN-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt index 8b0183a9f05..0a6dbf7fe80 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument UTF-16LE BOM encoding test +Dom\HTMLDocument UTF-16LE BOM encoding test --EXTENSIONS-- dom --FILE-- inputEncoding); $dom->documentElement->firstChild->nextElementSibling->textContent = "é"; -$output = $dom->saveHTML(); +$output = $dom->saveHtml(); echo $output, "\n"; -$dom->saveHTMLFile(__DIR__ . "/utf16le_bom_output.tmp"); +$dom->saveHtmlFile(__DIR__ . "/utf16le_bom_output.tmp"); var_dump(file_get_contents(__DIR__ . "/utf16le_bom_output.tmp") === $output); echo "--- After changing encoding to UTF-8 ---\n"; $dom->inputEncoding = "UTF-8"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --CLEAN-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt index c23ca5a9a47..2054cb3d4a9 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument UTF-8 BOM encoding test +Dom\HTMLDocument UTF-8 BOM encoding test --EXTENSIONS-- dom --FILE-- charset); $dom->documentElement->firstChild->nextElementSibling->textContent = "é"; -$output = $dom->saveHTML(); +$output = $dom->saveHtml(); echo $output, "\n"; -$dom->saveHTMLFile(__DIR__ . "/utf8_bom_output.tmp"); +$dom->saveHtmlFile(__DIR__ . "/utf8_bom_output.tmp"); var_dump(file_get_contents(__DIR__ . "/utf8_bom_output.tmp") === $output); echo "--- After changing encoding to UTF-8 ---\n"; $dom->charset = "UTF-8"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --CLEAN-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt index 98d313a5540..75e7662e4e0 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument Windows-1251 encoding test +Dom\HTMLDocument Windows-1251 encoding test --EXTENSIONS-- dom --FILE-- charset); $dom->documentElement->firstChild->nextElementSibling->textContent .= "é"; // Note: won't show up in Windows 1251 because it doesn't exist there -$output = $dom->saveHTML(); +$output = $dom->saveHtml(); echo $output, "\n"; -$dom->saveHTMLFile(__DIR__ . "/windows1251_output.tmp"); +$dom->saveHtmlFile(__DIR__ . "/windows1251_output.tmp"); var_dump(file_get_contents(__DIR__ . "/windows1251_output.tmp") === $output); echo "--- After changing encoding to UTF-8 ---\n"; $dom->charset = "UTF-8"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --CLEAN-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_http_header.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_http_header.phpt index 8a4271c3a0a..5c602b87f23 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_http_header.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_http_header.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument::createFromFile() HTTP header Content-Type +Dom\HTMLDocument::createFromFile() HTTP header Content-Type --EXTENSIONS-- dom --SKIPIF-- @@ -62,7 +62,7 @@ foreach ($tests as $name => $headers) { $responses = array_map(fn ($header) => "data://text/plain,HTTP/1.1 200 OK\r\nContent-Type: " . $header . "\r\n\r\n" . "

\xE4\xF6\xFC

\n", $headers); ['pid' => $pid, 'uri' => $uri] = http_server($responses); for ($i = 0; $i < count($responses); $i++) { - $result = DOM\HTMLDocument::createFromFile($uri, LIBXML_NOERROR); + $result = Dom\HTMLDocument::createFromFile($uri, LIBXML_NOERROR); echo $result->getElementsByTagName("p")[0]->textContent, "\n"; } http_server_kill($pid); diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_override_encoding.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_override_encoding.phpt index ef1aca0f9f6..6b87f1d4714 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_override_encoding.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromFile_override_encoding.phpt @@ -1,29 +1,29 @@ --TEST-- -DOM\HTMLDocument::createFromFile() with overrideEncoding +Dom\HTMLDocument::createFromFile() with overrideEncoding --EXTENSIONS-- dom --FILE-- getMessage(), "\n"; } // The override encoding matches with the document encoding attribute -$dom = DOM\HTMLDocument::createFromFile(__DIR__ . '/gb18030_without_charset.html', overrideEncoding: 'GB18030'); +$dom = Dom\HTMLDocument::createFromFile(__DIR__ . '/gb18030_without_charset.html', overrideEncoding: 'GB18030'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); // The override encoding mismatches with the document encoding attribute -$dom = DOM\HTMLDocument::createFromFile(__DIR__ . '/fallback_encoding.html', overrideEncoding: 'Windows-1252'); +$dom = Dom\HTMLDocument::createFromFile(__DIR__ . '/fallback_encoding.html', overrideEncoding: 'Windows-1252'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); ?> --EXPECT-- -DOM\HTMLDocument::createFromFile(): Argument #3 ($overrideEncoding) must be a valid document encoding +Dom\HTMLDocument::createFromFile(): Argument #3 ($overrideEncoding) must be a valid document encoding string(20) " Héllo, world! " diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromString_override_encoding.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromString_override_encoding.phpt index d68e0131df9..75984d6acd9 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromString_override_encoding.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_createFromString_override_encoding.phpt @@ -1,29 +1,29 @@ --TEST-- -DOM\HTMLDocument::createFromString() with overrideEncoding +Dom\HTMLDocument::createFromString() with overrideEncoding --EXTENSIONS-- dom --FILE-- getMessage(), "\n"; } // The override encoding matches with the document encoding attribute -$dom = DOM\HTMLDocument::createFromString(file_get_contents(__DIR__ . '/gb18030_without_charset.html'), overrideEncoding: 'GB18030'); +$dom = Dom\HTMLDocument::createFromString(file_get_contents(__DIR__ . '/gb18030_without_charset.html'), overrideEncoding: 'GB18030'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); // The override encoding mismatches with the document encoding attribute -$dom = DOM\HTMLDocument::createFromString(file_get_contents(__DIR__ . '/fallback_encoding.html'), overrideEncoding: 'Windows-1252'); +$dom = Dom\HTMLDocument::createFromString(file_get_contents(__DIR__ . '/fallback_encoding.html'), overrideEncoding: 'Windows-1252'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); ?> --EXPECT-- -DOM\HTMLDocument::createFromString(): Argument #3 ($overrideEncoding) must be a valid document encoding +Dom\HTMLDocument::createFromString(): Argument #3 ($overrideEncoding) must be a valid document encoding string(20) " Héllo, world! " diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_01.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_01.phpt index 13fbdc684b3..921b56901d4 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_01.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_01.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument edge case encoding 01 +Dom\HTMLDocument edge case encoding 01 --EXTENSIONS-- dom --FILE-- @@ -7,11 +7,11 @@ dom // UTF-8 -> UTF-8 // Create a UTF-8 string where a UTF-8 byte sequence falls over the boundary of the 4096 byte buffer -$dom = DOM\HTMLDocument::createEmpty(); +$dom = Dom\HTMLDocument::createEmpty(); $element = $dom->createElement("container"); $dom->append($element); $element->append(str_repeat("A", 4096 - 2 - strlen("")) . "\xf0\x90\x8d\x88AA"); -var_dump($dom->saveHTML()); +var_dump($dom->saveHtml()); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_02.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_02.phpt index c8e9736533a..f23ef536fa0 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_02.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_02.phpt @@ -1,18 +1,18 @@ --TEST-- -DOM\HTMLDocument edge case encoding 02 +Dom\HTMLDocument edge case encoding 02 --EXTENSIONS-- dom --FILE-- GB18030 -$dom = DOM\HTMLDocument::createEmpty("GB18030"); +$dom = Dom\HTMLDocument::createEmpty("GB18030"); $element = $dom->createElement("container"); $dom->append($element); // Create a UTF-8 string where a UTF-8 byte sequence falls over the boundary of the 4096 byte buffer // *and* the sequence also falls over the boundary for the result $element->append(str_repeat("A", 4096 - 2 - strlen("")) . "\xf0\x90\x8d\x88AA"); -var_dump($output = $dom->saveHTML()); +var_dump($output = $dom->saveHtml()); // GB18030 encoding of the above UTF-8 symbol var_dump($output[4094] == "\x90"); diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_03.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_03.phpt index 5e66a0b0411..085cf92ef55 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_03.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_03.phpt @@ -1,18 +1,18 @@ --TEST-- -DOM\HTMLDocument edge case encoding 03 +Dom\HTMLDocument edge case encoding 03 --EXTENSIONS-- dom --FILE-- GB18030 -$dom = DOM\HTMLDocument::createEmpty("GB18030"); +$dom = Dom\HTMLDocument::createEmpty("GB18030"); $element = $dom->createElement("container"); $dom->append($element); // Create a UTF-8 string where an invalid UTF-8 byte sequence falls over the boundary of the 4096 byte buffer // Note: the strange ?1?7 sequence is the GB18030 encoding for the unicode replacement character $element->append(str_repeat("A", 4096 - 2 - strlen("")) . "\xff\xff\xff"); -var_dump($dom->saveHTML()); +var_dump($dom->saveHtml()); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_04.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_04.phpt index 1bde3303269..2f627d65f79 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_04.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_04.phpt @@ -1,17 +1,17 @@ --TEST-- -DOM\HTMLDocument edge case encoding 04 +Dom\HTMLDocument edge case encoding 04 --EXTENSIONS-- dom --FILE-- UTF-8 -$dom = DOM\HTMLDocument::createEmpty(); +$dom = Dom\HTMLDocument::createEmpty(); $element = $dom->createElement("container"); $dom->append($element); // Create a UTF-8 string where an invalid UTF-8 byte sequence falls over the boundary of the 4096 byte buffer $element->append(str_repeat("A", 4096 - 2 - strlen("")) . "\xff\xff\xff"); -var_dump($dom->saveHTML()); +var_dump($dom->saveHtml()); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_05.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_05.phpt index 0c44159c8b6..4f762ef4aa4 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_05.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_05.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument edge case encoding 05 +Dom\HTMLDocument edge case encoding 05 --EXTENSIONS-- dom --FILE-- @@ -9,11 +9,11 @@ dom $header = ""; $padding_required_until_4094 = 4094 - strlen($header); $trailer = "\x90\x30\xd5\x30"; -$dom = DOM\HTMLDocument::createFromString($header . str_repeat("A", $padding_required_until_4094) . $trailer); +$dom = Dom\HTMLDocument::createFromString($header . str_repeat("A", $padding_required_until_4094) . $trailer); // GB18030 byte sequence crossing the 4096 boundary var_dump($dom->charset); $dom->charset = "UTF-8"; -var_dump($dom->saveHTML()); +var_dump($dom->saveHtml()); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_06.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_06.phpt index ea5962a1ae6..5ceb83a03ef 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_06.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_06.phpt @@ -1,17 +1,17 @@ --TEST-- -DOM\HTMLDocument edge case encoding 06 +Dom\HTMLDocument edge case encoding 06 --EXTENSIONS-- dom --FILE-- UTF-8 -$dom = DOM\HTMLDocument::createEmpty(); +$dom = Dom\HTMLDocument::createEmpty(); $element = $dom->createElement("container"); $dom->append($element); // Create a UTF-8 string where a *broken* UTF-8 byte sequence falls over the boundary of the 4096 byte buffer $element->append(str_repeat("A", 4096 - 1 - strlen("")) . "\xf0\x90"); -var_dump($dom->saveHTML()); +var_dump($dom->saveHtml()); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_07.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_07.phpt index 4f60cccaba1..15bf36a62fb 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_07.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_07.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument edge case encoding 07 +Dom\HTMLDocument edge case encoding 07 --EXTENSIONS-- dom --FILE-- @@ -9,11 +9,11 @@ dom $header = ""; $padding_required_until_4095 = 4095 - strlen($header); $trailer = "\x90\x30"; -$dom = DOM\HTMLDocument::createFromString($header . str_repeat("A", $padding_required_until_4095) . $trailer); +$dom = Dom\HTMLDocument::createFromString($header . str_repeat("A", $padding_required_until_4095) . $trailer); // GB18030 *broken* byte sequence crossing the 4096 boundary var_dump($dom->charset); $dom->charset = "UTF-8"; -var_dump($dom->saveHTML()); +var_dump($dom->saveHtml()); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_field_test.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_field_test.phpt index c5c5aec382d..c4417d80410 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_field_test.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_field_test.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument test values for encoding field +Dom\HTMLDocument test values for encoding field --EXTENSIONS-- dom --FILE-- charset); $dom->inputEncoding = "CSeuckr"; var_dump($dom->characterSet); @@ -23,10 +23,10 @@ try { echo $e->getMessage(), "\n"; } var_dump($dom->inputEncoding); -echo $dom->saveHTML(); +echo $dom->saveHtml(); try { - $dom = DOM\HTMLDocument::createEmpty("bogus"); + $dom = Dom\HTMLDocument::createEmpty("bogus"); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } @@ -40,4 +40,4 @@ string(6) "EUC-KR" string(12) "windows-1251" Invalid document encoding string(12) "windows-1251" -DOM\HTMLDocument::createEmpty(): Argument #1 ($encoding) must be a valid document encoding +Dom\HTMLDocument::createEmpty(): Argument #1 ($encoding) must be a valid document encoding diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_unicode_error.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_unicode_error.phpt index 7885f68ecf5..0de3da67159 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_unicode_error.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_unicode_error.phpt @@ -1,26 +1,26 @@ --TEST-- -DOM\HTMLDocument loading with unicode codepoints resulting in an error +Dom\HTMLDocument loading with unicode codepoints resulting in an error --EXTENSIONS-- dom --FILE-- --EXPECTF-- --- createFromFile --- -Warning: DOM\HTMLDocument::createFromFile(): tokenizer error missing-end-tag-name in %s on line %d +Warning: Dom\HTMLDocument::createFromFile(): tokenizer error missing-end-tag-name in %s on line %d -Warning: DOM\HTMLDocument::createFromFile(): tree error unexpected-token in %s on line %d +Warning: Dom\HTMLDocument::createFromFile(): tree error unexpected-token in %s on line %d -Warning: DOM\HTMLDocument::createFromFile(): tree error unexpected-token in %s on line %d +Warning: Dom\HTMLDocument::createFromFile(): tree error unexpected-token in %s on line %d --- createFromString --- -Warning: DOM\HTMLDocument::createFromString(): tokenizer error missing-end-tag-name in Entity, line: 7, column: 29 in %s on line %d +Warning: Dom\HTMLDocument::createFromString(): tokenizer error missing-end-tag-name in Entity, line: 7, column: 29 in %s on line %d -Warning: DOM\HTMLDocument::createFromString(): tree error unexpected-token in Entity, line: 7, column: 14-17 in %s on line %d +Warning: Dom\HTMLDocument::createFromString(): tree error unexpected-token in Entity, line: 7, column: 14-17 in %s on line %d -Warning: DOM\HTMLDocument::createFromString(): tree error unexpected-token in Entity, line: 8, column: 7-10 in %s on line %d +Warning: Dom\HTMLDocument::createFromString(): tree error unexpected-token in Entity, line: 8, column: 7-10 in %s on line %d diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt index f431b6cd319..fda707577b5 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt @@ -1,13 +1,13 @@ --TEST-- -DOM\HTMLDocument fallback encoding test +Dom\HTMLDocument fallback encoding test --EXTENSIONS-- dom --FILE-- inputEncoding); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --CLEAN-- diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_override_encoding_incompatible_charset.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_override_encoding_incompatible_charset.phpt index 737f6aca428..4f351d86d4d 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_override_encoding_incompatible_charset.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_override_encoding_incompatible_charset.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument: overrideEncoding with incompatible charset +Dom\HTMLDocument: overrideEncoding with incompatible charset --EXTENSIONS-- iconv dom --FILE-- - äöü + ��� - äöü + ��� DOC, @@ -29,8 +29,8 @@ var_dump(iconv('UTF-8', 'ISO-8859-1', $doc->getElementsByTagName('title')->item( var_dump(iconv('UTF-8', 'ISO-8859-1', $doc->getElementsByTagName('body')->item(0)->textContent)); ?> --EXPECT-- -string(3) "äöü" -string(9) " - äöü +string(9) "���" +string(15) " + ��� " diff --git a/ext/dom/tests/modern/html/interactions/HTMLCollection_dimension_errors.phpt b/ext/dom/tests/modern/html/interactions/HTMLCollection_dimension_errors.phpt index e68d1ede386..571f94e4d34 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLCollection_dimension_errors.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLCollection_dimension_errors.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); try { $dom->getElementsByTagName('root')[][1] = 1; @@ -27,6 +27,6 @@ try { ?> --EXPECT-- -Cannot append to DOM\HTMLCollection -Cannot access offset of type bool on DOM\HTMLCollection +Cannot append to Dom\HTMLCollection +Cannot access offset of type bool on Dom\HTMLCollection Cannot access offset of type bool in isset or empty diff --git a/ext/dom/tests/modern/html/interactions/HTMLCollection_named_reads.phpt b/ext/dom/tests/modern/html/interactions/HTMLCollection_named_reads.phpt index 82883e4ceec..97caa7ac554 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLCollection_named_reads.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLCollection_named_reads.phpt @@ -21,7 +21,7 @@ $xml = << XML; -$dom = DOM\XMLDocument::createFromString($xml); +$dom = Dom\XMLDocument::createFromString($xml); function test($obj, $name) { echo "--- Query \"$name\" ---\n"; diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_clone.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_clone.phpt index e5420d06b97..7126c09553c 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_clone.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_clone.phpt @@ -1,11 +1,11 @@ --TEST-- -Cloning a DOM\HTMLDocument +Cloning a Dom\HTMLDocument --EXTENSIONS-- dom --FILE-- foo

"); +$dom = Dom\HTMLDocument::createFromString("

foo

"); $dom2 = clone $dom; var_dump($dom2->firstChild->tagName); @@ -17,7 +17,7 @@ var_dump(get_class($element->ownerDocument)); ?> --EXPECTF-- -Warning: DOM\HTMLDocument::createFromString(): tree error unexpected-token-in-initial-mode in Entity, line: 1, column: 2 in %s on line %d +Warning: Dom\HTMLDocument::createFromString(): tree error unexpected-token-in-initial-mode in Entity, line: 1, column: 2 in %s on line %d string(4) "HTML" string(3) "foo" -string(16) "DOM\HTMLDocument" +string(16) "Dom\HTMLDocument" diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_documentURI.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_documentURI.phpt index a24ebb7bf34..76375afe129 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_documentURI.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_documentURI.phpt @@ -1,17 +1,17 @@ --TEST-- -DOM\HTMLDocument::documentURI +Dom\HTMLDocument::documentURI --EXTENSIONS-- dom --FILE-- documentURI); $memory = fopen("php://memory", "w+"); fwrite($memory, "foobar"); rewind($memory); -$dom = DOM\HTMLDocument::createFromFile("php://memory"); +$dom = Dom\HTMLDocument::createFromFile("php://memory"); var_dump($dom->documentURI); fclose($memory); @@ -37,7 +37,7 @@ class DummyWrapper { stream_wrapper_register("dummy", DummyWrapper::class); -$dom = DOM\HTMLDocument::createFromFile("dummy://foo/ bar"); +$dom = Dom\HTMLDocument::createFromFile("dummy://foo/ bar"); var_dump($dom->documentURI); ?> diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_getElementsByTagName.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_getElementsByTagName.phpt index 19759c95677..1c90d5a3381 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_getElementsByTagName.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_getElementsByTagName.phpt @@ -1,11 +1,11 @@ --TEST-- -Test DOM\HTMLDocument::getElementsByTagName(NS) +Test Dom\HTMLDocument::getElementsByTagName(NS) --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_01.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_01.phpt index 6ae7589270b..91604c5fab8 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_01.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_01.phpt @@ -1,17 +1,17 @@ --TEST-- -DOM\HTMLDocument::registerNodeClass 01 +Dom\HTMLDocument::registerNodeClass 01 --EXTENSIONS-- dom --FILE-- registerNodeClass("DOM\\HTMLDocument", "DOMDocument"); +$dom->registerNodeClass("Dom\\HTMLDocument", "DOMDocument"); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: DOMDocument::registerNodeClass(): Argument #1 ($baseClass) must be a class name derived from DOMNode, DOM\HTMLDocument given in %s:%d +Fatal error: Uncaught TypeError: DOMDocument::registerNodeClass(): Argument #1 ($baseClass) must be a class name derived from DOMNode, Dom\HTMLDocument given in %s:%d Stack trace: -#0 %s(%d): DOMDocument->registerNodeClass('DOM\\HTMLDocumen...', 'DOMDocument') +#0 %s(%d): DOMDocument->registerNodeClass('Dom\\HTMLDocumen...', 'DOMDocument') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_02.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_02.phpt index 3eb1f0cae8a..70be58a906b 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_02.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_02.phpt @@ -1,18 +1,18 @@ --TEST-- -DOM\HTMLDocument::registerNodeClass 02 +Dom\HTMLDocument::registerNodeClass 02 --EXTENSIONS-- dom --FILE-- registerNodeClass("DOM\\Document", "Custom"); + $dom->registerNodeClass("Dom\\Document", "Custom"); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } @@ -27,10 +27,10 @@ $element->ownerDocument->foo(); ?> --EXPECTF-- -DOM\Document::registerNodeClass(): Argument #1 ($baseClass) must not be an abstract class -string(16) "DOM\HTMLDocument" +Dom\Document::registerNodeClass(): Argument #1 ($baseClass) must not be an abstract class +string(16) "Dom\HTMLDocument" -Fatal error: Uncaught Error: Call to undefined method DOM\HTMLDocument::foo() in %s:%d +Fatal error: Uncaught Error: Call to undefined method Dom\HTMLDocument::foo() in %s:%d Stack trace: #0 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_03.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_03.phpt index 859212a0867..7a4d2d32797 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_03.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_registerNodeClass_03.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::registerNodeClass 03 +Dom\HTMLDocument::registerNodeClass 03 --EXTENSIONS-- dom --FILE-- foo", LIBXML_NOERROR); -$dom->registerNodeClass("DOM\\Element", "Custom"); +$dom = Dom\HTMLDocument::createFromString("
foo
", LIBXML_NOERROR); +$dom->registerNodeClass("Dom\\Element", "Custom"); var_dump($dom->getElementsByTagName('div')[0]->reverseTagName()); diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTMLFile_empty_path.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTMLFile_empty_path.phpt index 02514e54e07..93daf65f72f 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTMLFile_empty_path.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTMLFile_empty_path.phpt @@ -1,18 +1,18 @@ --TEST-- -DOM\HTMLDocument::saveHTMLFile() empty path +Dom\HTMLDocument::saveHtmlFile() empty path --EXTENSIONS-- dom --FILE-- appendChild($dom->createElement("root")); -$dom->saveHTMLFile(""); +$dom->saveHtmlFile(""); ?> --EXPECTF-- -Fatal error: Uncaught ValueError: DOM\HTMLDocument::saveHTMLFile(): Argument #1 ($filename) must not be empty in %s:%d +Fatal error: Uncaught ValueError: Dom\HTMLDocument::saveHtmlFile(): Argument #1 ($filename) must not be empty in %s:%d Stack trace: -#0 %s(%d): DOM\HTMLDocument->saveHTMLFile('') +#0 %s(%d): Dom\HTMLDocument->saveHtmlFile('') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTML_wrong_document.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTML_wrong_document.phpt index d2356068b4e..7358f8b440b 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTML_wrong_document.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_saveHTML_wrong_document.phpt @@ -1,17 +1,17 @@ --TEST-- -DOM\HTMLDocument::saveHTML() wrong document +Dom\HTMLDocument::saveHtml() wrong document --EXTENSIONS-- dom --FILE-- saveHTML(DOM\HTMLDocument::createEmpty()); +$dom = Dom\HTMLDocument::createEmpty(); +$dom->saveHtml(Dom\HTMLDocument::createEmpty()); ?> --EXPECTF-- Fatal error: Uncaught DOMException: Wrong Document Error in %s:%d Stack trace: -#0 %s(%d): DOM\HTMLDocument->saveHTML(Object(DOM\HTMLDocument)) +#0 %s(%d): Dom\HTMLDocument->saveHtml(Object(Dom\HTMLDocument)) #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_01.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_01.phpt index 08e70cfa430..2931aebab28 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_01.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_01.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument should retain properties and ownerDocument relation 01 +Dom\HTMLDocument should retain properties and ownerDocument relation 01 --EXTENSIONS-- dom --FILE-- foo

", LIBXML_NOERROR); -$dom->registerNodeClass("DOM\\Element", "MyElement"); +$dom = Dom\HTMLDocument::createFromString("

foo

", LIBXML_NOERROR); +$dom->registerNodeClass("Dom\\Element", "MyElement"); // Destroy reference to the DOM $child = $dom->documentElement; unset($dom); // Regain reference using the ownerDocument property -// Should be a DOM\HTMLDocument +// Should be a Dom\HTMLDocument $dom = $child->ownerDocument; var_dump($dom); // Test if property is preserved (any random doc_props property will do) @@ -23,7 +23,7 @@ var_dump(get_class($dom->getElementsByTagName("p")->item(0))); ?> --EXPECT-- -object(DOM\HTMLDocument)#1 (25) { +object(Dom\HTMLDocument)#1 (25) { ["implementation"]=> string(22) "(object value omitted)" ["URL"]=> diff --git a/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_02.phpt b/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_02.phpt index 379a3da4b2f..c356cf7ba92 100644 --- a/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_02.phpt +++ b/ext/dom/tests/modern/html/interactions/HTMLDocument_should_retain_properties_and_owner_02.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument should retain properties and ownerDocument relation 02 +Dom\HTMLDocument should retain properties and ownerDocument relation 02 --EXTENSIONS-- dom --FILE-- foo

", LIBXML_NOERROR); -$dom->registerNodeClass("DOM\\Element", "MyElement"); +$dom = Dom\HTMLDocument::createFromString("

foo

", LIBXML_NOERROR); +$dom->registerNodeClass("Dom\\Element", "MyElement"); $child = $dom->documentElement->appendChild($dom->createElement('html')); // Destroy reference to the DOM unset($dom); // Regain reference using the ownerDocument property -// Should be a DOM\HTMLDocument +// Should be a Dom\HTMLDocument $dom = $child->ownerDocument; var_dump($dom); // Test if property is preserved (any random doc_props property will do) @@ -23,7 +23,7 @@ var_dump(get_class($dom->getElementsByTagName("p")->item(0))); ?> --EXPECT-- -object(DOM\HTMLDocument)#1 (25) { +object(Dom\HTMLDocument)#1 (25) { ["implementation"]=> string(22) "(object value omitted)" ["URL"]=> diff --git a/ext/dom/tests/modern/html/interactions/getLineNo_65536.phpt b/ext/dom/tests/modern/html/interactions/getLineNo_65536.phpt index 122bcc8aaaa..5ab1a3293c1 100644 --- a/ext/dom/tests/modern/html/interactions/getLineNo_65536.phpt +++ b/ext/dom/tests/modern/html/interactions/getLineNo_65536.phpt @@ -12,7 +12,7 @@ $html = str_repeat("\n", 65536) . << EOF; -$dom = DOM\HTMLDocument::createFromString($html); +$dom = Dom\HTMLDocument::createFromString($html); var_dump($dom->documentElement->firstChild->nextSibling->firstChild->nextSibling->getLineNo()); ?> diff --git a/ext/dom/tests/modern/html/interactions/noscript.phpt b/ext/dom/tests/modern/html/interactions/noscript.phpt index d93dae79c65..2dec9ce9b1b 100644 --- a/ext/dom/tests/modern/html/interactions/noscript.phpt +++ b/ext/dom/tests/modern/html/interactions/noscript.phpt @@ -7,25 +7,25 @@ dom echo "--- Parsing ---\n"; -$dom = DOM\HTMLDocument::createFromString("", DOM\HTML_NO_DEFAULT_NS); +$dom = Dom\HTMLDocument::createFromString("", Dom\HTML_NO_DEFAULT_NS); var_dump($dom->documentElement->textContent); var_dump($dom->documentElement->namespaceURI); -echo $dom->saveHTML(), "\n"; -echo $dom->saveXML(), "\n"; +echo $dom->saveHtml(), "\n"; +echo $dom->saveXml(), "\n"; echo "--- Modifying the text content: tag ---\n"; -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); $noscript = $xpath->query("//noscript")[0]; $noscript->textContent = "

bye

"; -echo $dom->saveHTML(), "\n"; -echo $dom->saveXML(), "\n"; +echo $dom->saveHtml(), "\n"; +echo $dom->saveXml(), "\n"; echo "--- Modifying the text content: trick ---\n"; $noscript->textContent = ""; -echo $dom->saveHTML(), "\n"; -echo $dom->saveXML(), "\n"; +echo $dom->saveHtml(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/interactions/without_constructor.phpt b/ext/dom/tests/modern/html/interactions/without_constructor.phpt index 606ebfb8b28..96cd131b039 100644 --- a/ext/dom/tests/modern/html/interactions/without_constructor.phpt +++ b/ext/dom/tests/modern/html/interactions/without_constructor.phpt @@ -5,7 +5,7 @@ dom --FILE-- newInstanceWithoutConstructor(); @@ -16,5 +16,5 @@ foreach (['DOM\HTMLDocument', 'DOM\XMLDocument'] as $class) { ?> --EXPECT-- -Class DOM\HTMLDocument is an internal class marked as final that cannot be instantiated without invoking its constructor -Class DOM\XMLDocument is an internal class marked as final that cannot be instantiated without invoking its constructor +Class Dom\HTMLDocument is an internal class marked as final that cannot be instantiated without invoking its constructor +Class Dom\XMLDocument is an internal class marked as final that cannot be instantiated without invoking its constructor diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_createFromFile_createFromString_BOM_buffer_edge.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_createFromFile_createFromString_BOM_buffer_edge.phpt index b666167d2b4..7240229721b 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_createFromFile_createFromString_BOM_buffer_edge.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_createFromFile_createFromString_BOM_buffer_edge.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument::createFromFile()/createFromString() BOM with a buffer on the edge +Dom\HTMLDocument::createFromFile()/createFromString() BOM with a buffer on the edge --EXTENSIONS-- dom --FILE-- @@ -9,13 +9,13 @@ $header = "\xEF\xBB\xBF"; $trailer = ""; $data = $header . str_repeat("a", 4096 - strlen($header) - strlen($trailer)) . $trailer; -$dom = DOM\HTMLDocument::createFromString($header . str_repeat("a", 4096 - strlen($header) - strlen($trailer)) . $trailer); +$dom = Dom\HTMLDocument::createFromString($header . str_repeat("a", 4096 - strlen($header) - strlen($trailer)) . $trailer); var_dump($dom->documentElement->textContent); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; file_put_contents(__DIR__ . "/BOM_edge.tmp", $data); -$dom = DOM\HTMLDocument::createFromFile(__DIR__ . "/BOM_edge.tmp"); +$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/BOM_edge.tmp"); var_dump($dom->documentElement->textContent); ?> diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_createFromString_namespaced_attributes.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_createFromString_namespaced_attributes.phpt index 7562e14beb1..4a4add549e1 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_createFromString_namespaced_attributes.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_createFromString_namespaced_attributes.phpt @@ -5,7 +5,7 @@ dom --FILE-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_DOM_HTML_NO_DEFAULT_NS.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_DOM_HTML_NO_DEFAULT_NS.phpt index 4b370b417dd..8c5a32f342c 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_DOM_HTML_NO_DEFAULT_NS.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_DOM_HTML_NO_DEFAULT_NS.phpt @@ -1,37 +1,37 @@ --TEST-- -DOM\HTMLDocument::createFromFile() with DOM\HTML_NO_DEFAULT_NS +Dom\HTMLDocument::createFromFile() with Dom\HTML_NO_DEFAULT_NS --EXTENSIONS-- dom --FILE-- registerNamespace("x", "http://www.w3.org/1999/xhtml"); var_dump($xpath->query("//p")); var_dump($xpath->query("//x:p")); -$dom = DOM\HTMLDocument::createFromFile(__DIR__ . "/paragraph.html", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR | DOM\HTML_NO_DEFAULT_NS); -$xpath = new DOM\XPath($dom); +$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/paragraph.html", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR | Dom\HTML_NO_DEFAULT_NS); +$xpath = new Dom\XPath($dom); $xpath->registerNamespace("x", "http://www.w3.org/1999/xhtml"); var_dump($xpath->query("//p")); var_dump($xpath->query("//x:p")); ?> --EXPECT-- -object(DOM\NodeList)#3 (1) { +object(Dom\NodeList)#3 (1) { ["length"]=> int(0) } -object(DOM\NodeList)#4 (1) { +object(Dom\NodeList)#4 (1) { ["length"]=> int(1) } -object(DOM\NodeList)#3 (1) { +object(Dom\NodeList)#3 (1) { ["length"]=> int(1) } -object(DOM\NodeList)#3 (1) { +object(Dom\NodeList)#3 (1) { ["length"]=> int(0) } diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_empty_path.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_empty_path.phpt index 73e55c1f09a..96b054168a2 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_empty_path.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_empty_path.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - empty path +Dom\HTMLDocument::createFromFile() - empty path --EXTENSIONS-- dom --FILE-- --EXPECTF-- Fatal error: Uncaught ValueError: Path cannot be empty in %s:%d Stack trace: -#0 %s(%d): DOM\HTMLDocument::createFromFile('') +#0 %s(%d): Dom\HTMLDocument::createFromFile('') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_existing_file.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_existing_file.phpt index 0e9e2b60e2b..96cdda68150 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_existing_file.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_existing_file.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - local existing file +Dom\HTMLDocument::createFromFile() - local existing file --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/../../../test.html"); +echo $dom->saveHtml(), "\n"; ?> --EXPECTF-- -Warning: DOM\HTMLDocument::createFromFile(): tree error unexpected-token-in-initial-mode in %s on line %d +Warning: Dom\HTMLDocument::createFromFile(): tree error unexpected-token-in-initial-mode in %s on line %d Hello world diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_file_does_not_exist.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_file_does_not_exist.phpt index 8bb91cf8ee7..ce96afd69eb 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_file_does_not_exist.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_file_does_not_exist.phpt @@ -1,19 +1,19 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - local file that does not exist +Dom\HTMLDocument::createFromFile() - local file that does not exist --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/../foobar"); +echo $dom->saveHtml(), "\n"; ?> --EXPECTF-- -Warning: DOM\HTMLDocument::createFromFile(%s): Failed to open stream: No such file or directory in %s on line %d +Warning: Dom\HTMLDocument::createFromFile(%s): Failed to open stream: No such file or directory in %s on line %d Fatal error: Uncaught Exception: Cannot open file '%s' in %s:%d Stack trace: -#0 %s(%d): DOM\HTMLDocument::createFromFile('%s') +#0 %s(%d): Dom\HTMLDocument::createFromFile('%s') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_nul_terminator_cases_path.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_nul_terminator_cases_path.phpt index 6e79c2f12a9..37cf161ec04 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_nul_terminator_cases_path.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_nul_terminator_cases_path.phpt @@ -1,22 +1,22 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - NUL terminator cases path +Dom\HTMLDocument::createFromFile() - NUL terminator cases path --EXTENSIONS-- dom --FILE-- getMessage(), "\n"; } try { - DOM\HTMLDocument::createFromFile('%00'); + Dom\HTMLDocument::createFromFile('%00'); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- -DOM\HTMLDocument::createFromFile(): Argument #1 ($path) must not contain any null bytes -DOM\HTMLDocument::createFromFile(): Argument #1 ($path) must not contain percent-encoded NUL bytes +Dom\HTMLDocument::createFromFile(): Argument #1 ($path) must not contain any null bytes +Dom\HTMLDocument::createFromFile(): Argument #1 ($path) must not contain percent-encoded NUL bytes diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_01.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_01.phpt index 9c77ebeadd4..4940bcb1d55 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_01.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_01.phpt @@ -1,12 +1,12 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - parser warning 01 +Dom\HTMLDocument::createFromFile() - parser warning 01 --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromFile(__DIR__."/parser_warning_01.html", LIBXML_NOERROR); +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_02.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_02.phpt index 9d3dd944e7b..976856d4280 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_02.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_02.phpt @@ -1,12 +1,12 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - parser warning 02 +Dom\HTMLDocument::createFromFile() - parser warning 02 --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromFile(__DIR__."/parser_warning_02.html", LIBXML_NOERROR); +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_03.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_03.phpt index f5cada6c18f..5562fedc4e7 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_03.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_03.phpt @@ -1,12 +1,12 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - parser warning 03 +Dom\HTMLDocument::createFromFile() - parser warning 03 --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromFile(__DIR__."/parser_warning_03.html", LIBXML_NOERROR); +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_libxml_get_last_error.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_libxml_get_last_error.phpt index 3de37d94890..4cca3daad1a 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_libxml_get_last_error.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_parser_warning_libxml_get_last_error.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - parser warning libxml_get_last_error() +Dom\HTMLDocument::createFromFile() - parser warning libxml_get_last_error() --EXTENSIONS-- dom --FILE-- @@ -8,7 +8,7 @@ dom libxml_use_internal_errors(true); $html = '<>x '; -$dom = DOM\HTMLDocument::createFromFile(__DIR__."/parser_warning_01.html"); +$dom = Dom\HTMLDocument::createFromFile(__DIR__."/parser_warning_01.html"); var_dump(libxml_get_last_error()); diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_failing_stream_wrapper.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_failing_stream_wrapper.phpt index 78e07b72bbe..c31541d657b 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_failing_stream_wrapper.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_failing_stream_wrapper.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument::createFromFile() with failing stream wrapper +Dom\HTMLDocument::createFromFile() with failing stream wrapper --EXTENSIONS-- dom --FILE-- @@ -32,13 +32,13 @@ class FailingWrapper { stream_wrapper_register("fail", FailingWrapper::class, 0); -DOM\HTMLDocument::createFromFile("fail://x"); +Dom\HTMLDocument::createFromFile("fail://x"); ?> --EXPECTF-- Fatal error: Uncaught Error: fail in %s:%d Stack trace: #0 [internal function]: FailingWrapper->stream_read(8192) -#1 %s(%d): DOM\HTMLDocument::createFromFile('fail://x') +#1 %s(%d): Dom\HTMLDocument::createFromFile('fail://x') #2 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_working_stream_wrapper.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_working_stream_wrapper.phpt index e2e24fdba27..b763e913361 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_working_stream_wrapper.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_with_working_stream_wrapper.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument::createFromFile() with working stream wrapper +Dom\HTMLDocument::createFromFile() with working stream wrapper --EXTENSIONS-- dom --FILE-- @@ -34,15 +34,15 @@ stream_wrapper_register("euw", EchoUriWrapper::class, 0); echo "--- Stream wrapper case ---\n"; -$dom = DOM\HTMLDocument::createFromFile("euw://

hello

"); -echo $dom->saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromFile("euw://

hello

"); +echo $dom->saveHtml(), "\n"; echo "--- Stream wrapper in two chunks case ---\n"; libxml_use_internal_errors(true); // To properly test this, keep the 4096 in sync with document.c's input stream buffer size. -$dom = DOM\HTMLDocument::createFromFile("euw://" . str_repeat("\n", 4096-22) . "<>"); -echo $dom->saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromFile("euw://" . str_repeat("\n", 4096-22) . "<>"); +echo $dom->saveHtml(), "\n"; foreach (libxml_get_errors() as $error) { var_dump($error->line, $error->column); @@ -52,7 +52,7 @@ foreach (libxml_get_errors() as $error) { --EXPECTF-- --- Stream wrapper case --- -Warning: DOM\HTMLDocument::createFromFile(): tree error unexpected-token-in-initial-mode in euw://

hello

, line: 1, column: 2 in %s on line %d +Warning: Dom\HTMLDocument::createFromFile(): tree error unexpected-token-in-initial-mode in euw://

hello

, line: 1, column: 2 in %s on line %d

hello

--- Stream wrapper in two chunks case --- <> diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_DOM_HTML_NO_DEFAULT_NS.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_DOM_HTML_NO_DEFAULT_NS.phpt index 102f4df84c3..bf18ffd1d02 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_DOM_HTML_NO_DEFAULT_NS.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_DOM_HTML_NO_DEFAULT_NS.phpt @@ -1,37 +1,37 @@ --TEST-- -DOM\HTMLDocument::createFromString() with DOM\HTML_NO_DEFAULT_NS +Dom\HTMLDocument::createFromString() with Dom\HTML_NO_DEFAULT_NS --EXTENSIONS-- dom --FILE-- registerNamespace("x", "http://www.w3.org/1999/xhtml"); var_dump($xpath->query("//p")); var_dump($xpath->query("//x:p")); -$dom = DOM\HTMLDocument::createFromString(file_get_contents(__DIR__ . "/paragraph.html"), LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR | DOM\HTML_NO_DEFAULT_NS); -$xpath = new DOM\XPath($dom); +$dom = Dom\HTMLDocument::createFromString(file_get_contents(__DIR__ . "/paragraph.html"), LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR | Dom\HTML_NO_DEFAULT_NS); +$xpath = new Dom\XPath($dom); $xpath->registerNamespace("x", "http://www.w3.org/1999/xhtml"); var_dump($xpath->query("//p")); var_dump($xpath->query("//x:p")); ?> --EXPECT-- -object(DOM\NodeList)#3 (1) { +object(Dom\NodeList)#3 (1) { ["length"]=> int(0) } -object(DOM\NodeList)#4 (1) { +object(Dom\NodeList)#4 (1) { ["length"]=> int(1) } -object(DOM\NodeList)#3 (1) { +object(Dom\NodeList)#3 (1) { ["length"]=> int(1) } -object(DOM\NodeList)#3 (1) { +object(Dom\NodeList)#3 (1) { ["length"]=> int(0) } diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_COMPACT.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_COMPACT.phpt index c702c48ba3f..ec77fd141df 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_COMPACT.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_COMPACT.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::createFromString() with LIBXML_COMPACT +Dom\HTMLDocument::createFromString() with LIBXML_COMPACT --EXTENSIONS-- dom --FILE-- @@ -23,7 +23,7 @@ $dom = DOM\HTMLDocument::createFromString(<< HTML, LIBXML_COMPACT); -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); foreach ($xpath->query("//*[name()='p']") as $p) { echo $p->textContent, "\n"; } diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_error.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_error.phpt index 26f322f7127..60e1274e9e0 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_error.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_error.phpt @@ -1,12 +1,12 @@ --TEST-- -DOM\HTMLDocument::createFromString() with LIBXML_HTML_NOIMPLIED - tree error should not happen +Dom\HTMLDocument::createFromString() with LIBXML_HTML_NOIMPLIED - tree error should not happen --EXTENSIONS-- dom --FILE-- foo", LIBXML_HTML_NOIMPLIED); -echo $dom->saveHTML(); +$dom = Dom\HTMLDocument::createFromString("
foo
", LIBXML_HTML_NOIMPLIED); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_namespace.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_namespace.phpt index fde8f40b90b..7f802fbe864 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_namespace.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_namespace.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument::createFromString() with LIBXML_HTML_NOIMPLIED namespace check +Dom\HTMLDocument::createFromString() with LIBXML_HTML_NOIMPLIED namespace check --EXTENSIONS-- dom --FILE-- @@ -7,20 +7,20 @@ dom echo "--- No elements ---\n"; -$dom = DOM\HTMLDocument::createFromString("", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); -echo $dom->saveXML(), "\n"; +$dom = Dom\HTMLDocument::createFromString("", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); +echo $dom->saveXml(), "\n"; echo "--- Single element ---\n"; -$dom = DOM\HTMLDocument::createFromString("

foo

", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); -echo $dom->saveXML(), "\n"; +$dom = Dom\HTMLDocument::createFromString("

foo

", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); +echo $dom->saveXml(), "\n"; var_dump($dom->documentElement->namespaceURI); var_dump($dom->documentElement->prefix); echo "--- Multiple elements ---\n"; -$dom = DOM\HTMLDocument::createFromString("

foo

bar", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); -echo $dom->saveXML(), "\n"; +$dom = Dom\HTMLDocument::createFromString("

foo

bar", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); +echo $dom->saveXml(), "\n"; var_dump($dom->documentElement->namespaceURI); var_dump($dom->documentElement->prefix); var_dump($dom->documentElement->nextSibling->namespaceURI); diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt index 898ae43fabb..ea4ca53ef8b 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt @@ -1,12 +1,12 @@ --TEST-- -DOM\HTMLDocument::createFromString() - empty document +Dom\HTMLDocument::createFromString() - empty document --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromString(''); +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_fromFile_LIBXML_HTML_NOIMPLIED.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_fromFile_LIBXML_HTML_NOIMPLIED.phpt index 3e26fc35b95..8126d15e156 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_fromFile_LIBXML_HTML_NOIMPLIED.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_fromFile_LIBXML_HTML_NOIMPLIED.phpt @@ -1,21 +1,21 @@ --TEST-- -DOM\HTMLDocument::createFromString()/createFromFile() with LIBXML_HTML_NOIMPLIED +Dom\HTMLDocument::createFromString()/createFromFile() with LIBXML_HTML_NOIMPLIED --EXTENSIONS-- dom --FILE-- saveHTML(); + $dom = Dom\HTMLDocument::createFromString($html, LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); + $output = $dom->saveHtml(); echo $output, "\n"; // Also test the loadHTMLFile variation. We won't print out the result, just checking the result is the same. $temp = fopen(__DIR__."/DOM_HTMLDocument_loadHTML_LIBXML_HTML_NOIMPLIED_input.tmp", "w"); fwrite($temp, $html); fclose($temp); - $dom = DOM\HTMLDocument::createFromFile(__DIR__."/DOM_HTMLDocument_loadHTML_LIBXML_HTML_NOIMPLIED_input.tmp", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); - var_dump($output === $dom->saveHTML()); + $dom = Dom\HTMLDocument::createFromFile(__DIR__."/DOM_HTMLDocument_loadHTML_LIBXML_HTML_NOIMPLIED_input.tmp", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); + var_dump($output === $dom->saveHtml()); } echo "--- Missing html, head, body ---\n"; diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_line_column.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_line_column.phpt index 2d1ecab2cb1..8451be111a1 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_line_column.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_line_column.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::createFromString() - line and column test +Dom\HTMLDocument::createFromString() - line and column test --EXTENSIONS-- dom --FILE-- @@ -22,7 +22,7 @@ $dom = DOM\HTMLDocument::createFromString(<< HTML); -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); foreach ($xpath->query("//*") as $element) { echo "Element: '", $element->tagName, "', ", $element->getLineNo(), "\n"; diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_normal_no_error.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_normal_no_error.phpt index b4a778a68d3..dfb1202e0b4 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_normal_no_error.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_normal_no_error.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\HTMLDocument::createFromString() - normal document, no error +Dom\HTMLDocument::createFromString() - normal document, no error --EXTENSIONS-- dom --FILE-- @@ -21,8 +21,8 @@ $html = << HTML; -$dom = DOM\HTMLDocument::createFromString($html); -echo $dom->saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromString($html); +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_old_dtd.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_old_dtd.phpt index f140b8b1f34..24fa6d59943 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_old_dtd.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_old_dtd.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::createFromString(): Old DTD +Dom\HTMLDocument::createFromString(): Old DTD --EXTENSIONS-- dom --FILE-- @@ -16,13 +16,13 @@ $dom = DOM\HTMLDocument::createFromString(<<saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; echo "--- XML serialization ---\n"; -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECTF-- -Warning: DOM\HTMLDocument::createFromString(): tree error bad-doctype-token-in-initial-mode in Entity, line: 1, column: 3-9 in %s on line %d +Warning: Dom\HTMLDocument::createFromString(): tree error bad-doctype-token-in-initial-mode in Entity, line: 1, column: 3-9 in %s on line %d --- HTML serialization --- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_01.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_01.phpt index 4469ee890ee..0d00e879c06 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_01.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_01.phpt @@ -1,19 +1,19 @@ --TEST-- -DOM\HTMLDocument::createFromString() - parser warning 01 +Dom\HTMLDocument::createFromString() - parser warning 01 --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; +$dom = Dom\HTMLDocument::createFromString($html); +echo $dom->saveHtml(), "\n"; ?> --EXPECTF-- -Warning: DOM\HTMLDocument::createFromString(): tokenizer error missing-end-tag-name in Entity, line: 7, column: 11 in %s on line %d +Warning: Dom\HTMLDocument::createFromString(): tokenizer error missing-end-tag-name in Entity, line: 7, column: 11 in %s on line %d -Warning: DOM\HTMLDocument::createFromString(): tree error unexpected-token-in-initial-mode in Entity, line: 1, column: 2-6 in %s on line %d +Warning: Dom\HTMLDocument::createFromString(): tree error unexpected-token-in-initial-mode in Entity, line: 1, column: 2-6 in %s on line %d foo