From 7266e54e51aa688449fd58021da4c162d4f1433a Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Tue, 7 May 2024 21:13:52 +0200 Subject: [PATCH 1/4] Rename DOM namespace to Dom See https://wiki.php.net/rfc/class-naming-acronyms. --- 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 | 12 +- 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 | 4 +- .../html/encoding/HTMLDocument_GB18030.phpt | 4 +- .../html/encoding/HTMLDocument_Shift_JIS.phpt | 4 +- .../encoding/HTMLDocument_UTF16BE_BOM.phpt | 4 +- .../encoding/HTMLDocument_UTF16LE_BOM.phpt | 4 +- .../html/encoding/HTMLDocument_UTF8_BOM.phpt | 4 +- .../encoding/HTMLDocument_Windows1251.phpt | 4 +- ...MLDocument_createFromFile_http_header.phpt | 4 +- ...ment_createFromFile_override_encoding.phpt | 10 +- ...nt_createFromString_override_encoding.phpt | 10 +- .../HTMLDocument_encoding_edge_case_01.phpt | 4 +- .../HTMLDocument_encoding_edge_case_02.phpt | 4 +- .../HTMLDocument_encoding_edge_case_03.phpt | 4 +- .../HTMLDocument_encoding_edge_case_04.phpt | 4 +- .../HTMLDocument_encoding_edge_case_05.phpt | 4 +- .../HTMLDocument_encoding_edge_case_06.phpt | 4 +- .../HTMLDocument_encoding_edge_case_07.phpt | 4 +- .../HTMLDocument_encoding_field_test.phpt | 8 +- .../HTMLDocument_encoding_unicode_error.phpt | 18 +- .../HTMLDocument_fallback_encoding.phpt | 4 +- ...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 | 8 +- .../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 | 4 +- .../interactions/without_constructor.phpt | 6 +- ...File_createFromString_BOM_buffer_edge.phpt | 6 +- ...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 | 6 +- ...nt_fromFile_local_file_does_not_exist.phpt | 8 +- ...nt_fromFile_nul_terminator_cases_path.phpt | 10 +- ...MLDocument_fromFile_parser_warning_01.phpt | 4 +- ...MLDocument_fromFile_parser_warning_02.phpt | 4 +- ...MLDocument_fromFile_parser_warning_03.phpt | 4 +- ..._parser_warning_libxml_get_last_error.phpt | 4 +- ..._fromFile_with_failing_stream_wrapper.phpt | 6 +- ..._fromFile_with_working_stream_wrapper.phpt | 8 +- ...ent_fromString_DOM_HTML_NO_DEFAULT_NS.phpt | 18 +- ...TMLDocument_fromString_LIBXML_COMPACT.phpt | 6 +- ...romString_LIBXML_HTML_NOIMPLIED_error.phpt | 4 +- ...tring_LIBXML_HTML_NOIMPLIED_namespace.phpt | 8 +- .../parser/HTMLDocument_fromString_empty.phpt | 4 +- ...String_fromFile_LIBXML_HTML_NOIMPLIED.phpt | 6 +- .../HTMLDocument_fromString_line_column.phpt | 6 +- ...MLDocument_fromString_normal_no_error.phpt | 4 +- .../HTMLDocument_fromString_old_dtd.phpt | 6 +- ...Document_fromString_parser_warning_01.phpt | 8 +- ...Document_fromString_parser_warning_02.phpt | 16 +- ...Document_fromString_parser_warning_03.phpt | 4 +- ...mString_parser_warning_internal_error.phpt | 4 +- .../HTMLDocument_fromString_without_body.phpt | 4 +- .../parser/HTMLDocument_parse_options.phpt | 68 +- .../html/parser/predefined_namespaces.phpt | 4 +- .../html/parser/user_error_handler.phpt | 4 +- .../html/parser/xml_style_namespace.phpt | 4 +- .../HTMLDocument_entity_reference.phpt | 2 +- .../HTMLDocument_escape_attribute.phpt | 4 +- .../serializer/HTMLDocument_escape_nbsp.phpt | 4 +- .../HTMLDocument_serialize_attribute_ns.phpt | 4 +- .../HTMLDocument_serialize_cdata.phpt | 6 +- .../HTMLDocument_serialize_comment.phpt | 4 +- .../HTMLDocument_serialize_doctype.phpt | 4 +- .../HTMLDocument_serialize_element_ns.phpt | 4 +- ...HTMLDocument_serialize_failing_stream.phpt | 6 +- .../HTMLDocument_serialize_fragment.phpt | 4 +- .../HTMLDocument_serialize_full_document.phpt | 4 +- ...HTMLDocument_serialize_ns_imported_01.phpt | 6 +- ...HTMLDocument_serialize_ns_imported_02.phpt | 6 +- ...HTMLDocument_serialize_ns_imported_03.phpt | 6 +- ...HTMLDocument_serialize_ns_imported_04.phpt | 6 +- ...HTMLDocument_serialize_ns_imported_05.phpt | 6 +- ...HTMLDocument_serialize_ns_imported_06.phpt | 6 +- ...ment_serialize_processing_instruction.phpt | 4 +- .../HTMLDocument_serialize_roots.phpt | 6 +- .../HTMLDocument_serialize_text_01.phpt | 4 +- .../HTMLDocument_serialize_text_02.phpt | 4 +- .../HTMLDocument_serialize_text_03.phpt | 4 +- .../HTMLDocument_serialize_void_elements.phpt | 4 +- ext/dom/tests/modern/spec/Attr_name.phpt | 2 +- ..._deleteData_negative_in_bounds_length.phpt | 2 +- .../CharacterData_insertData_edge_cases.phpt | 2 +- ...racterData_insertData_negative_offset.phpt | 2 +- ...Data_insertData_negative_offset_mod32.phpt | 2 +- ...racterData_replaceData_negative_count.phpt | 2 +- ...Data_replaceData_negative_count_mod32.phpt | 2 +- ...haracterData_substringData_edge_cases.phpt | 2 +- ...Data_substringData_negative_arguments.phpt | 2 +- ...ubstringData_negative_arguments_mod32.phpt | 2 +- .../modern/spec/Document_createAttribute.phpt | 4 +- .../spec/Document_createAttributeNS.phpt | 2 +- .../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 | 6 +- ...ent_implementation_createDocumentType.phpt | 10 +- ...lementation_createDocumentType_errors.phpt | 2 +- ..._implementation_createDocument_errors.phpt | 2 +- ...ent_implementation_createHTMLDocument.phpt | 2 +- .../Document_implementation_same_object.phpt | 8 +- .../spec/Document_importLegacyNode.phpt | 6 +- .../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 | 2 +- .../modern/spec/Element_prefix_readonly.phpt | 6 +- .../modern/spec/Element_removeAttribute.phpt | 2 +- .../spec/Element_removeAttributeNS.phpt | 2 +- .../Element_removeAttribute_edge_cases.phpt | 2 +- .../modern/spec/Element_setAttributeNS.phpt | 6 +- .../modern/spec/Element_setAttributeNode.phpt | 4 +- .../Element_setAttributeNode_adoption.phpt | 10 +- .../spec/Element_setAttributeNode_inuse.phpt | 4 +- .../Element_setAttribute_with_namespace.phpt | 4 +- ...lement_setAttribute_without_namespace.phpt | 4 +- .../tests/modern/spec/Element_tagName.phpt | 6 +- .../modern/spec/Element_toggleAttribute.phpt | 2 +- .../spec/HTMLDocument_createCDATASection.phpt | 6 +- ...LDocument_createProcessingInstruction.phpt | 4 +- .../HTMLDocument_getElementsByTagName.phpt | 2 +- .../spec/HTMLDocument_importNode_01.phpt | 4 +- .../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 | 4 +- .../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 | 4 +- .../modern/spec/Node_insertBefore_02.phpt | 4 +- .../modern/spec/Node_isDefaultNamespace.phpt | 4 +- .../modern/spec/Node_isEqualNode_01.phpt | 6 +- .../modern/spec/Node_isEqualNode_02.phpt | 6 +- .../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 | 4 +- .../spec/Node_replaceChild_edge_cases.phpt | 6 +- ...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 +- .../append_text_nodes_invalid_hierarchy.phpt | 2 +- .../spec/attribute_entity_expansion.phpt | 2 +- ext/dom/tests/modern/spec/bug47530.phpt | 18 +- ext/dom/tests/modern/spec/bug47847.phpt | 4 +- ext/dom/tests/modern/spec/bug55294.phpt | 4 +- ext/dom/tests/modern/spec/bug81468.phpt | 8 +- .../clone_conflicting_namespace_prefix.phpt | 2 +- ext/dom/tests/modern/spec/clone_document.phpt | 2 +- ext/dom/tests/modern/spec/clone_dtd_node.phpt | 2 +- .../modern/spec/clone_entity_reference.phpt | 4 +- .../tests/modern/spec/clone_text_nodes.phpt | 2 +- .../modern/spec/default_namespace_move.phpt | 4 +- .../tests/modern/spec/documentURI_URL.phpt | 4 +- .../tests/modern/spec/dom_parsing_gh44.phpt | 2 +- .../tests/modern/spec/dom_parsing_gh45.phpt | 2 +- .../tests/modern/spec/dom_parsing_gh47.phpt | 2 +- .../modern/spec/dom_parsing_gh47_bis.phpt | 4 +- ext/dom/tests/modern/spec/gh11404_1.phpt | 2 +- ext/dom/tests/modern/spec/gh11404_2.phpt | 4 +- .../modern/spec/import_entity_reference.phpt | 6 +- .../modern/spec/import_of_lone_attribute.phpt | 4 +- ...rt_of_namepace_conflicting_attributes.phpt | 4 +- .../modern/spec/pre_insertion_validation.phpt | 6 +- .../spec/reconciliation_of_attributes.phpt | 2 +- .../spec/reconciliation_of_elements.phpt | 2 +- .../serialize_default_and_prefixed_xmlns.phpt | 2 +- .../spec/serialize_element_unqualified.phpt | 4 +- .../serialize_non_default_empty_xmlns.phpt | 4 +- .../modern/spec/serialize_xml_attribute.phpt | 2 +- .../serialize_xml_namespace_on_elements.phpt | 2 +- .../modern/spec/serialize_xml_ns_decl.phpt | 2 +- .../modern/spec/textContent_edge_cases.phpt | 4 +- ext/dom/tests/modern/spec/text_merging.phpt | 2 +- .../spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt | 2 +- .../modern/spec/xml_serialize_formatting.phpt | 2 +- ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt | 10 +- ...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 | 4 +- .../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 | 4 +- .../modern/xml/XMLDocument_fromString_01.phpt | 8 +- .../modern/xml/XMLDocument_fromString_02.phpt | 4 +- .../modern/xml/XMLDocument_fromString_03.phpt | 8 +- .../modern/xml/XMLDocument_fromString_04.phpt | 4 +- ...MLDocument_node_ownerDocument_for_XML.phpt | 6 +- .../modern/xml/XMLDocument_saveXML_node.phpt | 4 +- .../tests/modern/xml/XMLDocument_xpath.phpt | 16 +- .../modern/xml/XMLDocument_xpath_errors.phpt | 8 +- ext/dom/tests/modern/xml/bug48339.phpt | 2 +- .../tests/modern/xml/simplexml_interop.phpt | 8 +- .../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 +- ...LTProcessor_namespace_mapper_lifetime.phpt | 6 +- .../auto_registration_namespaces_new_dom.phpt | 4 +- 247 files changed, 1207 insertions(+), 1207 deletions(-) diff --git a/ext/dom/characterdata.c b/ext/dom/characterdata.c index 3e7029e8f1bd..40e1040b4b2d 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 9609fce4ffbb..3b2a6643b344 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 b031e793bbc4..cbefca1883ad 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 @@ PHP_METHOD(DOM_Implementation, createDocument) /* }}} 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 1b9038ef429a..348c669e1b4a 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 3b74074559a2..c207a87d159a 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 fe0a447fbb29..48431a9ecf6b 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 @@ PHP_METHOD(DOM_HTMLDocument, createFromString) 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 882ba7f89d2e..c2ceff5d526e 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 d85c0be56dc9..9121efaac071 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 692499407ccf..f989e0f2d22e 100644 --- a/ext/dom/php_dom.stub.php +++ b/ext/dom/php_dom.stub.php @@ -889,7 +889,7 @@ public function prepend(...$nodes): void {} public function replaceChildren(...$nodes): void {} } - /** @alias DOM\DOMException */ + /** @alias Dom\DOMException */ final class DOMException extends Exception { /** @@ -1025,7 +1025,7 @@ public static function quote(string $str): string {} function dom_import_simplexml(object $node): DOMElement {} } -namespace DOM +namespace Dom { /** * @var int @@ -1330,7 +1330,7 @@ public function hasAttributeNS(?string $namespace, string $localName): bool {} 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 {} @@ -1525,9 +1525,9 @@ abstract class Document extends Node implements ParentNode 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 {} @@ -1591,7 +1591,7 @@ public static function createFromFile(string $path, int $options = 0, ?string $o public static function createFromString(string $source, int $options = 0, ?string $overrideEncoding = null): HTMLDocument {} - /** @implementation-alias DOM\XMLDocument::saveXML */ + /** @implementation-alias Dom\XMLDocument::saveXML */ public function saveXML(?Node $node = null, int $options = 0): string|false {} /** @implementation-alias DOMDocument::save */ diff --git a/ext/dom/php_dom_arginfo.h b/ext/dom/php_dom_arginfo.h index dbb8109f4481..266646bf8600 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: 3225ca142d9e2ad08757e19ab819392f24371a08 */ 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 f38ea1227ca3..e761bfa66d85 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 dee005d8db99..03ac2ab19585 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 e9a7058c3414..bf761438ac88 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 79f92439bd5f..9290e8954d9e 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-- ]> @@ -15,7 +15,7 @@ XML); $el = $xml->documentElement->firstChild; echo $xml->saveXML(), "\n"; -$html = DOM\HTMLDocument::createEmpty(); +$html = Dom\HTMLDocument::createEmpty(); $html->append($html->importNode($el, true)); echo $html->saveHTML(), "\n"; diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt index 05a348df0ce2..d38aebac834b 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument GB18030 encoding test +Dom\HTMLDocument GB18030 encoding test --EXTENSIONS-- dom --FILE-- charset); $dom->documentElement->firstChild->nextElementSibling->textContent = "é"; $output = $dom->saveHTML(); 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 84e835c1d8d8..822f861be957 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt @@ -1,11 +1,11 @@ --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(); 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 315384345a4b..6e147a77f1fd 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt @@ -1,11 +1,11 @@ --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(); 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 8b0183a9f055..8d9e0041921d 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt @@ -1,11 +1,11 @@ --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(); 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 c23ca5a9a47e..62e400360da9 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt @@ -1,11 +1,11 @@ --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(); diff --git a/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt index 98d313a55402..620fbcb664d2 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt @@ -1,11 +1,11 @@ --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(); 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 8a4271c3a0a8..5c602b87f23e 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 ef1aca0f9f6f..6b87f1d4714a 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 d68e0131df9d..75984d6acd97 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 13fbdc684b33..b9d33e3e579b 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,7 +7,7 @@ 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"); 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 c8e9736533ad..f3053256b095 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,12 +1,12 @@ --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 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 5e66a0b0411c..5cedb65fc8e2 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,12 +1,12 @@ --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 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 1bde3303269b..66c8bfb0676b 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,12 +1,12 @@ --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 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 0c44159c8b6c..3d9d2336939b 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,7 +9,7 @@ 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"; 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 ea5962a1ae6a..cd97a8a60da6 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,12 +1,12 @@ --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 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 4f60cccaba15..88cc31c3c13c 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,7 +9,7 @@ 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"; 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 c5c5aec382d5..f7cf6a205259 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); @@ -26,7 +26,7 @@ var_dump($dom->inputEncoding); 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 7885f68ecf50..0de3da671597 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 f431b6cd3190..438bfdafdd92 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument fallback encoding test +Dom\HTMLDocument fallback encoding test --EXTENSIONS-- dom --FILE-- inputEncoding); echo $dom->saveHTML(); 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 737f6aca4285..4f351d86d4d6 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 e68d1ede3863..571f94e4d340 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 82883e4ceec0..97caa7ac5547 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 e5420d06b972..7126c09553c4 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 a24ebb7bf341..76375afe129c 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 19759c95677e..1c90d5a33814 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 6ae7589270b7..91604c5fab82 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 3eb1f0cae8af..70be58a906ba 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 859212a08670..7a4d2d32797d 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 02514e54e07e..b4c7d0c341e4 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(""); ?> --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 d2356068b4ec..6a68095dcbdc 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 08e70cfa4301..2931aebab28f 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 379a3da4b2fa..c356cf7ba921 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 122bcc8aaaae..5ab1a3293c1f 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 d93dae79c650..052d37bbed7c 100644 --- a/ext/dom/tests/modern/html/interactions/noscript.phpt +++ b/ext/dom/tests/modern/html/interactions/noscript.phpt @@ -7,7 +7,7 @@ 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"; @@ -15,7 +15,7 @@ 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"; diff --git a/ext/dom/tests/modern/html/interactions/without_constructor.phpt b/ext/dom/tests/modern/html/interactions/without_constructor.phpt index 606ebfb8b286..96cd131b0391 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 b666167d2b4d..9b11aaaf648c 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"; 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 7562e14beb1a..4a4add549e17 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 4b370b417dd5..8c5a32f342c8 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 73e55c1f09aa..96b054168a2d 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 0e9e2b60e2bc..833455baf610 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"; ?> --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 8bb91cf8ee7b..13d37d3fc13a 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"; ?> --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 6e79c2f12a94..37cf161ec045 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 9c77ebeadd4d..4148a7296c7d 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,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - parser warning 01 +Dom\HTMLDocument::createFromFile() - parser warning 01 --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; ?> 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 9d3dd944e7ba..23ebaccd71ee 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,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - parser warning 02 +Dom\HTMLDocument::createFromFile() - parser warning 02 --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; ?> 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 f5cada6c18f2..51c09213d7a3 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,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::createFromFile() - parser warning 03 +Dom\HTMLDocument::createFromFile() - parser warning 03 --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; ?> 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 3de37d94890b..4cca3daad1a6 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 78e07b72bbef..c31541d657bb 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 e2e24fdba272..c45ef9d3b9d2 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,14 +34,14 @@ stream_wrapper_register("euw", EchoUriWrapper::class, 0); echo "--- Stream wrapper case ---\n"; -$dom = DOM\HTMLDocument::createFromFile("euw://

hello

"); +$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) . "<>"); +$dom = Dom\HTMLDocument::createFromFile("euw://" . str_repeat("\n", 4096-22) . "<>"); echo $dom->saveHTML(), "\n"; foreach (libxml_get_errors() as $error) { @@ -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 102f4df84c3e..bf18ffd1d021 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 c702c48ba3f6..ec77fd141dfa 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 26f322f7127e..e5f567feb0eb 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,11 +1,11 @@ --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); +$dom = Dom\HTMLDocument::createFromString("
foo
", LIBXML_HTML_NOIMPLIED); echo $dom->saveHTML(); ?> 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 fde8f40b90b0..aa75fffbc676 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,19 +7,19 @@ dom echo "--- No elements ---\n"; -$dom = DOM\HTMLDocument::createFromString("", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); +$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); +$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); +$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); 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 898ae43fabb2..233533f37611 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\HTMLDocument::createFromString() - empty document +Dom\HTMLDocument::createFromString() - empty document --EXTENSIONS-- dom --FILE-- saveHTML(), "\n"; ?> 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 3e26fc35b950..11246a7fabff 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,12 +1,12 @@ --TEST-- -DOM\HTMLDocument::createFromString()/createFromFile() with LIBXML_HTML_NOIMPLIED +Dom\HTMLDocument::createFromString()/createFromFile() with LIBXML_HTML_NOIMPLIED --EXTENSIONS-- dom --FILE-- saveHTML(); echo $output, "\n"; @@ -14,7 +14,7 @@ function test(string $html) { $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); + $dom = Dom\HTMLDocument::createFromFile(__DIR__."/DOM_HTMLDocument_loadHTML_LIBXML_HTML_NOIMPLIED_input.tmp", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); var_dump($output === $dom->saveHTML()); } 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 2d1ecab2cb1a..8451be111a1f 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 b4a778a68d3e..5c7bb61c4684 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,7 +21,7 @@ $html = << HTML; -$dom = DOM\HTMLDocument::createFromString($html); +$dom = Dom\HTMLDocument::createFromString($html); echo $dom->saveHTML(), "\n"; ?> 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 f140b8b1f349..13e5340e9b49 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-- @@ -22,7 +22,7 @@ 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 4469ee890ee7..6f519e7683ab 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"; ?> --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
'); +$dom = Dom\XMLDocument::createFromString(''); $attributes = $dom->documentElement->attributes; try { @@ -16,4 +16,4 @@ try { ?> --EXPECT-- -Cannot append to DOM\NamedNodeMap +Cannot append to Dom\NamedNodeMap diff --git a/ext/dom/tests/modern/spec/NamedNodeMap_getNamedItem.phpt b/ext/dom/tests/modern/spec/NamedNodeMap_getNamedItem.phpt index ab6f7e027d34..0e7d021f4e5b 100644 --- a/ext/dom/tests/modern/spec/NamedNodeMap_getNamedItem.phpt +++ b/ext/dom/tests/modern/spec/NamedNodeMap_getNamedItem.phpt @@ -5,7 +5,7 @@ dom --FILE-- @@ -36,7 +36,7 @@ var_dump($attributes["xmlns:foo"]->value); echo "--- On XML document ---\n"; -$dom = DOM\XMLDocument::createEmpty(); +$dom = Dom\XMLDocument::createEmpty(); $dom->appendChild($dom->importNode($body, true)); $body = $dom->getElementsByTagName('body')->item(0); diff --git a/ext/dom/tests/modern/spec/NodeList_dimensions.phpt b/ext/dom/tests/modern/spec/NodeList_dimensions.phpt index a20e1c98ed84..f5fe6480e641 100644 --- a/ext/dom/tests/modern/spec/NodeList_dimensions.phpt +++ b/ext/dom/tests/modern/spec/NodeList_dimensions.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); $children = $dom->documentElement->childNodes; $test_values = [-1, 0, 1, 2, 3, 1.0, 1.1, true, null, "0", "1", "", "foo"]; @@ -58,9 +58,9 @@ string(1) "b" bool(true) bool(false) --- true --- -Cannot access offset of type bool on DOM\NodeList +Cannot access offset of type bool on Dom\NodeList --- null --- -Cannot access offset of type null on DOM\NodeList +Cannot access offset of type null on Dom\NodeList --- "0" --- string(1) "a" bool(true) @@ -70,6 +70,6 @@ string(1) "b" bool(true) bool(false) --- "" --- -Cannot access offset of type string on DOM\NodeList +Cannot access offset of type string on Dom\NodeList --- "foo" --- -Cannot access offset of type string on DOM\NodeList +Cannot access offset of type string on Dom\NodeList diff --git a/ext/dom/tests/modern/spec/NodeList_dimensions_errors.phpt b/ext/dom/tests/modern/spec/NodeList_dimensions_errors.phpt index 9c0b10e6f754..bfb882823b78 100644 --- a/ext/dom/tests/modern/spec/NodeList_dimensions_errors.phpt +++ b/ext/dom/tests/modern/spec/NodeList_dimensions_errors.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); $children = $dom->documentElement->childNodes; try { @@ -16,4 +16,4 @@ try { ?> --EXPECT-- -Cannot append to DOM\NodeList +Cannot append to Dom\NodeList diff --git a/ext/dom/tests/modern/spec/Node_appendChild_attribute.phpt b/ext/dom/tests/modern/spec/Node_appendChild_attribute.phpt index c18e2527c020..3e3a5674c6a6 100644 --- a/ext/dom/tests/modern/spec/Node_appendChild_attribute.phpt +++ b/ext/dom/tests/modern/spec/Node_appendChild_attribute.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::appendChild() with attribute should fail +Dom\Node::appendChild() with attribute should fail --EXTENSIONS-- dom --FILE-- createElement('foo'); $attr = $dom->createAttribute('bar'); diff --git a/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt b/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt index 86b90e160871..64ab835940e0 100644 --- a/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt +++ b/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::appendChild() with fragment of multiple elements +Dom\Node::appendChild() with fragment of multiple elements --EXTENSIONS-- dom --FILE-- createDocumentFragment(); $fragment->appendChild($dom->createElement('foo')); diff --git a/ext/dom/tests/modern/spec/Node_appendChild_invalid_parent.phpt b/ext/dom/tests/modern/spec/Node_appendChild_invalid_parent.phpt index 6f2e3f3762a0..af99bfc38057 100644 --- a/ext/dom/tests/modern/spec/Node_appendChild_invalid_parent.phpt +++ b/ext/dom/tests/modern/spec/Node_appendChild_invalid_parent.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::appendChild() invalid parent +Dom\Node::appendChild() invalid parent --EXTENSIONS-- dom --FILE-- createTextNode('Hello World'); $cdata = $dom->createCDATASection('Hello World'); diff --git a/ext/dom/tests/modern/spec/Node_baseURI.phpt b/ext/dom/tests/modern/spec/Node_baseURI.phpt index 80a07fa280db..b262bda51f65 100644 --- a/ext/dom/tests/modern/spec/Node_baseURI.phpt +++ b/ext/dom/tests/modern/spec/Node_baseURI.phpt @@ -5,14 +5,14 @@ dom --FILE-- appendChild($dom->createElement('html')); var_dump($html->baseURI); -$dom = DOM\HTMLDocument::createFromFile(__DIR__ . "/../../empty.html", LIBXML_NOERROR); +$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/../../empty.html", LIBXML_NOERROR); var_dump($dom->documentElement->baseURI); -$dom = DOM\HTMLDocument::createFromString(<< diff --git a/ext/dom/tests/modern/spec/Node_cloneNode_copy_document_properties.phpt b/ext/dom/tests/modern/spec/Node_cloneNode_copy_document_properties.phpt index a6928b4a697e..7894aa0a3131 100644 --- a/ext/dom/tests/modern/spec/Node_cloneNode_copy_document_properties.phpt +++ b/ext/dom/tests/modern/spec/Node_cloneNode_copy_document_properties.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::cloneNode() should copy the document properties +Dom\Node::cloneNode() should copy the document properties --EXTENSIONS-- dom --FILE-- cloneNode(); $dom->appendChild($dom->createElement("foo")); diff --git a/ext/dom/tests/modern/spec/Node_getRootNode.phpt b/ext/dom/tests/modern/spec/Node_getRootNode.phpt index 826a83055fee..b63ce50f98eb 100644 --- a/ext/dom/tests/modern/spec/Node_getRootNode.phpt +++ b/ext/dom/tests/modern/spec/Node_getRootNode.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\Node::getRootNode() +Dom\Node::getRootNode() --EXTENSIONS-- dom --FILE-- @@ -7,7 +7,7 @@ dom // Same as DOMNode_getRootNode.phpt but for modern DOM -$dom = DOM\XMLDocument::createFromString(''); +$dom = Dom\XMLDocument::createFromString(''); var_dump($dom->documentElement->firstElementChild->getRootNode() === $dom); $p = $dom->createElement('p'); diff --git a/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt b/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt index 7672e8e9719a..3def93dc1863 100644 --- a/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt +++ b/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::insertBefore() with DocumentFragment and dtd +Dom\Node::insertBefore() with DocumentFragment and dtd --EXTENSIONS-- dom --FILE-- '); +$dom = Dom\HTMLDocument::createFromString(''); $dom->documentElement->remove(); $fragment = $dom->createDocumentFragment(); diff --git a/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt b/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt index aa252e7eed09..917324cf15b7 100644 --- a/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt +++ b/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::insertBefore() with DocumentFragment and a document element +Dom\Node::insertBefore() with DocumentFragment and a document element --EXTENSIONS-- dom --FILE-- '); +$dom = Dom\HTMLDocument::createFromString(''); $fragment = $dom->createDocumentFragment(); $fragment->appendChild($dom->createElement('a')); diff --git a/ext/dom/tests/modern/spec/Node_isDefaultNamespace.phpt b/ext/dom/tests/modern/spec/Node_isDefaultNamespace.phpt index 56eee90553c5..cd89174df7b5 100644 --- a/ext/dom/tests/modern/spec/Node_isDefaultNamespace.phpt +++ b/ext/dom/tests/modern/spec/Node_isDefaultNamespace.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::isDefaultNamespace() +Dom\Node::isDefaultNamespace() --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt b/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt index 51b5648d8a1b..0c462369893b 100644 --- a/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt +++ b/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::isEqualNode edge cases 01 +Dom\Node::isEqualNode edge cases 01 --EXTENSIONS-- dom --FILE-- append($dom->createElement("container")); $e1 = $dom->documentElement->appendChild($dom->createElementNS("urn:example1", "example:foo")); $e1->after("\n"); @@ -14,7 +14,7 @@ $e2 = $dom->documentElement->appendChild($dom->createElementNS("urn:example2", " $e2->setAttributeNS("urn:example2", "example2:bar", "baz1"); $e2->setAttributeNS("urn:example1", "example2:bar", "baz2"); -$dom2 = DOM\HTMLDocument::createFromString("" . $dom->saveHTML()); +$dom2 = Dom\HTMLDocument::createFromString("" . $dom->saveHTML()); // Shouldn't match because the attributes can't roundtrip. var_dump($dom->saveHTML($dom->getElementsByTagName("container")[0])); diff --git a/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt b/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt index bc7f23a7d987..d12b700cd583 100644 --- a/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt +++ b/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::isEqualNode edge cases 02 +Dom\Node::isEqualNode edge cases 02 --EXTENSIONS-- dom --FILE-- append($dom->createElement("container")); $e1 = $dom->documentElement->appendChild($dom->createElement("foo1")); $e1->after("\n"); @@ -17,7 +17,7 @@ $e2->setAttribute("bar2", "baz"); $e2->setAttributeNodeNS($child = $dom->createAttributeNS("http://example.com", "foo:bar")); $e2->removeAttributeNode($child); -$dom2 = DOM\HTMLDocument::createFromString("" . $dom->saveHTML()); +$dom2 = Dom\HTMLDocument::createFromString("" . $dom->saveHTML()); var_dump($dom->saveHTML($dom->getElementsByTagName("container")[0])); var_dump($dom2->saveHTML($dom2->getElementsByTagName("container")[0])); diff --git a/ext/dom/tests/modern/spec/Node_lookupNamespaceURI.phpt b/ext/dom/tests/modern/spec/Node_lookupNamespaceURI.phpt index c4e1015144d9..9512891709af 100644 --- a/ext/dom/tests/modern/spec/Node_lookupNamespaceURI.phpt +++ b/ext/dom/tests/modern/spec/Node_lookupNamespaceURI.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::lookupNamespaceURI() +Dom\Node::lookupNamespaceURI() --EXTENSIONS-- dom --FILE-- @@ -56,7 +56,7 @@ var_dump($body->lookupNamespaceURI(NULL)); var_dump($body->lookupNamespaceURI("a")); echo "--- lookup in empty document ---\n"; -$dom = DOM\HTMLDocument::createEmpty(); +$dom = Dom\HTMLDocument::createEmpty(); var_dump($dom->lookupNamespaceURI("")); var_dump($dom->lookupNamespaceURI(NULL)); var_dump($dom->lookupNamespaceURI("a")); diff --git a/ext/dom/tests/modern/spec/Node_lookupPrefix.phpt b/ext/dom/tests/modern/spec/Node_lookupPrefix.phpt index 4bb52004027a..913ede69cec1 100644 --- a/ext/dom/tests/modern/spec/Node_lookupPrefix.phpt +++ b/ext/dom/tests/modern/spec/Node_lookupPrefix.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::lookupPrefix() +Dom\Node::lookupPrefix() --EXTENSIONS-- dom --FILE-- diff --git a/ext/dom/tests/modern/spec/Node_nodeName.phpt b/ext/dom/tests/modern/spec/Node_nodeName.phpt index 84343731a00a..ac669b6ec906 100644 --- a/ext/dom/tests/modern/spec/Node_nodeName.phpt +++ b/ext/dom/tests/modern/spec/Node_nodeName.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\Node::$nodeName +Dom\Node::$nodeName --EXTENSIONS-- dom --FILE-- @@ -7,7 +7,7 @@ dom echo "--- For HTML document ---\n"; -$dom = DOM\HTMLDocument::createEmpty(); +$dom = Dom\HTMLDocument::createEmpty(); $dom->appendChild($dom->createElement('container')); var_dump($dom->createAttributeNS('http://www.w3.org/1999/xhtml', 'html')->nodeName); @@ -24,7 +24,7 @@ var_dump($dom->createElementNS(null, 'html')->nodeName); echo "--- For XML document ---\n"; -$dom = DOM\XMLDocument::createEmpty(); +$dom = Dom\XMLDocument::createEmpty(); $dom->appendChild($dom->createElement('container')); var_dump($dom->createAttributeNS('http://www.w3.org/1999/xhtml', 'html')->nodeName); diff --git a/ext/dom/tests/modern/spec/Node_nodeValue_element.phpt b/ext/dom/tests/modern/spec/Node_nodeValue_element.phpt index 749614ea9fc7..a3e23b1381d4 100644 --- a/ext/dom/tests/modern/spec/Node_nodeValue_element.phpt +++ b/ext/dom/tests/modern/spec/Node_nodeValue_element.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::$nodeValue on an element +Dom\Node::$nodeValue on an element --EXTENSIONS-- dom --FILE-- createElement("foo"); $foo->textContent = "bar"; var_dump($foo->nodeValue); diff --git a/ext/dom/tests/modern/spec/Node_normalize.phpt b/ext/dom/tests/modern/spec/Node_normalize.phpt index 04848e5d019a..7233ff4c5bd8 100644 --- a/ext/dom/tests/modern/spec/Node_normalize.phpt +++ b/ext/dom/tests/modern/spec/Node_normalize.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\Node::normalize() +Dom\Node::normalize() --EXTENSIONS-- dom --FILE-- @@ -19,7 +19,7 @@ dom * Normalize title. Calculate the number of title text nodes (1). */ -$doc = DOM\XMLDocument::createEmpty(); +$doc = Dom\XMLDocument::createEmpty(); $root = $doc->createElement('book'); $doc->appendChild($root); diff --git a/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt b/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt index 03b75ede7f39..47d8edf7fe2d 100644 --- a/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt +++ b/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::normalize() edge case +Dom\Node::normalize() edge case --EXTENSIONS-- dom --FILE-- appendChild($doc->createElement("container")); $container->appendChild($doc->createTextNode("")); diff --git a/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt b/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt index e76fdc62ee73..1d50f9724bed 100644 --- a/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt +++ b/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\Node::replaceChild() edge cases +Dom\Node::replaceChild() edge cases --EXTENSIONS-- dom --FILE-- "); +$dom = Dom\HTMLDocument::createFromString(""); $dom->documentElement->remove(); $parent = $dom->createElement("parent"); $child = $dom->createElement("child"); @@ -46,7 +46,7 @@ try { echo "--- Invalid child to replace with ---\n"; try { - $entityReference = $dom->importNode(DOM\XMLDocument::createEmpty()->createEntityReference("foo")); + $entityReference = $dom->importNode(Dom\XMLDocument::createEmpty()->createEntityReference("foo")); $parent->replaceChild($entityReference, $child); } catch (DOMException $e) { echo $e->getMessage(), "\n"; diff --git a/ext/dom/tests/modern/spec/ParentNode_append_exception_consistency.phpt b/ext/dom/tests/modern/spec/ParentNode_append_exception_consistency.phpt index a8a65ca7bc58..67a964a7ec51 100644 --- a/ext/dom/tests/modern/spec/ParentNode_append_exception_consistency.phpt +++ b/ext/dom/tests/modern/spec/ParentNode_append_exception_consistency.phpt @@ -4,7 +4,7 @@ Consistency of parent node after exception in ParentNode::append() dom --FILE-- createDocumentFragment(); $fragment->append($element = $dom->createElement("foo")); $fragment->append($dom->createElement("bar")); @@ -18,7 +18,7 @@ var_dump($element->parentNode); ?> --EXPECT-- Exception: Cannot have more than one element child in a document -object(DOM\DocumentFragment)#2 (17) { +object(Dom\DocumentFragment)#2 (17) { ["firstElementChild"]=> string(22) "(object value omitted)" ["lastElementChild"]=> diff --git a/ext/dom/tests/modern/spec/ParentNode_edge_case.phpt b/ext/dom/tests/modern/spec/ParentNode_edge_case.phpt index 5df27d5a2765..367f1437c67d 100644 --- a/ext/dom/tests/modern/spec/ParentNode_edge_case.phpt +++ b/ext/dom/tests/modern/spec/ParentNode_edge_case.phpt @@ -5,7 +5,7 @@ dom --FILE-- createElement('container'); try { $container->append($dom); diff --git a/ext/dom/tests/modern/spec/ParentNode_hierarchy_text_nodes.phpt b/ext/dom/tests/modern/spec/ParentNode_hierarchy_text_nodes.phpt index a4ebc5945070..f81450ca261e 100644 --- a/ext/dom/tests/modern/spec/ParentNode_hierarchy_text_nodes.phpt +++ b/ext/dom/tests/modern/spec/ParentNode_hierarchy_text_nodes.phpt @@ -5,7 +5,7 @@ dom --FILE-- append("bar"); diff --git a/ext/dom/tests/modern/spec/ProcessingInstruction_data_manipulation.phpt b/ext/dom/tests/modern/spec/ProcessingInstruction_data_manipulation.phpt index 498561a8b788..33198c8552aa 100644 --- a/ext/dom/tests/modern/spec/ProcessingInstruction_data_manipulation.phpt +++ b/ext/dom/tests/modern/spec/ProcessingInstruction_data_manipulation.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); $pi = $dom->documentElement->firstChild; diff --git a/ext/dom/tests/modern/spec/Text_splitText_edge_case.phpt b/ext/dom/tests/modern/spec/Text_splitText_edge_case.phpt index 5b46a2ba8dcf..4bd79b9b4a8b 100644 --- a/ext/dom/tests/modern/spec/Text_splitText_edge_case.phpt +++ b/ext/dom/tests/modern/spec/Text_splitText_edge_case.phpt @@ -1,10 +1,10 @@ --TEST-- -DOM\Text:splitText() edge case +Dom\Text:splitText() edge case --EXTENSIONS-- dom --FILE-- createTextNode('Hello World!'); var_dump($text->splitText(5)->wholeText); try { @@ -20,5 +20,5 @@ try { ?> --EXPECT-- string(7) " World!" -DOM\Text::splitText(): Argument #1 ($offset) must be greater than or equal to 0 +Dom\Text::splitText(): Argument #1 ($offset) must be greater than or equal to 0 Index Size Error diff --git a/ext/dom/tests/modern/spec/XMLDocument_getElementsByTagName.phpt b/ext/dom/tests/modern/spec/XMLDocument_getElementsByTagName.phpt index ca521c6ff2cb..4fa06f5e88d4 100644 --- a/ext/dom/tests/modern/spec/XMLDocument_getElementsByTagName.phpt +++ b/ext/dom/tests/modern/spec/XMLDocument_getElementsByTagName.phpt @@ -8,7 +8,7 @@ dom require __DIR__ . "/node_list_dump.inc"; require __DIR__ . "/create_element_util.inc"; -$dom = DOM\XMLDocument::createEmpty(); +$dom = Dom\XMLDocument::createEmpty(); $container = $dom->appendChild(createElement($dom, "container")); $container->appendChild(createElement($dom, "HTML", "1")); $container->appendChild(createElementNS($dom, "http://www.w3.org/1999/xhtml", "html", "2")); diff --git a/ext/dom/tests/modern/spec/XMLDocument_version.phpt b/ext/dom/tests/modern/spec/XMLDocument_version.phpt index accc06ce3d77..82f38839ea27 100644 --- a/ext/dom/tests/modern/spec/XMLDocument_version.phpt +++ b/ext/dom/tests/modern/spec/XMLDocument_version.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); var_dump($dom->xmlVersion); foreach (['0.1', '1.0', '1.1', '', 'foo'] as $version) { diff --git a/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt b/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt index 5b66c030a4f1..6a01beca15c8 100644 --- a/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt +++ b/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt @@ -5,7 +5,7 @@ dom --FILE-- append("foo", "bar", "baz", $dom); diff --git a/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt b/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt index 19a8f91024eb..286852d5bd07 100644 --- a/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt +++ b/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt @@ -4,7 +4,7 @@ Attribute entity expansion dom --FILE-- createElement('elt'); $doc->appendChild($elt); $elt->setAttribute('a','&'); diff --git a/ext/dom/tests/modern/spec/bug47530.phpt b/ext/dom/tests/modern/spec/bug47530.phpt index 16d3078d07b9..0f8888ffeb37 100644 --- a/ext/dom/tests/modern/spec/bug47530.phpt +++ b/ext/dom/tests/modern/spec/bug47530.phpt @@ -6,7 +6,7 @@ dom '); + $doc = Dom\XMLDocument::createFromString(''); $root = $doc->documentElement; $frag = $doc->createDocumentFragment(); $frag->appendChild($doc->importNode($root->firstChild)); @@ -15,7 +15,7 @@ function test_document_fragment_with_import() { } function test_document_fragment_without_import() { - $doc = DOM\XMLDocument::createFromString(''); + $doc = Dom\XMLDocument::createFromString(''); $frag = $doc->createDocumentFragment(); $frag->appendChild($doc->createElementNS('https://php.net/bar', 'bar')); $frag->appendChild($doc->createElementNS('', 'bar')); @@ -40,9 +40,9 @@ function test_document_import() { XML; - $dom = DOM\XMLDocument::createFromString($xml); + $dom = Dom\XMLDocument::createFromString($xml); - $dom2 = DOM\XMLDocument::createEmpty(); + $dom2 = Dom\XMLDocument::createEmpty(); $importedNode = $dom2->importNode($dom->documentElement, true); $dom2->appendChild($importedNode); @@ -61,9 +61,9 @@ function test_partial_document_import() { XML; - $dom = DOM\XMLDocument::createFromString($xml); + $dom = Dom\XMLDocument::createFromString($xml); - $dom2 = DOM\XMLDocument::createFromString(''); + $dom2 = Dom\XMLDocument::createFromString(''); $importedNode = $dom2->importNode($dom->documentElement, true); $dom2->documentElement->appendChild($importedNode); @@ -75,8 +75,8 @@ XML; } function test_document_import_with_attributes() { - $dom = DOM\XMLDocument::createFromString('

'); - $dom2 = DOM\XMLDocument::createFromString('
'); + $dom = Dom\XMLDocument::createFromString('

'); + $dom2 = Dom\XMLDocument::createFromString('
'); $dom2->documentElement->appendChild($dom2->importNode($dom->documentElement->firstChild)); echo $dom2->saveXML(), "\n"; @@ -85,7 +85,7 @@ function test_document_import_with_attributes() { } function test_appendChild_with_shadowing() { - $dom = DOM\XMLDocument::createFromString(''); + $dom = Dom\XMLDocument::createFromString(''); $a = $dom->documentElement->firstElementChild; $b = $a->nextSibling; diff --git a/ext/dom/tests/modern/spec/bug47847.phpt b/ext/dom/tests/modern/spec/bug47847.phpt index 70a0d7bc1358..ae1743eac736 100644 --- a/ext/dom/tests/modern/spec/bug47847.phpt +++ b/ext/dom/tests/modern/spec/bug47847.phpt @@ -4,7 +4,7 @@ Bug #47847 (importNode loses the namespace of an XML element) dom --FILE-- @@ -13,7 +13,7 @@ $fromdom = DOM\XMLDocument::createFromString(<< XML); -$aDOM = DOM\XMLDocument::createEmpty(); +$aDOM = Dom\XMLDocument::createEmpty(); $imported = $aDOM->importNode($fromdom->documentElement->firstElementChild, true); $aDOM->appendChild($imported); diff --git a/ext/dom/tests/modern/spec/bug55294.phpt b/ext/dom/tests/modern/spec/bug55294.phpt index b0acd5f2118c..ebb1ca191b9e 100644 --- a/ext/dom/tests/modern/spec/bug55294.phpt +++ b/ext/dom/tests/modern/spec/bug55294.phpt @@ -5,7 +5,7 @@ dom --FILE-- @@ -14,7 +14,7 @@ $aDOM = DOM\XMLDocument::createFromString(<<importNode($aDOM->getElementsByTagNameNS('http://example.com/A', 'B')->item(0), true); $bDOM->appendChild($node); diff --git a/ext/dom/tests/modern/spec/bug81468.phpt b/ext/dom/tests/modern/spec/bug81468.phpt index 3e0835ece1c4..29b5794fcca1 100644 --- a/ext/dom/tests/modern/spec/bug81468.phpt +++ b/ext/dom/tests/modern/spec/bug81468.phpt @@ -7,23 +7,23 @@ dom // Note: the original expectation from https://bugs.php.net/bug.php?id=81468 isn't *entirely* right -$dom = DOM\XMLDocument::createEmpty(); +$dom = Dom\XMLDocument::createEmpty(); $dom ->appendChild($dom->createElementNS('some:namespace', 'foo')) ->appendChild($dom->createElement('bar')); echo ($xml = $dom->saveXML()), "\n"; -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); $xpath->registerNamespace('n', 'some:namespace'); echo "/n:foo/bar -> ", count($xpath->query('/n:foo/bar')), "\n"; echo "/n:foo/n:bar -> ", count($xpath->query('/n:foo/n:bar')), "\n"; // -$dom = DOM\XMLDocument::createFromString($xml); +$dom = Dom\XMLDocument::createFromString($xml); echo ($xml = $dom->saveXML()), "\n"; -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); $xpath->registerNamespace('n', 'some:namespace'); echo "/n:foo/bar -> ", count($xpath->query('/n:foo/bar')), "\n"; echo "/n:foo/n:bar -> ", count($xpath->query('/n:foo/n:bar')), "\n"; diff --git a/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt b/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt index b2afdfad3b74..ad0c560adb2e 100644 --- a/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt +++ b/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt @@ -5,7 +5,7 @@ dom --FILE-- diff --git a/ext/dom/tests/modern/spec/clone_document.phpt b/ext/dom/tests/modern/spec/clone_document.phpt index 8a855bcb23ce..46f140150824 100644 --- a/ext/dom/tests/modern/spec/clone_document.phpt +++ b/ext/dom/tests/modern/spec/clone_document.phpt @@ -5,7 +5,7 @@ dom --FILE-- diff --git a/ext/dom/tests/modern/spec/clone_dtd_node.phpt b/ext/dom/tests/modern/spec/clone_dtd_node.phpt index 7fd74022eab4..f0b78aec9b14 100644 --- a/ext/dom/tests/modern/spec/clone_dtd_node.phpt +++ b/ext/dom/tests/modern/spec/clone_dtd_node.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\HTMLDocument::createFromString(''); $dt1 = clone $dom->doctype; var_dump($dt1 === $dom->doctype); diff --git a/ext/dom/tests/modern/spec/clone_entity_reference.phpt b/ext/dom/tests/modern/spec/clone_entity_reference.phpt index b42d33e10059..7810a16df4a4 100644 --- a/ext/dom/tests/modern/spec/clone_entity_reference.phpt +++ b/ext/dom/tests/modern/spec/clone_entity_reference.phpt @@ -5,7 +5,7 @@ dom --FILE-- @@ -21,7 +21,7 @@ var_dump($clone->firstChild->firstChild); ?> --EXPECTF-- &foo; -object(DOM\Entity)#4 (17) { +object(Dom\Entity)#4 (17) { ["publicId"]=> NULL ["systemId"]=> diff --git a/ext/dom/tests/modern/spec/clone_text_nodes.phpt b/ext/dom/tests/modern/spec/clone_text_nodes.phpt index 6809dc769005..345383364557 100644 --- a/ext/dom/tests/modern/spec/clone_text_nodes.phpt +++ b/ext/dom/tests/modern/spec/clone_text_nodes.phpt @@ -5,7 +5,7 @@ dom --FILE-- appendChild($dom->createElementNS("urn:a", "a:root")); $root->setAttribute("foo", "bar"); diff --git a/ext/dom/tests/modern/spec/default_namespace_move.phpt b/ext/dom/tests/modern/spec/default_namespace_move.phpt index ee6d43fce82a..c837a8d178d1 100644 --- a/ext/dom/tests/modern/spec/default_namespace_move.phpt +++ b/ext/dom/tests/modern/spec/default_namespace_move.phpt @@ -5,7 +5,7 @@ dom --FILE-- appendChild($dom->createElementNS('urn:a', 'foo:bar')); $child = $root->appendChild($dom->createElementNS('urn:a', 'foo:baz')); $child->setAttributeNS("urn:b", "foo:attr", "value"); @@ -13,7 +13,7 @@ $root->remove(); $dom->appendChild($child); echo $dom->saveXML(), "\n"; -$dom2 = DOM\XMLDocument::createEmpty(); +$dom2 = Dom\XMLDocument::createEmpty(); $child = $dom2->importNode($child, true); $dom2->appendChild($child); echo $dom2->saveXML(), "\n"; diff --git a/ext/dom/tests/modern/spec/documentURI_URL.phpt b/ext/dom/tests/modern/spec/documentURI_URL.phpt index 20ba9bbb0449..3e5a797eae67 100644 --- a/ext/dom/tests/modern/spec/documentURI_URL.phpt +++ b/ext/dom/tests/modern/spec/documentURI_URL.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); var_dump($dom->documentURI); var_dump($dom->URL); @@ -29,7 +29,7 @@ var_dump($dom->URL); --EXPECTF-- string(%d) "%s" string(%d) "%s" -Cannot assign null to property DOM\Document::$URL of type string +Cannot assign null to property Dom\Document::$URL of type string string(0) "" string(0) "" string(%d) "%s" diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt index e25e48a1aa11..9926fcd418e5 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt @@ -5,7 +5,7 @@ dom --FILE-- ')->documentElement; +$root = Dom\XMLDocument::createFromString('')->documentElement; $root->firstChild->setAttributeNS('uri3', 'attr1', 'value1'); echo $root->ownerDocument->saveXML(), "\n"; diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt index bd13c848e0e4..25312ca1916f 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt @@ -5,7 +5,7 @@ dom --FILE-- ')->documentElement; +$root = Dom\XMLDocument::createFromString('')->documentElement; $root->firstChild->setAttributeNS('u1', 'name', 'v'); $attr = $root->firstChild->getAttributeNodeNS("u1", "name"); var_dump($attr->prefix, $attr->namespaceURI); diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt index 16cd4abd4130..552339b91f80 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt @@ -5,7 +5,7 @@ dom --FILE-- diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt index c142702ebda9..498c4dd9ffc3 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt @@ -7,10 +7,10 @@ dom // Adapted from https://github.com/web-platform-tests/wpt/blob/master/domparsing/XMLSerializer-serializeToString.html -$dom = DOM\XMLDocument::createFromString(''); +$dom = Dom\XMLDocument::createFromString(''); echo $dom->saveXML(), "\n"; -$dom = DOM\XMLDocument::createFromString(''); +$dom = Dom\XMLDocument::createFromString(''); echo $dom->saveXML(), "\n"; ?> diff --git a/ext/dom/tests/modern/spec/gh11404_1.phpt b/ext/dom/tests/modern/spec/gh11404_1.phpt index 884f3560c064..7bb61578fa61 100644 --- a/ext/dom/tests/modern/spec/gh11404_1.phpt +++ b/ext/dom/tests/modern/spec/gh11404_1.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom1 = Dom\XMLDocument::createFromString(''); $nodeA = $dom1->createElement('none'); $nodeB = $dom1->createElementNS(null, 'none'); diff --git a/ext/dom/tests/modern/spec/gh11404_2.phpt b/ext/dom/tests/modern/spec/gh11404_2.phpt index 601c2d4e5ac1..b320f467606a 100644 --- a/ext/dom/tests/modern/spec/gh11404_2.phpt +++ b/ext/dom/tests/modern/spec/gh11404_2.phpt @@ -5,9 +5,9 @@ dom --FILE-- '); +$dom1 = Dom\XMLDocument::createFromString(''); -$dom2 = DOM\XMLDocument::createFromString(''); +$dom2 = Dom\XMLDocument::createFromString(''); $dom1->documentElement->append( $dom1->importNode( diff --git a/ext/dom/tests/modern/spec/import_entity_reference.phpt b/ext/dom/tests/modern/spec/import_entity_reference.phpt index 02d51af68aad..0922cce088c8 100644 --- a/ext/dom/tests/modern/spec/import_entity_reference.phpt +++ b/ext/dom/tests/modern/spec/import_entity_reference.phpt @@ -5,7 +5,7 @@ dom --FILE-- @@ -13,7 +13,7 @@ $dom = DOM\XMLDocument::createFromString(<<&foo; XML); -$importer = DOM\XMLDocument::createEmpty(); +$importer = Dom\XMLDocument::createEmpty(); $imported = $importer->importNode($dom->documentElement, true); echo $importer->saveXML($imported), "\n"; @@ -22,7 +22,7 @@ var_dump($imported->firstChild); ?> --EXPECT-- &foo; -object(DOM\EntityReference)#3 (14) { +object(Dom\EntityReference)#3 (14) { ["nodeType"]=> int(5) ["nodeName"]=> diff --git a/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt b/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt index b612c409e043..e4d612654486 100644 --- a/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt +++ b/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt @@ -5,13 +5,13 @@ dom --FILE-- appendChild($dom->createElement('root')); $root->setAttributeNS("urn:a", "a:foo", "bar"); $attr = $root->getAttributeNodeNS("urn:a", "foo"); -$importer = DOM\XMLDocument::createEmpty(); +$importer = Dom\XMLDocument::createEmpty(); $attr = $importer->importNode($attr, true); echo $importer->saveXML($attr), "\n"; diff --git a/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt b/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt index e66ec34efa71..d6fc5f7b1789 100644 --- a/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt +++ b/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt @@ -5,7 +5,7 @@ dom --FILE-- appendChild($dom->createElement('root')); $root->setAttributeNS("urn:a", "a:root1", "bar"); @@ -25,7 +25,7 @@ var_dump($root2->prefix, $root2->namespaceURI); $child->removeAttribute("a:child1"); $root->setAttributeNodeNS($child1); -$importer = DOM\XMLDocument::createEmpty(); +$importer = Dom\XMLDocument::createEmpty(); $imported = $importer->importNode($root, true); echo $importer->saveXML($imported), "\n"; diff --git a/ext/dom/tests/modern/spec/pre_insertion_validation.phpt b/ext/dom/tests/modern/spec/pre_insertion_validation.phpt index b0f426be5cec..ac06f072748a 100644 --- a/ext/dom/tests/modern/spec/pre_insertion_validation.phpt +++ b/ext/dom/tests/modern/spec/pre_insertion_validation.phpt @@ -4,7 +4,7 @@ ParentNode/ChildNode pre-insertion validation dom --FILE-- "); +$dom = Dom\XMLDocument::createFromString(""); $doctype = $dom->doctype; $dom->removeChild($doctype); @@ -70,7 +70,7 @@ echo $dom->saveXML(), "\n"; echo "--- Document fragment edge cases with multiple elements ---\n"; -$dom = DOM\XMLDocument::createEmpty(); +$dom = Dom\XMLDocument::createEmpty(); $fragment = $dom->createDocumentFragment(); $fragment->append($dom->createElement("foo")); $fragment->append($dom->createElement("bar")); @@ -82,7 +82,7 @@ try { echo "--- Document fragment edge cases with text ---\n"; -$dom = DOM\XMLDocument::createEmpty(); +$dom = Dom\XMLDocument::createEmpty(); $fragment = $dom->createDocumentFragment(); $fragment->append("foo"); $fragment->append($dom->createCDATASection("bar")); diff --git a/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt b/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt index be2db111092f..a439dfc8611b 100644 --- a/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt +++ b/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt @@ -5,7 +5,7 @@ dom --FILE-- appendChild($dom->createElement('root')); $root->setAttributeNS("urn:a", "a:root1", "bar"); diff --git a/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt b/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt index f05ad8669c95..41e3729e31f4 100644 --- a/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt +++ b/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt @@ -5,7 +5,7 @@ dom --FILE-- diff --git a/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt b/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt index 3bb61d1f63ae..9d3798eaed46 100644 --- a/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt +++ b/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt @@ -5,7 +5,7 @@ dom --FILE-- diff --git a/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt b/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt index 23ecc1321a82..10cd94441ea9 100644 --- a/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt +++ b/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt @@ -5,10 +5,10 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); echo $dom->saveXML(), "\n"; -$dom = DOM\XMLDocument::createFromString(''); +$dom = Dom\XMLDocument::createFromString(''); $root = $dom->documentElement; $child2 = $root->ownerDocument->createElementNS('u1', 'child2'); $root->firstChild->appendChild($child2); diff --git a/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt b/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt index ab91d3e104b9..b158aabf45e5 100644 --- a/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt +++ b/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt @@ -5,12 +5,12 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); echo $dom->saveXML(), "\n"; ?> --EXPECTF-- -Warning: DOM\XMLDocument::createFromString(): xmlns:a: ' ' is not a valid URI in Entity, line: 1 in %s on line %d +Warning: Dom\XMLDocument::createFromString(): xmlns:a: ' ' is not a valid URI in Entity, line: 1 in %s on line %d diff --git a/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt b/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt index 8fd583c6b5f1..9c0624fbe0ff 100644 --- a/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt +++ b/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt @@ -5,7 +5,7 @@ dom --FILE-- "); +$dom = Dom\XMLDocument::createFromString(""); $root = $dom->documentElement; $root->setAttribute("foo", "<>\"& \t\n\rfoo "); diff --git a/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt b/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt index 7e0ab39c666d..cab862c76ebb 100644 --- a/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt +++ b/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt @@ -5,7 +5,7 @@ dom --FILE-- appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:test")); $root->appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:child")); diff --git a/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt b/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt index dc308b1ca829..895133331666 100644 --- a/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt +++ b/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt @@ -5,7 +5,7 @@ dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); $root = $dom->documentElement; $root->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xml', 'http://www.w3.org/XML/1998/namespace'); echo $dom->saveXML(), "\n"; diff --git a/ext/dom/tests/modern/spec/textContent_edge_cases.phpt b/ext/dom/tests/modern/spec/textContent_edge_cases.phpt index b482ce01c790..f4d9d942f2d5 100644 --- a/ext/dom/tests/modern/spec/textContent_edge_cases.phpt +++ b/ext/dom/tests/modern/spec/textContent_edge_cases.phpt @@ -5,7 +5,7 @@ dom --FILE-- text'); +$dom = Dom\XMLDocument::createFromString('text'); echo "document text content: "; var_dump($dom->textContent); @@ -39,7 +39,7 @@ echo $dom->saveXML(), "\n"; ?> --EXPECT-- document text content: NULL -Cannot modify readonly property DOM\XMLDocument::$textContent +Cannot modify readonly property Dom\XMLDocument::$textContent text node text content: string(4) "text" pi node text content: string(5) "value" text node text content: string(0) "" diff --git a/ext/dom/tests/modern/spec/text_merging.phpt b/ext/dom/tests/modern/spec/text_merging.phpt index b3cd382158b3..d6b46d3e0a9d 100644 --- a/ext/dom/tests/modern/spec/text_merging.phpt +++ b/ext/dom/tests/modern/spec/text_merging.phpt @@ -5,7 +5,7 @@ dom --FILE-- createElement("div"); $span = $dom->createElement("span"); $span->textContent = "qux"; diff --git a/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt b/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt index 9ce097a40d68..d3857e996544 100644 --- a/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt +++ b/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt @@ -5,7 +5,7 @@ dom --FILE--
'); +$doc = Dom\XMLDocument::createFromString('
'); echo $doc->saveXML($doc, LIBXML_NOEMPTYTAG), "\n"; $doc->formatOutput = true; diff --git a/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt b/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt index c704157b5b08..f5b9df6688ce 100644 --- a/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt +++ b/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt @@ -23,7 +23,7 @@ $tests = [ foreach ($tests as $test) { echo "---\n"; - $dom = DOM\XMLDocument::createFromString($test); + $dom = Dom\XMLDocument::createFromString($test); $dom->formatOutput = true; echo $dom->saveXML(), "\n"; } diff --git a/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt b/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt index 29a251003cc9..7b9d5c3ca173 100644 --- a/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt +++ b/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt @@ -5,7 +5,7 @@ dom --FILE-- @@ -26,7 +26,7 @@ var_dump($doctype->notations["GIF"]); ?> --EXPECTF-- -object(DOM\DocumentType)#2 (24) { +object(Dom\DocumentType)#2 (24) { ["name"]=> string(4) "root" ["entities"]=> @@ -78,7 +78,7 @@ object(DOM\DocumentType)#2 (24) { ["textContent"]=> NULL } -object(DOM\Entity)#4 (17) { +object(Dom\Entity)#4 (17) { ["publicId"]=> NULL ["systemId"]=> @@ -114,7 +114,7 @@ object(DOM\Entity)#4 (17) { ["textContent"]=> NULL } -object(DOM\Entity)#3 (17) { +object(Dom\Entity)#3 (17) { ["publicId"]=> string(1) "-" ["systemId"]=> @@ -150,7 +150,7 @@ object(DOM\Entity)#3 (17) { ["textContent"]=> NULL } -object(DOM\Notation)#4 (13) { +object(Dom\Notation)#4 (13) { ["nodeType"]=> int(12) ["nodeName"]=> diff --git a/ext/dom/tests/modern/xml/XMLDocument_createFromFile_empty_input.phpt b/ext/dom/tests/modern/xml/XMLDocument_createFromFile_empty_input.phpt index 9b7be6c2e0cb..7aac2b92f450 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_createFromFile_empty_input.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_createFromFile_empty_input.phpt @@ -4,15 +4,15 @@ XMLDocument::createFromFile() - empty input dom --FILE-- documentURI); fclose($memory); ?> --EXPECTF-- -Warning: DOM\XMLDocument::createFromFile(): Document is empty in php://memory, line: 1 in %s on line %d +Warning: Dom\XMLDocument::createFromFile(): Document is empty in php://memory, line: 1 in %s on line %d Fatal error: Uncaught Exception: XML document is malformed in %s:%d Stack trace: -#0 %s(%d): DOM\XMLDocument::createFromFile('php://memory') +#0 %s(%d): Dom\XMLDocument::createFromFile('php://memory') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/xml/XMLDocument_createFromFile_override_encoding.phpt b/ext/dom/tests/modern/xml/XMLDocument_createFromFile_override_encoding.phpt index 59f96a97a09b..f48c5f7f5a14 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_createFromFile_override_encoding.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_createFromFile_override_encoding.phpt @@ -1,29 +1,29 @@ --TEST-- -DOM\XMLDocument::createFromFile() with overrideEncoding +Dom\XMLDocument::createFromFile() with overrideEncoding --EXTENSIONS-- dom --FILE-- getMessage(), "\n"; } // The override encoding matches with the document encoding attribute -$dom = DOM\XMLDocument::createFromFile(__DIR__ . '/dummy.xml', overrideEncoding: 'UTF-8'); +$dom = Dom\XMLDocument::createFromFile(__DIR__ . '/dummy.xml', overrideEncoding: 'UTF-8'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); // The override encoding mismatches with the document encoding attribute -$dom = DOM\XMLDocument::createFromFile(__DIR__ . '/dummy.xml', overrideEncoding: 'Windows-1252'); +$dom = Dom\XMLDocument::createFromFile(__DIR__ . '/dummy.xml', overrideEncoding: 'Windows-1252'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); ?> --EXPECT-- -DOM\XMLDocument::createFromFile(): Argument #3 ($overrideEncoding) must be a valid document encoding +Dom\XMLDocument::createFromFile(): Argument #3 ($overrideEncoding) must be a valid document encoding string(2) "é" string(5) "UTF-8" string(4) "é" diff --git a/ext/dom/tests/modern/xml/XMLDocument_createFromString_override_encoding.phpt b/ext/dom/tests/modern/xml/XMLDocument_createFromString_override_encoding.phpt index b972aec07cb5..e45f74847dd1 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_createFromString_override_encoding.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_createFromString_override_encoding.phpt @@ -1,29 +1,29 @@ --TEST-- -DOM\XMLDocument::createFromString() with overrideEncoding +Dom\XMLDocument::createFromString() with overrideEncoding --EXTENSIONS-- dom --FILE-- getMessage(), "\n"; } // The override encoding matches with the document encoding attribute -$dom = DOM\XMLDocument::createFromString(file_get_contents(__DIR__ . '/dummy.xml'), overrideEncoding: 'UTF-8'); +$dom = Dom\XMLDocument::createFromString(file_get_contents(__DIR__ . '/dummy.xml'), overrideEncoding: 'UTF-8'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); // The override encoding mismatches with the document encoding attribute -$dom = DOM\XMLDocument::createFromString(file_get_contents(__DIR__ . '/dummy.xml'), overrideEncoding: 'Windows-1252'); +$dom = Dom\XMLDocument::createFromString(file_get_contents(__DIR__ . '/dummy.xml'), overrideEncoding: 'Windows-1252'); var_dump($dom->documentElement->lastChild->textContent); var_dump($dom->charset); ?> --EXPECT-- -DOM\XMLDocument::createFromString(): Argument #3 ($overrideEncoding) must be a valid document encoding +Dom\XMLDocument::createFromString(): Argument #3 ($overrideEncoding) must be a valid document encoding string(2) "é" string(5) "UTF-8" string(4) "é" diff --git a/ext/dom/tests/modern/xml/XMLDocument_debug.phpt b/ext/dom/tests/modern/xml/XMLDocument_debug.phpt index bc277f0d0526..c9ae2afa95fd 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_debug.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_debug.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\XMLDocument debug +Dom\XMLDocument debug --EXTENSIONS-- dom --FILE-- --EXPECT-- -object(DOM\XMLDocument)#1 (29) { +object(Dom\XMLDocument)#1 (29) { ["xmlEncoding"]=> string(5) "UTF-8" ["xmlStandalone"]=> diff --git a/ext/dom/tests/modern/xml/XMLDocument_documentURI.phpt b/ext/dom/tests/modern/xml/XMLDocument_documentURI.phpt index f31c19d0ef65..9b65df787426 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_documentURI.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_documentURI.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\XMLDocument::documentURI +Dom\XMLDocument::documentURI --EXTENSIONS-- dom --FILE-- documentURI); ?> diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_01.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_01.phpt index cc8f3f159b08..3726e9b0a239 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_01.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_01.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\XMLDocument::createEmpty 01 +Dom\XMLDocument::createEmpty 01 --EXTENSIONS-- dom --FILE-- --EXPECTF-- -Fatal error: Uncaught ValueError: DOM\XMLDocument::createEmpty(): Argument #2 ($encoding) is not a valid document encoding in %s:%d +Fatal error: Uncaught ValueError: Dom\XMLDocument::createEmpty(): Argument #2 ($encoding) is not a valid document encoding in %s:%d Stack trace: -#0 %s(%d): DOM\XMLDocument::createEmpty('1.0', 'foo') +#0 %s(%d): Dom\XMLDocument::createEmpty('1.0', 'foo') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_02.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_02.phpt index cda5210f8384..a804394bc844 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_02.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_02.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\XMLDocument::createEmpty 02 +Dom\XMLDocument::createEmpty 02 --EXTENSIONS-- dom --FILE-- --EXPECT-- -object(DOM\XMLDocument)#1 (29) { +object(Dom\XMLDocument)#1 (29) { ["xmlEncoding"]=> string(5) "UTF-8" ["xmlStandalone"]=> diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt index bbbace2b0648..d491927c4fed 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\XMLDocument::createEmpty 03 +Dom\XMLDocument::createEmpty 03 --EXTENSIONS-- dom --FILE-- append($dom->createElement("foo")); echo $dom->saveXML(); diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromFile_01.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromFile_01.phpt index 5e4243795f7c..a595007c8aa9 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromFile_01.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromFile_01.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\XMLDocument::createFromFile 01 +Dom\XMLDocument::createFromFile 01 --EXTENSIONS-- dom --FILE-- --EXPECTF-- -Fatal error: Uncaught ValueError: DOM\XMLDocument::createFromString(): Argument #1 ($source) must not be empty in %s:%d +Fatal error: Uncaught ValueError: Dom\XMLDocument::createFromString(): Argument #1 ($source) must not be empty in %s:%d Stack trace: -#0 %s(%d): DOM\XMLDocument::createFromString('') +#0 %s(%d): Dom\XMLDocument::createFromString('') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromFile_02.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromFile_02.phpt index 2d593c124ab8..1fccbd5ed2b0 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromFile_02.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromFile_02.phpt @@ -1,18 +1,18 @@ --TEST-- -DOM\XMLDocument::createFromFile 02 +Dom\XMLDocument::createFromFile 02 --EXTENSIONS-- dom --FILE-- --EXPECTF-- -Warning: DOM\XMLDocument::createFromFile(): I/O warning : failed to load external entity "%s" in %s on line %d +Warning: Dom\XMLDocument::createFromFile(): I/O warning : failed to load external entity "%s" in %s on line %d Fatal error: Uncaught Exception: Cannot open file '\0' in %s:%d Stack trace: -#0 %s(%d): DOM\XMLDocument::createFromFile('\\0') +#0 %s(%d): Dom\XMLDocument::createFromFile('\\0') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromFile_03.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromFile_03.phpt index f129450b38c9..73c1b0d22356 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromFile_03.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromFile_03.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\XMLDocument::createFromFile 03 +Dom\XMLDocument::createFromFile 03 --EXTENSIONS-- dom --FILE-- getMessage(); } ?> --EXPECT-- -DOM\XMLDocument::createFromFile(): Argument #1 ($path) must not contain percent-encoded NUL bytes +Dom\XMLDocument::createFromFile(): Argument #1 ($path) must not contain percent-encoded NUL bytes diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt index fcf8709e954c..2b1fdda4198c 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\XMLDocument::createFromFile 04 +Dom\XMLDocument::createFromFile 04 --EXTENSIONS-- dom --FILE-- saveXML(); ?> diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromString_01.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromString_01.phpt index f4b7771e852c..9eee72ab52b7 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromString_01.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromString_01.phpt @@ -1,16 +1,16 @@ --TEST-- -DOM\XMLDocument::createFromString 01 +Dom\XMLDocument::createFromString 01 --EXTENSIONS-- dom --FILE-- --EXPECTF-- -Fatal error: Uncaught ValueError: DOM\XMLDocument::createFromString(): Argument #1 ($source) must not be empty in %s:%d +Fatal error: Uncaught ValueError: Dom\XMLDocument::createFromString(): Argument #1 ($source) must not be empty in %s:%d Stack trace: -#0 %s(%d): DOM\XMLDocument::createFromString('') +#0 %s(%d): Dom\XMLDocument::createFromString('') #1 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt index 3576af5f6a62..8bd484060234 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\XMLDocument::createFromString 02 +Dom\XMLDocument::createFromString 02 --EXTENSIONS-- dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); var_dump($dom->saveXMLFile("php://stdout")); ?> diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromString_03.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromString_03.phpt index 2c2bb2ba33a3..4f29c01c2642 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromString_03.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromString_03.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\XMLDocument::createFromString 03 +Dom\XMLDocument::createFromString 03 --EXTENSIONS-- dom --FILE-- @@ -10,18 +10,18 @@ $flags = [ ]; try { - DOM\XMLDocument::createFromString('', -1); + Dom\XMLDocument::createFromString('', -1); } catch (ValueError $e) { echo $e->getMessage(); } foreach ($flags as $flag) { - var_dump(DOM\XMLDocument::createFromString('', $flag) instanceof DOM\XMLDocument); + var_dump(Dom\XMLDocument::createFromString('', $flag) instanceof Dom\XMLDocument); } ?> --EXPECT-- -DOM\XMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags: LIBXML_RECOVER, LIBXML_NOENT, LIBXML_DTDLOAD, LIBXML_DTDATTR, LIBXML_DTDVALID, LIBXML_NOERROR, LIBXML_NOWARNING, LIBXML_NOBLANKS, LIBXML_XINCLUDE, LIBXML_NSCLEAN, LIBXML_NOCDATA, LIBXML_NONET, LIBXML_PEDANTIC, LIBXML_COMPACT, LIBXML_PARSEHUGE, LIBXML_BIGLINES)bool(true) +Dom\XMLDocument::createFromString(): Argument #2 ($options) contains invalid flags (allowed flags: LIBXML_RECOVER, LIBXML_NOENT, LIBXML_DTDLOAD, LIBXML_DTDATTR, LIBXML_DTDVALID, LIBXML_NOERROR, LIBXML_NOWARNING, LIBXML_NOBLANKS, LIBXML_XINCLUDE, LIBXML_NSCLEAN, LIBXML_NOCDATA, LIBXML_NONET, LIBXML_PEDANTIC, LIBXML_COMPACT, LIBXML_PARSEHUGE, LIBXML_BIGLINES)bool(true) bool(true) bool(true) bool(true) diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt index a124d2e4df1e..5f061b90bcd2 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt @@ -1,5 +1,5 @@ --TEST-- -DOM\XMLDocument::createFromString 04 +Dom\XMLDocument::createFromString 04 --EXTENSIONS-- dom --SKIPIF-- @@ -9,7 +9,7 @@ if (getenv('SKIP_ASAN') && LIBXML_VERSION < 20911) die('xleak leaks under libxml --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); var_dump($dom->charset); echo $dom->saveXML(); diff --git a/ext/dom/tests/modern/xml/XMLDocument_node_ownerDocument_for_XML.phpt b/ext/dom/tests/modern/xml/XMLDocument_node_ownerDocument_for_XML.phpt index 0a0b541476a7..946f9495114a 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_node_ownerDocument_for_XML.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_node_ownerDocument_for_XML.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\XMLDocument getting ownerDocument from a node in an XML document should yield a DOM\XMLDocument +Dom\XMLDocument getting ownerDocument from a node in an XML document should yield a Dom\XMLDocument --EXTENSIONS-- dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); $element = $dom->documentElement; unset($dom); @@ -13,7 +13,7 @@ var_dump($element->ownerDocument); ?> --EXPECTF-- -object(DOM\XMLDocument)#1 (29) { +object(Dom\XMLDocument)#1 (29) { ["xmlEncoding"]=> string(5) "UTF-8" ["xmlStandalone"]=> diff --git a/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt b/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt index 73a48eb454dd..2271fae9a10d 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\XMLDocument::saveXML(File) node +Dom\XMLDocument::saveXML(File) node --EXTENSIONS-- dom --FILE-- appendChild($dom->createElement("root")); $child1 = $root->appendChild($dom->createElement("child1")); $child2 = $root->appendChild($dom->createElement("child2")); diff --git a/ext/dom/tests/modern/xml/XMLDocument_xpath.phpt b/ext/dom/tests/modern/xml/XMLDocument_xpath.phpt index 6a7d903948f6..62442a868b27 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_xpath.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_xpath.phpt @@ -1,11 +1,11 @@ --TEST-- -DOM\XMLDocument interaction with XPath +Dom\XMLDocument interaction with XPath --EXTENSIONS-- dom --FILE--

hi

@@ -16,7 +16,7 @@ $dom = DOM\XMLDocument::createFromString(<< XML); -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); echo "--- Get data of the paragraph ---\n"; @@ -48,12 +48,12 @@ var_dump($xpath->evaluate("//*/namespace::*")); ?> --EXPECT-- --- Get data of the paragraph --- -object(DOM\NodeList)#4 (1) { +object(Dom\NodeList)#4 (1) { ["length"]=> int(1) } string(2) "hi" -object(DOM\NodeList)#5 (1) { +object(Dom\NodeList)#5 (1) { ["length"]=> int(1) } @@ -62,12 +62,12 @@ string(2) "hi" float(2) bool(true) --- Get data of special nodes --- -string(25) "DOM\ProcessingInstruction" +string(25) "Dom\ProcessingInstruction" string(4) "data" -string(11) "DOM\Comment" +string(11) "Dom\Comment" string(9) " comment " --- Get a namespace node --- -object(DOM\NodeList)#5 (1) { +object(Dom\NodeList)#5 (1) { ["length"]=> int(0) } diff --git a/ext/dom/tests/modern/xml/XMLDocument_xpath_errors.phpt b/ext/dom/tests/modern/xml/XMLDocument_xpath_errors.phpt index 6eeac8c83b74..1ef52b50961f 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_xpath_errors.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_xpath_errors.phpt @@ -1,13 +1,13 @@ --TEST-- -DOM\XMLDocument interaction with XPath evaluate - errors +Dom\XMLDocument interaction with XPath evaluate - errors --EXTENSIONS-- dom --FILE-- '); +$dom = Dom\XMLDocument::createFromString(''); -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); try { var_dump($xpath->evaluate('-')); @@ -17,5 +17,5 @@ try { ?> --EXPECTF-- -Warning: DOM\XPath::evaluate(): Invalid expression in %s on line %d +Warning: Dom\XPath::evaluate(): Invalid expression in %s on line %d string(35) "Could not evaluate XPath expression" diff --git a/ext/dom/tests/modern/xml/bug48339.phpt b/ext/dom/tests/modern/xml/bug48339.phpt index 1e57927ae7f2..a3d8975adb18 100644 --- a/ext/dom/tests/modern/xml/bug48339.phpt +++ b/ext/dom/tests/modern/xml/bug48339.phpt @@ -4,7 +4,7 @@ Bug #48339 (DOMElement::setIdAttribute() throws 'Not Found Error' exception) dom --FILE-- createElement('test'); $element = $document->appendChild($element); $element->setAttribute("xml:id", 1); diff --git a/ext/dom/tests/modern/xml/simplexml_interop.phpt b/ext/dom/tests/modern/xml/simplexml_interop.phpt index 80bb478060ff..0f196fc2ac25 100644 --- a/ext/dom/tests/modern/xml/simplexml_interop.phpt +++ b/ext/dom/tests/modern/xml/simplexml_interop.phpt @@ -8,7 +8,7 @@ simplexml $sxe = simplexml_load_string('foo'); -$element = DOM\import_simplexml($sxe); +$element = Dom\import_simplexml($sxe); var_dump($element->attributes); echo $element->ownerDocument->saveXML($element), "\n"; @@ -26,16 +26,16 @@ try { } // Import again and compare -var_dump(DOM\import_simplexml($sxe) === $element); +var_dump(Dom\import_simplexml($sxe) === $element); ?> --EXPECT-- -object(DOM\NamedNodeMap)#3 (1) { +object(Dom\NamedNodeMap)#3 (1) { ["length"]=> int(1) } foo foo foovalue -dom_import_simplexml(): Argument #1 ($node) must not be already imported as a DOM\Node +dom_import_simplexml(): Argument #1 ($node) must not be already imported as a Dom\Node bool(true) diff --git a/ext/dom/tests/modern/xml/xpath_query_context_in_scope_ns.phpt b/ext/dom/tests/modern/xml/xpath_query_context_in_scope_ns.phpt index d5e7d8d7f384..dbc20e269a14 100644 --- a/ext/dom/tests/modern/xml/xpath_query_context_in_scope_ns.phpt +++ b/ext/dom/tests/modern/xml/xpath_query_context_in_scope_ns.phpt @@ -1,5 +1,5 @@ --TEST-- -Test DOM\XPath::query() with registering a context node's in-scope namespaces +Test Dom\XPath::query() with registering a context node's in-scope namespaces --EXTENSIONS-- dom --FILE-- @@ -21,7 +21,7 @@ function dump($xpath, $query, $context) { } } -$dom = DOM\XMLDocument::createFromString(<< @@ -39,7 +39,7 @@ XML); $c1 = $dom->getElementsByTagNameNS('*', 'c1')->item(0); $c2 = $dom->getElementsByTagNameNS('*', 'c1')->item(0); -$xpath = new DOM\XPath($dom); +$xpath = new Dom\XPath($dom); echo "=== Tests with c1 ===\n\n"; diff --git a/ext/dom/tests/not_serializable.phpt b/ext/dom/tests/not_serializable.phpt index bce87754dba1..36053070f400 100644 --- a/ext/dom/tests/not_serializable.phpt +++ b/ext/dom/tests/not_serializable.phpt @@ -34,7 +34,7 @@ try { echo $e->getMessage(), "\n"; } -$dom = DOM\XMLDocument::createEmpty(); +$dom = Dom\XMLDocument::createEmpty(); try { serialize($dom); } catch (Exception $e) { @@ -42,7 +42,7 @@ try { } try { - serialize(new DOM\XPath($dom)); + serialize(new Dom\XPath($dom)); } catch (Exception $e) { echo $e->getMessage(), "\n"; } @@ -53,5 +53,5 @@ Serialization of 'DOMDocument' is not allowed, unless serialization methods are Serialization of 'DOMElement' is not allowed, unless serialization methods are implemented in a subclass Serialization of 'DOMXPath' is not allowed Serialization of 'DOMNameSpaceNode' is not allowed, unless serialization methods are implemented in a subclass -Serialization of 'DOM\XMLDocument' is not allowed, unless serialization methods are implemented in a subclass -Serialization of 'DOM\XPath' is not allowed +Serialization of 'Dom\XMLDocument' is not allowed, unless serialization methods are implemented in a subclass +Serialization of 'Dom\XPath' is not allowed diff --git a/ext/dom/tests/xml_parsing_LIBXML_RECOVER.phpt b/ext/dom/tests/xml_parsing_LIBXML_RECOVER.phpt index 89e693d47565..09ff6803b444 100644 --- a/ext/dom/tests/xml_parsing_LIBXML_RECOVER.phpt +++ b/ext/dom/tests/xml_parsing_LIBXML_RECOVER.phpt @@ -9,7 +9,7 @@ $dom = new DOMDocument; $dom->loadXML('', options: LIBXML_RECOVER); echo $dom->saveXML(); -$dom = DOM\XMLDocument::createFromString('', options: LIBXML_RECOVER); +$dom = Dom\XMLDocument::createFromString('', options: LIBXML_RECOVER); echo $dom->saveXML(), "\n"; ?> @@ -18,6 +18,6 @@ Warning: DOMDocument::loadXML(): %s -Warning: DOM\XMLDocument::createFromString(): %s +Warning: Dom\XMLDocument::createFromString(): %s diff --git a/ext/dom/xml_document.c b/ext/dom/xml_document.c index ac1d39eb3b13..6c30baf605f5 100644 --- a/ext/dom/xml_document.c +++ b/ext/dom/xml_document.c @@ -86,7 +86,7 @@ static void dom_mark_namespaces_as_attributes_too(php_dom_libxml_ns_mapper *ns_m } } -PHP_METHOD(DOM_XMLDocument, createEmpty) +PHP_METHOD(Dom_XMLDocument, createEmpty) { const char *version = NULL; size_t encoding_len = strlen("UTF-8"); @@ -238,12 +238,12 @@ void dom_document_convert_to_modern(php_libxml_ref_obj *document, xmlDocPtr lxml dom_mark_namespaces_as_attributes_too(ns_mapper, lxml_doc); } -PHP_METHOD(DOM_XMLDocument, createFromString) +PHP_METHOD(Dom_XMLDocument, createFromString) { load_from_helper(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_STRING); } -PHP_METHOD(DOM_XMLDocument, createFromFile) +PHP_METHOD(Dom_XMLDocument, createFromFile) { load_from_helper(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_FILE); } diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c index 8919559373e2..d33d3f07a27c 100644 --- a/ext/dom/xpath.c +++ b/ext/dom/xpath.c @@ -161,7 +161,7 @@ PHP_METHOD(DOMXPath, __construct) dom_xpath_construct(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_document_class_entry); } -PHP_METHOD(DOM_XPath, __construct) +PHP_METHOD(Dom_XPath, __construct) { dom_xpath_construct(INTERNAL_FUNCTION_PARAM_PASSTHRU, dom_abstract_base_document_class_entry); } @@ -391,7 +391,7 @@ PHP_METHOD(DOMXPath, query) php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_QUERY, false); } -PHP_METHOD(DOM_XPath, query) +PHP_METHOD(Dom_XPath, query) { php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_QUERY, true); } @@ -403,7 +403,7 @@ PHP_METHOD(DOMXPath, evaluate) php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_EVALUATE, false); } -PHP_METHOD(DOM_XPath, evaluate) +PHP_METHOD(Dom_XPath, evaluate) { php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_EVALUATE, true); } diff --git a/ext/simplexml/tests/getDocNamespaces_no_internal_declaration.phpt b/ext/simplexml/tests/getDocNamespaces_no_internal_declaration.phpt index 55a3405fe914..322dee456923 100644 --- a/ext/simplexml/tests/getDocNamespaces_no_internal_declaration.phpt +++ b/ext/simplexml/tests/getDocNamespaces_no_internal_declaration.phpt @@ -25,7 +25,7 @@ $dom->loadXML($xml); $sxe = simplexml_import_dom($dom); var_dump($sxe->getDocNamespaces(true)); -$dom = DOM\XMLDocument::createFromString($xml); +$dom = Dom\XMLDocument::createFromString($xml); $sxe = simplexml_import_dom($dom); var_dump($sxe->getDocNamespaces(true)); diff --git a/ext/simplexml/tests/simplexml_import_new_dom.phpt b/ext/simplexml/tests/simplexml_import_new_dom.phpt index b0e00c731e50..4e205bd59012 100644 --- a/ext/simplexml/tests/simplexml_import_new_dom.phpt +++ b/ext/simplexml/tests/simplexml_import_new_dom.phpt @@ -5,7 +5,7 @@ simplexml dom --FILE-- book; foreach ($books as $book) { diff --git a/ext/xsl/tests/XSLTProcessor_namespace_mapper_lifetime.phpt b/ext/xsl/tests/XSLTProcessor_namespace_mapper_lifetime.phpt index 2bd7c30dc8fd..0d334031df78 100644 --- a/ext/xsl/tests/XSLTProcessor_namespace_mapper_lifetime.phpt +++ b/ext/xsl/tests/XSLTProcessor_namespace_mapper_lifetime.phpt @@ -6,7 +6,7 @@ xsl --FILE-- World @@ -26,8 +26,8 @@ XML; $processor = new XSLTProcessor(); // The fact that this is a temporary is important! // And yes, this is done twice on purpose to check for leaks -$processor->importStylesheet(DOM\XMLDocument::createFromString($xslXML)); -$processor->importStylesheet(DOM\XMLDocument::createFromString($xslXML)); +$processor->importStylesheet(Dom\XMLDocument::createFromString($xslXML)); +$processor->importStylesheet(Dom\XMLDocument::createFromString($xslXML)); $processor->registerPHPFunctions(); echo $processor->transformToXML($input), "\n"; diff --git a/ext/xsl/tests/auto_registration_namespaces_new_dom.phpt b/ext/xsl/tests/auto_registration_namespaces_new_dom.phpt index f3e7f6b0601d..e2a99bcb7141 100644 --- a/ext/xsl/tests/auto_registration_namespaces_new_dom.phpt +++ b/ext/xsl/tests/auto_registration_namespaces_new_dom.phpt @@ -6,7 +6,7 @@ xsl --FILE-- documentElement->append($sheet->createElementNS('urn:test', 'test:dummy')); -$input = DOM\XMLDocument::createFromString(<< World From 9038451fe53039836e257ec0b768cf21667d1d19 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Tue, 7 May 2024 21:33:44 +0200 Subject: [PATCH 2/4] Update ext/dom modern method names See https://wiki.php.net/rfc/class-naming-acronyms. --- ext/dom/document.c | 2 +- ext/dom/html_document.c | 4 +- ext/dom/php_dom.stub.php | 20 ++++----- ext/dom/php_dom_arginfo.h | 44 +++++++++---------- ...rialize_entity_reference_in_attribute.phpt | 4 +- .../html/encoding/HTMLDocument_GB18030.phpt | 6 +-- .../html/encoding/HTMLDocument_Shift_JIS.phpt | 6 +-- .../encoding/HTMLDocument_UTF16BE_BOM.phpt | 6 +-- .../encoding/HTMLDocument_UTF16LE_BOM.phpt | 6 +-- .../html/encoding/HTMLDocument_UTF8_BOM.phpt | 6 +-- .../encoding/HTMLDocument_Windows1251.phpt | 6 +-- .../HTMLDocument_encoding_edge_case_01.phpt | 2 +- .../HTMLDocument_encoding_edge_case_02.phpt | 2 +- .../HTMLDocument_encoding_edge_case_03.phpt | 2 +- .../HTMLDocument_encoding_edge_case_04.phpt | 2 +- .../HTMLDocument_encoding_edge_case_05.phpt | 2 +- .../HTMLDocument_encoding_edge_case_06.phpt | 2 +- .../HTMLDocument_encoding_edge_case_07.phpt | 2 +- .../HTMLDocument_encoding_field_test.phpt | 2 +- .../HTMLDocument_fallback_encoding.phpt | 2 +- .../HTMLDocument_saveHTMLFile_empty_path.phpt | 8 ++-- .../HTMLDocument_saveHTML_wrong_document.phpt | 6 +-- .../modern/html/interactions/noscript.phpt | 12 ++--- ...File_createFromString_BOM_buffer_edge.phpt | 2 +- ...Document_fromFile_local_existing_file.phpt | 2 +- ...nt_fromFile_local_file_does_not_exist.phpt | 2 +- ...MLDocument_fromFile_parser_warning_01.phpt | 2 +- ...MLDocument_fromFile_parser_warning_02.phpt | 2 +- ...MLDocument_fromFile_parser_warning_03.phpt | 2 +- ..._fromFile_with_working_stream_wrapper.phpt | 4 +- ...romString_LIBXML_HTML_NOIMPLIED_error.phpt | 2 +- ...tring_LIBXML_HTML_NOIMPLIED_namespace.phpt | 6 +-- .../parser/HTMLDocument_fromString_empty.phpt | 2 +- ...String_fromFile_LIBXML_HTML_NOIMPLIED.phpt | 4 +- ...MLDocument_fromString_normal_no_error.phpt | 2 +- .../HTMLDocument_fromString_old_dtd.phpt | 4 +- ...Document_fromString_parser_warning_01.phpt | 2 +- ...Document_fromString_parser_warning_02.phpt | 2 +- ...Document_fromString_parser_warning_03.phpt | 2 +- .../HTMLDocument_fromString_without_body.phpt | 2 +- .../html/parser/predefined_namespaces.phpt | 4 +- .../html/parser/xml_style_namespace.phpt | 4 +- .../HTMLDocument_entity_reference.phpt | 4 +- .../HTMLDocument_escape_attribute.phpt | 2 +- .../serializer/HTMLDocument_escape_nbsp.phpt | 2 +- .../HTMLDocument_serialize_attribute_ns.phpt | 2 +- .../HTMLDocument_serialize_cdata.phpt | 2 +- .../HTMLDocument_serialize_comment.phpt | 2 +- .../HTMLDocument_serialize_doctype.phpt | 4 +- .../HTMLDocument_serialize_element_ns.phpt | 2 +- ...HTMLDocument_serialize_failing_stream.phpt | 4 +- .../HTMLDocument_serialize_fragment.phpt | 2 +- .../HTMLDocument_serialize_full_document.phpt | 2 +- ...HTMLDocument_serialize_ns_imported_01.phpt | 6 +-- ...HTMLDocument_serialize_ns_imported_02.phpt | 6 +-- ...HTMLDocument_serialize_ns_imported_03.phpt | 6 +-- ...HTMLDocument_serialize_ns_imported_04.phpt | 6 +-- ...HTMLDocument_serialize_ns_imported_05.phpt | 6 +-- ...HTMLDocument_serialize_ns_imported_06.phpt | 6 +-- ...ment_serialize_processing_instruction.phpt | 2 +- .../HTMLDocument_serialize_roots.phpt | 12 ++--- .../HTMLDocument_serialize_text_01.phpt | 2 +- .../HTMLDocument_serialize_text_02.phpt | 2 +- .../HTMLDocument_serialize_text_03.phpt | 2 +- .../HTMLDocument_serialize_void_elements.phpt | 4 +- ..._deleteData_negative_in_bounds_length.phpt | 4 +- .../CharacterData_insertData_edge_cases.phpt | 2 +- ...racterData_insertData_negative_offset.phpt | 4 +- ...Data_insertData_negative_offset_mod32.phpt | 8 ++-- ...racterData_replaceData_negative_count.phpt | 4 +- ...Data_replaceData_negative_count_mod32.phpt | 8 ++-- ...haracterData_substringData_edge_cases.phpt | 2 +- ...Data_substringData_negative_arguments.phpt | 6 +-- ...ubstringData_negative_arguments_mod32.phpt | 12 ++--- .../spec/Document_createAttributeNS.phpt | 4 +- ...ocument_implementation_createDocument.phpt | 10 ++--- ...ent_implementation_createDocumentType.phpt | 2 +- ...ent_implementation_createHTMLDocument.phpt | 6 +-- .../spec/Document_importLegacyNode.phpt | 2 +- .../spec/Element_insertAdjacentText.phpt | 2 +- .../modern/spec/Element_prefix_readonly.phpt | 2 +- .../modern/spec/Element_removeAttribute.phpt | 12 ++--- .../spec/Element_removeAttributeNS.phpt | 28 ++++++------ .../modern/spec/Element_setAttributeNS.phpt | 6 +-- .../modern/spec/Element_setAttributeNode.phpt | 2 +- .../Element_setAttributeNode_adoption.phpt | 2 +- .../spec/Element_setAttributeNode_inuse.phpt | 2 +- .../Element_setAttribute_with_namespace.phpt | 14 +++--- ...lement_setAttribute_without_namespace.phpt | 12 ++--- .../modern/spec/Element_toggleAttribute.phpt | 4 +- ...LDocument_createProcessingInstruction.phpt | 2 +- .../spec/HTMLDocument_importNode_01.phpt | 2 +- ...ppendChild_fragment_multiple_elements.phpt | 2 +- .../modern/spec/Node_insertBefore_01.phpt | 2 +- .../modern/spec/Node_insertBefore_02.phpt | 2 +- .../modern/spec/Node_isEqualNode_01.phpt | 6 +-- .../modern/spec/Node_isEqualNode_02.phpt | 6 +-- .../modern/spec/Node_normalize_edge_case.phpt | 2 +- .../spec/Node_replaceChild_edge_cases.phpt | 4 +- .../modern/spec/appendChild_dtd_legacy.phpt | 2 +- .../append_text_nodes_invalid_hierarchy.phpt | 2 +- .../spec/attribute_entity_expansion.phpt | 14 +++--- .../attribute_entity_expansion_legacy.phpt | 14 +++--- ext/dom/tests/modern/spec/bug47530.phpt | 14 +++--- ext/dom/tests/modern/spec/bug47847.phpt | 2 +- ext/dom/tests/modern/spec/bug55294.phpt | 2 +- ext/dom/tests/modern/spec/bug81468.phpt | 4 +- .../clone_conflicting_namespace_prefix.phpt | 4 +- ext/dom/tests/modern/spec/clone_document.phpt | 6 +-- .../modern/spec/clone_entity_reference.phpt | 2 +- .../tests/modern/spec/clone_text_nodes.phpt | 8 ++-- .../modern/spec/default_namespace_move.phpt | 4 +- .../tests/modern/spec/dom_parsing_gh44.phpt | 2 +- .../tests/modern/spec/dom_parsing_gh45.phpt | 2 +- .../tests/modern/spec/dom_parsing_gh47.phpt | 4 +- .../modern/spec/dom_parsing_gh47_bis.phpt | 4 +- ext/dom/tests/modern/spec/gh11404_1.phpt | 2 +- ext/dom/tests/modern/spec/gh11404_2.phpt | 2 +- .../modern/spec/import_entity_reference.phpt | 2 +- .../modern/spec/import_of_lone_attribute.phpt | 2 +- ...rt_of_namepace_conflicting_attributes.phpt | 4 +- .../modern/spec/pre_insertion_validation.phpt | 2 +- .../spec/reconciliation_of_attributes.phpt | 4 +- .../spec/reconciliation_of_elements.phpt | 4 +- .../serialize_default_and_prefixed_xmlns.phpt | 2 +- .../spec/serialize_element_unqualified.phpt | 4 +- .../serialize_non_default_empty_xmlns.phpt | 2 +- .../modern/spec/serialize_xml_attribute.phpt | 2 +- .../serialize_xml_namespace_on_elements.phpt | 2 +- .../modern/spec/serialize_xml_ns_decl.phpt | 4 +- .../modern/spec/textContent_edge_cases.phpt | 2 +- ext/dom/tests/modern/spec/text_merging.phpt | 4 +- .../spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt | 4 +- .../modern/spec/xml_serialize_formatting.phpt | 2 +- .../xml/XMLDocument_fromEmptyDocument_03.phpt | 2 +- .../modern/xml/XMLDocument_fromFile_04.phpt | 2 +- .../modern/xml/XMLDocument_fromString_02.phpt | 2 +- .../modern/xml/XMLDocument_fromString_04.phpt | 2 +- .../modern/xml/XMLDocument_saveXML_node.phpt | 4 +- ext/dom/tests/modern/xml/bug48339.phpt | 2 +- .../tests/modern/xml/simplexml_interop.phpt | 6 +-- 141 files changed, 321 insertions(+), 321 deletions(-) diff --git a/ext/dom/document.c b/ext/dom/document.c index 3b2a6643b344..0c47c5a8d1e3 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -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); } diff --git a/ext/dom/html_document.c b/ext/dom/html_document.c index 48431a9ecf6b..6e109a35bd30 100644 --- a/ext/dom/html_document.c +++ b/ext/dom/html_document.c @@ -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/php_dom.stub.php b/ext/dom/php_dom.stub.php index f989e0f2d22e..74830a38fddf 100644 --- a/ext/dom/php_dom.stub.php +++ b/ext/dom/php_dom.stub.php @@ -1482,7 +1482,7 @@ class DocumentFragment extends Node implements ParentNode 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 */ @@ -1568,9 +1568,9 @@ public function schemaValidate(string $filename, int $flags = 0): bool {} /** @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 @@ public static function createFromFile(string $path, int $options = 0, ?string $o 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 @@ public function validate(): bool {} /** @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 266646bf8600..07cd886bf78a 100644 --- a/ext/dom/php_dom_arginfo.h +++ b/ext/dom/php_dom_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 3225ca142d9e2ad08757e19ab819392f24371a08 */ + * Stub hash: 092131be963d78c73c5285688de8434b898ba604 */ 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) @@ -880,7 +880,7 @@ ZEND_END_ARG_INFO() #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() @@ -963,13 +963,13 @@ 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 @@ -1001,21 +1001,21 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Dom_HTMLDocument_createFrom 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_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_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() @@ -1046,9 +1046,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Dom_XMLDocument_xinclude, 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) @@ -1282,9 +1282,9 @@ 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, 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); @@ -1709,7 +1709,7 @@ static const zend_function_entry class_Dom_DocumentType_methods[] = { }; 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("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) @@ -1751,10 +1751,10 @@ static const zend_function_entry class_Dom_Document_methods[] = { 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) @@ -1767,10 +1767,10 @@ 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_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 }; @@ -1781,8 +1781,8 @@ static const zend_function_entry class_Dom_XMLDocument_methods[] = { 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_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 }; 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 9290e8954d9e..231546c6b371 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 @@ -13,11 +13,11 @@ $xml = Dom\XMLDocument::createFromString(<<documentElement->firstChild; -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; $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 d38aebac834b..f1967adc379b 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_GB18030.phpt @@ -8,14 +8,14 @@ dom $dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/gb18030.html"); var_dump($dom->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 822f861be957..56c0523821e7 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_Shift_JIS.phpt @@ -8,14 +8,14 @@ dom $dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/shift_jis.html"); var_dump($dom->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 6e147a77f1fd..eb4af0a5b3ca 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16BE_BOM.phpt @@ -8,14 +8,14 @@ dom $dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/utf16be_bom.html"); var_dump($dom->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 8d9e0041921d..0a6dbf7fe80b 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF16LE_BOM.phpt @@ -8,14 +8,14 @@ dom $dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/utf16le_bom.html"); var_dump($dom->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 62e400360da9..2054cb3d4a99 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_UTF8_BOM.phpt @@ -8,14 +8,14 @@ dom $dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/utf8_bom.html"); var_dump($dom->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 620fbcb664d2..75e7662e4e0a 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_Windows1251.phpt @@ -8,14 +8,14 @@ dom $dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/windows1251.html"); var_dump($dom->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_encoding_edge_case_01.phpt b/ext/dom/tests/modern/html/encoding/HTMLDocument_encoding_edge_case_01.phpt index b9d33e3e579b..921b56901d4c 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 @@ -11,7 +11,7 @@ $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 f3053256b095..f23ef536fa05 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 @@ -12,7 +12,7 @@ $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 5cedb65fc8e2..085cf92ef554 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 @@ -12,7 +12,7 @@ $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 66c8bfb0676b..2f627d65f790 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 @@ -11,7 +11,7 @@ $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 3d9d2336939b..4f762ef4aa4f 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 @@ -13,7 +13,7 @@ $dom = Dom\HTMLDocument::createFromString($header . str_repeat("A", $padding_req // 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 cd97a8a60da6..5ceb83a03ef0 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 @@ -11,7 +11,7 @@ $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 88cc31c3c13c..15bf36a62fbc 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 @@ -13,7 +13,7 @@ $dom = Dom\HTMLDocument::createFromString($header . str_repeat("A", $padding_req // 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 f7cf6a205259..c4417d804108 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 @@ -23,7 +23,7 @@ try { echo $e->getMessage(), "\n"; } var_dump($dom->inputEncoding); -echo $dom->saveHTML(); +echo $dom->saveHtml(); try { $dom = Dom\HTMLDocument::createEmpty("bogus"); 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 438bfdafdd92..fda707577b5f 100644 --- a/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt +++ b/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt @@ -7,7 +7,7 @@ dom $dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/fallback_encoding.html"); var_dump($dom->inputEncoding); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --CLEAN-- 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 b4c7d0c341e4..93daf65f72f2 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,5 +1,5 @@ --TEST-- -Dom\HTMLDocument::saveHTMLFile() empty path +Dom\HTMLDocument::saveHtmlFile() empty path --EXTENSIONS-- dom --FILE-- @@ -7,12 +7,12 @@ dom $dom = Dom\HTMLDocument::createEmpty(); $root = $dom->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 6a68095dcbdc..7358f8b440bf 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->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/noscript.phpt b/ext/dom/tests/modern/html/interactions/noscript.phpt index 052d37bbed7c..2dec9ce9b1bc 100644 --- a/ext/dom/tests/modern/html/interactions/noscript.phpt +++ b/ext/dom/tests/modern/html/interactions/noscript.phpt @@ -10,22 +10,22 @@ echo "--- Parsing ---\n"; $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); $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/parser/HTMLDocument_createFromFile_createFromString_BOM_buffer_edge.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_createFromFile_createFromString_BOM_buffer_edge.phpt index 9b11aaaf648c..7240229721b0 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 @@ -12,7 +12,7 @@ $data = $header . str_repeat("a", 4096 - strlen($header) - strlen($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"); 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 833455baf610..96cdda681505 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 @@ -6,7 +6,7 @@ dom saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECTF-- 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 13d37d3fc13a..ce96afd69eb3 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 @@ -6,7 +6,7 @@ dom saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECTF-- 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 4148a7296c7d..4940bcb1d553 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 @@ -6,7 +6,7 @@ dom saveHTML(), "\n"; +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 23ebaccd71ee..976856d42805 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 @@ -6,7 +6,7 @@ dom saveHTML(), "\n"; +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 51c09213d7a3..5562fedc4e7c 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 @@ -6,7 +6,7 @@ dom saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- 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 c45ef9d3b9d2..b763e9133611 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 @@ -35,14 +35,14 @@ stream_wrapper_register("euw", EchoUriWrapper::class, 0); echo "--- Stream wrapper case ---\n"; $dom = Dom\HTMLDocument::createFromFile("euw://

hello

"); -echo $dom->saveHTML(), "\n"; +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"; +echo $dom->saveHtml(), "\n"; foreach (libxml_get_errors() as $error) { var_dump($error->line, $error->column); 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 e5f567feb0eb..60e1274e9e0d 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 @@ -6,7 +6,7 @@ dom foo
", LIBXML_HTML_NOIMPLIED); -echo $dom->saveHTML(); +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 aa75fffbc676..7f802fbe8643 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 @@ -8,19 +8,19 @@ dom echo "--- No elements ---\n"; $dom = Dom\HTMLDocument::createFromString("", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; echo "--- Single element ---\n"; $dom = Dom\HTMLDocument::createFromString("

foo

", LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); -echo $dom->saveXML(), "\n"; +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"; +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 233533f37611..ea4ca53ef8bb 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_empty.phpt @@ -6,7 +6,7 @@ dom saveHTML(), "\n"; +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 11246a7fabff..8126d15e1561 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 @@ -7,7 +7,7 @@ dom function test(string $html) { echo "Testing: $html\n"; $dom = Dom\HTMLDocument::createFromString($html, LIBXML_HTML_NOIMPLIED | LIBXML_NOERROR); - $output = $dom->saveHTML(); + $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. @@ -15,7 +15,7 @@ function test(string $html) { 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()); + var_dump($output === $dom->saveHtml()); } echo "--- Missing html, head, body ---\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 5c7bb61c4684..dfb1202e0b4b 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 @@ -22,7 +22,7 @@ $html = << HTML; $dom = Dom\HTMLDocument::createFromString($html); -echo $dom->saveHTML(), "\n"; +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 13e5340e9b49..24fa6d599431 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 @@ -16,9 +16,9 @@ $dom = Dom\HTMLDocument::createFromString(<<saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; echo "--- XML serialization ---\n"; -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECTF-- 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 6f519e7683ab..0d00e879c06a 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 @@ -7,7 +7,7 @@ dom $html = file_get_contents(__DIR__."/parser_warning_01.html"); $dom = Dom\HTMLDocument::createFromString($html); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECTF-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_02.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_02.phpt index bb14793c989e..7da88cae6ceb 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_02.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_02.phpt @@ -7,7 +7,7 @@ dom $html = file_get_contents(__DIR__."/parser_warning_02.html"); $dom = Dom\HTMLDocument::createFromString($html); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECTF-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_03.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_03.phpt index 0d1d168f91c5..496bbd9ad67f 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_03.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_parser_warning_03.phpt @@ -7,7 +7,7 @@ dom $html = file_get_contents(__DIR__."/parser_warning_03.html"); $dom = Dom\HTMLDocument::createFromString($html, LIBXML_NOERROR); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_without_body.phpt b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_without_body.phpt index 941556920bd1..fd5a2366cca9 100644 --- a/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_without_body.phpt +++ b/ext/dom/tests/modern/html/parser/HTMLDocument_fromString_without_body.phpt @@ -6,7 +6,7 @@ dom

foo '

'); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/predefined_namespaces.phpt b/ext/dom/tests/modern/html/parser/predefined_namespaces.phpt index 21ea76313b78..7e78460454e6 100644 --- a/ext/dom/tests/modern/html/parser/predefined_namespaces.phpt +++ b/ext/dom/tests/modern/html/parser/predefined_namespaces.phpt @@ -37,9 +37,9 @@ foreach ($xpath->query("//*[name()='body']//*") as $node) { } echo "--- HTML serialization ---\n"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; echo "--- XML serialization ---\n"; -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/parser/xml_style_namespace.phpt b/ext/dom/tests/modern/html/parser/xml_style_namespace.phpt index c6445bdc0604..9657ac3b7809 100644 --- a/ext/dom/tests/modern/html/parser/xml_style_namespace.phpt +++ b/ext/dom/tests/modern/html/parser/xml_style_namespace.phpt @@ -28,9 +28,9 @@ foreach ($xpath->query("//*[name()='body']//*") as $node) { } echo "--- HTML serialization ---\n"; -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; echo "--- XML serialization ---\n"; -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_entity_reference.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_entity_reference.phpt index 9efae8cefbe8..2479e39306fa 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_entity_reference.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_entity_reference.phpt @@ -12,8 +12,8 @@ $root->appendChild($dom1->createEntityReference('nbsp')); $dom2 = Dom\HTMLDocument::createEmpty(); $dom2->appendChild($dom2->importLegacyNode($root, true)); -echo $dom2->saveXML(), "\n"; -echo $dom2->saveHTML(), "\n"; +echo $dom2->saveXml(), "\n"; +echo $dom2->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_attribute.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_attribute.phpt index f5dd60eb156d..4953deabf0e3 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_attribute.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_attribute.phpt @@ -8,7 +8,7 @@ dom $dom = Dom\HTMLDocument::createFromString("

", LIBXML_NOERROR); $p = $dom->documentElement->firstChild->nextSibling->firstChild; $p->setAttribute("foo", "\"'&"); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_nbsp.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_nbsp.phpt index d278b93980a4..accbec630cf5 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_nbsp.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_escape_nbsp.phpt @@ -6,7 +6,7 @@ dom these must transform: \xc2\xa0\xc2\xa0 but these not: \xa0|\xc2...


", LIBXML_NOERROR); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_attribute_ns.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_attribute_ns.phpt index 02bff8e22de7..66459d0e7282 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_attribute_ns.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_attribute_ns.phpt @@ -14,7 +14,7 @@ $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/2000/xmlns/ $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/1999/xlink", "z:f")); // Note: XML declarations are not emitted in HTML5 -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_cdata.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_cdata.phpt index 2d2879f1f7c1..f379a61dfec0 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_cdata.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_cdata.phpt @@ -12,7 +12,7 @@ $cdata = $dom->createCDATASection("foobaré\"<>-&"); $dom = Dom\HTMLDocument::createEmpty(); $container = $dom->appendChild($dom->createElement("container")); $container->appendChild($dom->importNode($cdata)); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_comment.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_comment.phpt index 751a33abbc43..4afe4a32f069 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_comment.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_comment.phpt @@ -7,7 +7,7 @@ dom $dom = Dom\HTMLDocument::createEmpty(); $dom->appendChild($dom->createComment("foobaré\"<>-&")); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_doctype.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_doctype.phpt index ec068f549310..49d0e566e296 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_doctype.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_doctype.phpt @@ -16,10 +16,10 @@ $dom = Dom\HTMLDocument::createFromString(<<saveXML(), "\n"; +echo $dom->saveXml(), "\n"; echo "--- HTML encoding ---\n"; // We don't expect to see the public ID and the system ID because the serialization algorithm doesn't serialize those -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_element_ns.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_element_ns.phpt index 19a2b5f09a95..8d23e09dedb8 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_element_ns.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_element_ns.phpt @@ -16,7 +16,7 @@ $root->append($dom->createElementNS("http://www.w3.org/2000/svg", "s:svg"), "\n" $root->append($dom->createElementNS("http://www.w3.org/1998/Math/MathML", "m:math"), "\n"); // Note: XML declarations are not emitted in HTML5 -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_failing_stream.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_failing_stream.phpt index bc7c1e6db0fb..c02b02a34692 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_failing_stream.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_failing_stream.phpt @@ -35,7 +35,7 @@ stream_wrapper_register("failing", "FailingWrapper"); $dom = Dom\HTMLDocument::createEmpty(); $root = $dom->appendChild($dom->createElement("root")); -$dom->saveHTMLFile("failing://foo"); +$dom->saveHtmlFile("failing://foo"); ?> --EXPECTF-- @@ -44,6 +44,6 @@ string(1) "<" Fatal error: Uncaught Error: fail in %s:%d Stack trace: #0 [internal function]: FailingWrapper->stream_write('root') -#1 %s(%d): Dom\HTMLDocument->saveHTMLFile('failing://foo') +#1 %s(%d): Dom\HTMLDocument->saveHtmlFile('failing://foo') #2 {main} thrown in %s on line %d diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_fragment.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_fragment.phpt index 208b305016e1..ca1e1fa3964f 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_fragment.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_fragment.phpt @@ -11,7 +11,7 @@ $fragment->appendChild($dom->createElement("foo")); $bar = $fragment->appendChild($dom->createElement("bar")); $fragment->appendChild($dom->createElement("baz")); $bar->appendChild($dom->createElement("inner")); -echo $dom->saveHTML($fragment); +echo $dom->saveHtml($fragment); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_full_document.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_full_document.phpt index 82dbd1f64aef..f0dcf1ad5f0b 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_full_document.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_full_document.phpt @@ -27,7 +27,7 @@ $dom = Dom\HTMLDocument::createFromString(<< HTML); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_01.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_01.phpt index 60b71e2bfbd2..d0b97e5304cf 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_01.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_01.phpt @@ -8,7 +8,7 @@ dom $xml = Dom\XMLDocument::createFromString(''); $xml->documentElement->setAttributeNS("http://foo/", "foo:bar", "value"); $xml->documentElement->appendChild($xml->createElementNS('some:ns2', 'child')); -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; echo "--- After import into HTML ---\n"; @@ -17,8 +17,8 @@ $html = Dom\HTMLDocument::createFromString('

foo

', LIBXML_NOERROR); $p = $html->documentElement->firstChild->nextSibling->firstChild; $p->appendChild($html->importNode($xml->documentElement, true)); -echo $html->saveXML(), "\n"; -echo $html->saveHTML(), "\n"; +echo $html->saveXml(), "\n"; +echo $html->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_02.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_02.phpt index 5c8dc7161c60..2460bb3426ee 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_02.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_02.phpt @@ -7,7 +7,7 @@ dom $xml = Dom\XMLDocument::createFromFile(__DIR__.'/sample.xml'); $xml->documentElement->appendChild($xml->createElementNS('some:ns2', 'child')); -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; echo "--- After import into HTML ---\n"; @@ -16,8 +16,8 @@ $html = Dom\HTMLDocument::createFromString('

foo

', LIBXML_NOERROR); $p = $html->documentElement->firstChild->nextSibling->firstChild; $p->appendChild($html->importNode($xml->documentElement, true)); -echo $html->saveXML(), "\n"; -echo $html->saveHTML(), "\n"; +echo $html->saveXml(), "\n"; +echo $html->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_03.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_03.phpt index ab62bef94403..9314c8d200db 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_03.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_03.phpt @@ -7,7 +7,7 @@ dom $xml = Dom\XMLDocument::createFromFile(__DIR__.'/sample.xml'); $xml->documentElement->appendChild($xml->createElementNS('some:ns2', 'child')); -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; echo "--- After import into HTML ---\n"; @@ -16,8 +16,8 @@ $html = Dom\HTMLDocument::createFromString('

foo

', LIBXML_NOERROR); $p = $html->documentElement->firstChild->nextSibling->firstChild; $p->appendChild($html->importNode($xml->documentElement, false)); -echo $html->saveXML(), "\n"; -echo $html->saveHTML(), "\n"; +echo $html->saveXml(), "\n"; +echo $html->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_04.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_04.phpt index 701737e6b622..39dcb53353a2 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_04.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_04.phpt @@ -7,7 +7,7 @@ dom $xml = Dom\XMLDocument::createFromFile(__DIR__.'/sample.xml'); $xml->documentElement->appendChild($xml->createElementNS('some:ns2', 'child')); -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; echo "--- After import into HTML ---\n"; @@ -16,8 +16,8 @@ $html = Dom\HTMLDocument::createFromString('

foo

', LIBXML_NOERROR); $p = $html->documentElement->firstChild->nextSibling->firstChild; $p->appendChild($html->importNode($xml->documentElement, false)); -echo $html->saveXML(), "\n"; -echo $html->saveHTML(), "\n"; +echo $html->saveXml(), "\n"; +echo $html->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_05.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_05.phpt index ac98a36fd887..8bebf2bc195d 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_05.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_05.phpt @@ -7,7 +7,7 @@ dom $xml = Dom\XMLDocument::createFromFile(__DIR__.'/sample.xml'); $xml->documentElement->appendChild($xml->createElementNS('some:ns2', 'child')); -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; echo "--- After adoption into HTML ---\n"; @@ -16,8 +16,8 @@ $html = Dom\HTMLDocument::createFromString('

foo

', LIBXML_NOERROR); $p = $html->documentElement->firstChild->nextSibling->firstChild; $p->appendChild($html->adoptNode($xml->documentElement)); -echo $html->saveXML(), "\n"; -echo $html->saveHTML(), "\n"; +echo $html->saveXml(), "\n"; +echo $html->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_06.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_06.phpt index 7ca496e7cf8c..7b5db9901874 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_06.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_ns_imported_06.phpt @@ -7,7 +7,7 @@ dom $xml = Dom\XMLDocument::createFromFile(__DIR__.'/sample.xml'); $xml->documentElement->firstElementChild->appendChild($xml->createElementNS('some:ns2', 'child')); -echo $xml->saveXML(), "\n"; +echo $xml->saveXml(), "\n"; echo "--- After clone + import into HTML ---\n"; @@ -16,8 +16,8 @@ $html = Dom\HTMLDocument::createFromString('

foo

', LIBXML_NOERROR); $p = $html->documentElement->firstElementChild->nextElementSibling->firstElementChild; $p->appendChild($html->adoptNode($xml->documentElement->firstElementChild->cloneNode(true))); -echo $html->saveXML(), "\n"; -echo $html->saveHTML(), "\n"; +echo $html->saveXml(), "\n"; +echo $html->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_processing_instruction.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_processing_instruction.phpt index 10b2bf5d1457..54de87ef2e5b 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_processing_instruction.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_processing_instruction.phpt @@ -8,7 +8,7 @@ dom $dom = Dom\HTMLDocument::createEmpty(); // Note: you can put > in a processing instruction element but that breaks (as expected) $dom->appendChild($dom->createProcessingInstruction("target", "foobaré\"&<\xc2\xa0")); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_roots.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_roots.phpt index 9cbc70fd8e5a..b61e52510a0e 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_roots.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_roots.phpt @@ -18,12 +18,12 @@ $text = $container->appendChild($dom->createTextNode("text")); $pi = $container->appendChild($dom->createProcessingInstruction("target", "data")); $fragment = $dom->createDocumentFragment(); -var_dump($dom->saveHTML($comment)); -var_dump($dom->saveHTML($cdata)); -var_dump($dom->saveHTML($emptyElement)); -var_dump($dom->saveHTML($text)); -var_dump($dom->saveHTML($pi)); -var_dump($dom->saveHTML($fragment)); +var_dump($dom->saveHtml($comment)); +var_dump($dom->saveHtml($cdata)); +var_dump($dom->saveHtml($emptyElement)); +var_dump($dom->saveHtml($text)); +var_dump($dom->saveHtml($pi)); +var_dump($dom->saveHtml($fragment)); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_01.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_01.phpt index 4c21b432a99b..d37a43a4a42b 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_01.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_01.phpt @@ -8,7 +8,7 @@ dom $dom = Dom\HTMLDocument::createFromString("

", LIBXML_NOERROR); $p = $dom->documentElement->firstChild->nextSibling->firstChild; $p->textContent = "this is &text! \"\""; -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_02.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_02.phpt index fa907a026e43..48ab2e5ea59f 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_02.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_02.phpt @@ -12,7 +12,7 @@ foreach (["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext" $tag->textContent = "&\"<>\xc2\xa0 foobar"; $body->append("\n"); } -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_03.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_03.phpt index 82a9530a006d..bb582ba53334 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_03.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_text_03.phpt @@ -12,7 +12,7 @@ foreach (["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext" $tag->textContent = "&\"<>\xc2\xa0 foobar"; $body->append("\n"); } -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_void_elements.phpt b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_void_elements.phpt index ff8c2389ba30..7900f11619d5 100644 --- a/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_void_elements.phpt +++ b/ext/dom/tests/modern/html/serializer/HTMLDocument_serialize_void_elements.phpt @@ -35,14 +35,14 @@ foreach ($tags as $tag) { $element->appendChild($dom->createElement("inner")); $element->after("\n"); echo "$tag: "; - var_dump($dom->saveHTML($element)); + var_dump($dom->saveHtml($element)); $element = $container->appendChild($dom->createElementNS("http://php.net/foo", "x:$tag")); $element->appendChild($dom->createElement("inner")); $element->after("\n"); } -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_deleteData_negative_in_bounds_length.phpt b/ext/dom/tests/modern/spec/CharacterData_deleteData_negative_in_bounds_length.phpt index 5ac9dec306ce..f29a201ca106 100644 --- a/ext/dom/tests/modern/spec/CharacterData_deleteData_negative_in_bounds_length.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_deleteData_negative_in_bounds_length.phpt @@ -10,7 +10,7 @@ echo "--- Modern behaviour ---\n"; $dom = Dom\HTMLDocument::createEmpty(); $comment = $dom->createComment("foobarbaz"); $comment->deleteData(3, -1); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; echo "--- Legacy behaviour ---\n"; @@ -21,7 +21,7 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_insertData_edge_cases.phpt b/ext/dom/tests/modern/spec/CharacterData_insertData_edge_cases.phpt index 03d9d67086e3..9369bdadbffa 100644 --- a/ext/dom/tests/modern/spec/CharacterData_insertData_edge_cases.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_insertData_edge_cases.phpt @@ -19,7 +19,7 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset.phpt b/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset.phpt index 2285f60c7f21..f00e9aa76aae 100644 --- a/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset.phpt @@ -12,9 +12,9 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; $comment->insertData(1, "A"); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset_mod32.phpt b/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset_mod32.phpt index 8ed7f37c226a..7c27c3bc8dd5 100644 --- a/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset_mod32.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_insertData_negative_offset_mod32.phpt @@ -18,9 +18,9 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; $comment->insertData(-(2**32 - 1), "A"); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; echo "--- Legacy behaviour ---\n"; @@ -31,13 +31,13 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; try { $comment->insertData(-(2**32 - 1), "A"); } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count.phpt b/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count.phpt index dfde274119dd..32e27778552f 100644 --- a/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count.phpt @@ -8,10 +8,10 @@ dom $dom = Dom\HTMLDocument::createEmpty(); $comment = $dom->createComment("foobarbaz"); $comment->replaceData(0, -1, "A"); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; $comment = $dom->createComment("foobarbaz"); $comment->replaceData(2, -2, "A"); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count_mod32.phpt b/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count_mod32.phpt index dcb709b9caa7..64634b099257 100644 --- a/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count_mod32.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_replaceData_negative_count_mod32.phpt @@ -14,10 +14,10 @@ echo "--- Modern behaviour ---\n"; $dom = Dom\HTMLDocument::createEmpty(); $comment = $dom->createComment("foobarbaz"); $comment->replaceData(0, -1, "A"); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; $comment = $dom->createComment("foobarbaz"); $comment->replaceData(2, -(2**32 - 2), "A"); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; echo "--- Legacy behaviour ---\n"; @@ -28,13 +28,13 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; try { $comment->replaceData(2, -(2**32 - 2), "A"); } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_substringData_edge_cases.phpt b/ext/dom/tests/modern/spec/CharacterData_substringData_edge_cases.phpt index 9584dbfe647e..c463c0f7057c 100644 --- a/ext/dom/tests/modern/spec/CharacterData_substringData_edge_cases.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_substringData_edge_cases.phpt @@ -24,7 +24,7 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments.phpt b/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments.phpt index 2ea2d618107f..28198d94d6d5 100644 --- a/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments.phpt @@ -8,15 +8,15 @@ dom $dom = Dom\HTMLDocument::createEmpty(); $comment = $dom->createComment("foobarbaz"); var_dump($comment->substringData(0, -1)); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; var_dump($comment->substringData(2, -2)); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; try { var_dump($comment->substringData(-2, 2)); } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments_mod32.phpt b/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments_mod32.phpt index fc498fbaf558..7d38bd28d441 100644 --- a/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments_mod32.phpt +++ b/ext/dom/tests/modern/spec/CharacterData_substringData_negative_arguments_mod32.phpt @@ -14,11 +14,11 @@ echo "--- Modern behaviour ---\n"; $dom = Dom\HTMLDocument::createEmpty(); $comment = $dom->createComment("foobarbaz"); var_dump($comment->substringData(0, -1)); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; var_dump($comment->substringData(2, -(2**32 - 2))); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; var_dump($comment->substringData(-(2**32 - 2), 2)); -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; echo "--- Legacy behaviour ---\n"; @@ -29,19 +29,19 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; try { var_dump($comment->substringData(2, -(2**32 - 2))); } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; try { var_dump($comment->substringData(-(2**32 - 2), 2)); } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML($comment), "\n"; +echo $dom->saveHtml($comment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Document_createAttributeNS.phpt b/ext/dom/tests/modern/spec/Document_createAttributeNS.phpt index 81f501a452a9..6441ee60ef4f 100644 --- a/ext/dom/tests/modern/spec/Document_createAttributeNS.phpt +++ b/ext/dom/tests/modern/spec/Document_createAttributeNS.phpt @@ -49,7 +49,7 @@ foreach ($attrs as $attr) { $root->setAttributeNodeNS($attr); } -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; echo "\n--- NULL prefix cases ---\n"; @@ -64,7 +64,7 @@ foreach ($attrs as $attr) { $root->setAttributeNodeNS($attr); } -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- --- Error cases --- diff --git a/ext/dom/tests/modern/spec/Document_implementation_createDocument.phpt b/ext/dom/tests/modern/spec/Document_implementation_createDocument.phpt index 55e31d2afb96..5384cf6331f7 100644 --- a/ext/dom/tests/modern/spec/Document_implementation_createDocument.phpt +++ b/ext/dom/tests/modern/spec/Document_implementation_createDocument.phpt @@ -13,26 +13,26 @@ var_dump($dom->implementation->createDocument(null, "")); echo "--- (null, \"qname\") ---\n"; -echo $dom->implementation->createDocument(null, "qname")->saveXML(), "\n"; +echo $dom->implementation->createDocument(null, "qname")->saveXml(), "\n"; echo "--- (\"\", \"qname\") ---\n"; -echo $dom->implementation->createDocument("", "qname")->saveXML(), "\n"; +echo $dom->implementation->createDocument("", "qname")->saveXml(), "\n"; echo "--- (\"urn:a\", \"qname\") ---\n"; -echo $dom->implementation->createDocument("urn:a", "qname")->saveXML(), "\n"; +echo $dom->implementation->createDocument("urn:a", "qname")->saveXml(), "\n"; echo "--- With doctype ---\n"; $dtd = $dom->implementation->createDocumentType("mydoc", "", ""); -echo $dom->implementation->createDocument(null, "", $dtd)->saveXML(), "\n"; +echo $dom->implementation->createDocument(null, "", $dtd)->saveXml(), "\n"; echo "--- With auto-adopting doctype ---\n"; $dom2 = Dom\XMLDocument::createEmpty(); $dtd = $dom2->implementation->createDocumentType("mydoc", "", ""); -echo $dom->implementation->createDocument(null, "", $dtd)->saveXML(), "\n"; +echo $dom->implementation->createDocument(null, "", $dtd)->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Document_implementation_createDocumentType.phpt b/ext/dom/tests/modern/spec/Document_implementation_createDocumentType.phpt index af8c57e68fad..88c66abf09c9 100644 --- a/ext/dom/tests/modern/spec/Document_implementation_createDocumentType.phpt +++ b/ext/dom/tests/modern/spec/Document_implementation_createDocumentType.phpt @@ -20,7 +20,7 @@ foreach ($test_matrix as $test_item) { $dom->append($dom->importNode($dtd)); - echo $dom->saveXML(), "\n"; + echo $dom->saveXml(), "\n"; } ?> diff --git a/ext/dom/tests/modern/spec/Document_implementation_createHTMLDocument.phpt b/ext/dom/tests/modern/spec/Document_implementation_createHTMLDocument.phpt index 97c55b101d47..88b55878fd05 100644 --- a/ext/dom/tests/modern/spec/Document_implementation_createHTMLDocument.phpt +++ b/ext/dom/tests/modern/spec/Document_implementation_createHTMLDocument.phpt @@ -9,15 +9,15 @@ $dom = Dom\XMLDocument::createEmpty(); echo "---\n"; -echo $dom->implementation->createHTMLDocument()->saveXML(), "\n"; +echo $dom->implementation->createHTMLDocument()->saveXml(), "\n"; echo "---\n"; -echo $dom->implementation->createHTMLDocument("")->saveXML(), "\n"; +echo $dom->implementation->createHTMLDocument("")->saveXml(), "\n"; echo "---\n"; -echo $dom->implementation->createHTMLDocument("my ")->saveXML(), "\n"; +echo $dom->implementation->createHTMLDocument("my <title>")->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Document_importLegacyNode.phpt b/ext/dom/tests/modern/spec/Document_importLegacyNode.phpt index f2bf45f010de..8a6f324c3dc3 100644 --- a/ext/dom/tests/modern/spec/Document_importLegacyNode.phpt +++ b/ext/dom/tests/modern/spec/Document_importLegacyNode.phpt @@ -33,7 +33,7 @@ foreach ($new->getElementsByTagName('child') as $child) { } } -echo $new->saveXML(), "\n"; +echo $new->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Element_insertAdjacentText.phpt b/ext/dom/tests/modern/spec/Element_insertAdjacentText.phpt index 0d82a49dd44e..862d1053d8f1 100644 --- a/ext/dom/tests/modern/spec/Element_insertAdjacentText.phpt +++ b/ext/dom/tests/modern/spec/Element_insertAdjacentText.phpt @@ -16,7 +16,7 @@ try { $foo->insertAdjacentText("afterbegin", "bar"); $foo->insertAdjacentText("beforeend", "baz"); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; var_dump($foo->firstChild->textContent); var_dump($foo->firstChild->nextSibling->textContent); diff --git a/ext/dom/tests/modern/spec/Element_prefix_readonly.phpt b/ext/dom/tests/modern/spec/Element_prefix_readonly.phpt index 14e6bdc99d36..7ebc3efaadc2 100644 --- a/ext/dom/tests/modern/spec/Element_prefix_readonly.phpt +++ b/ext/dom/tests/modern/spec/Element_prefix_readonly.phpt @@ -11,7 +11,7 @@ try { } catch (Error $e) { echo $e->getMessage(), "\n"; } -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECT-- Cannot modify readonly property Dom\Element::$prefix diff --git a/ext/dom/tests/modern/spec/Element_removeAttribute.phpt b/ext/dom/tests/modern/spec/Element_removeAttribute.phpt index c8cb65cb1c05..6df71797aa01 100644 --- a/ext/dom/tests/modern/spec/Element_removeAttribute.phpt +++ b/ext/dom/tests/modern/spec/Element_removeAttribute.phpt @@ -11,37 +11,37 @@ $dom = Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body align="foo $body = $dom->getElementsByTagName("body")[0]; var_dump($body->removeAttribute("align")); var_dump($body->removeAttribute("foo:bar")); -echo $dom->saveHTML($body), "\n"; +echo $dom->saveHtml($body), "\n"; echo "--- Remove after creating without namespace ---\n"; $body->setAttributeNode($attr = $dom->createAttribute("prefix:local")); $attr->value = "A"; var_dump($body->removeAttribute("prefix:local")); -echo $dom->saveHTML($body), "\n"; +echo $dom->saveHtml($body), "\n"; echo "--- Remove after creating with namespace ---\n"; $body->setAttributeNode($attr = $dom->createAttributeNS("urn:a", "prefix:local2")); $attr->value = "B"; var_dump($body->removeAttribute("prefix:local2")); -echo $dom->saveHTML($body), "\n"; +echo $dom->saveHtml($body), "\n"; $body->setAttributeNode($attr = $dom->createAttributeNS("urn:a", "prefix:local2")); $attr->value = "B"; var_dump($body->removeAttribute("Prefix:LOCAL2")); -echo $dom->saveHTML($body), "\n"; +echo $dom->saveHtml($body), "\n"; echo "--- Remove after creating with namespace case sensitive ---\n"; $element = $dom->createElementNS("urn:a", "a:element"); $attr = $dom->createAttributeNS("urn:a", "Prefix:local2"); $element->setAttributeNode($attr); -echo $dom->saveHTML($element), "\n"; +echo $dom->saveHtml($element), "\n"; $attr->value = "C"; var_dump($element->removeAttribute("Prefix:local2")); var_dump($element->removeAttribute("Prefix:LOCAL2")); var_dump($element->removeAttribute("prefix:local2")); -echo $dom->saveHTML($element), "\n"; +echo $dom->saveHtml($element), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Element_removeAttributeNS.phpt b/ext/dom/tests/modern/spec/Element_removeAttributeNS.phpt index a96808b2bf6c..3e0eac8722f2 100644 --- a/ext/dom/tests/modern/spec/Element_removeAttributeNS.phpt +++ b/ext/dom/tests/modern/spec/Element_removeAttributeNS.phpt @@ -15,35 +15,35 @@ echo "--- After parsing, i.e. without namespace ---\n"; $body = createFreshBody(); $body->removeAttributeNS(NULL, "align"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body = createFreshBody(); $body->removeAttributeNS("", "align"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body = createFreshBody(); $body->removeAttributeNS(NULL, "ALIGN"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body = createFreshBody(); $body->removeAttributeNS("", "ALIGN"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body = createFreshBody(); $body->removeAttributeNS(NULL, "foo:bar"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body = createFreshBody(); $body->removeAttributeNS("", "foo:bar"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body = createFreshBody(); $body->removeAttributeNS(NULL, "FOO:BAR"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body = createFreshBody(); $body->removeAttributeNS("", "FOO:BAR"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; echo "--- Special legacy case ---\n"; @@ -55,22 +55,22 @@ echo "--- Remove after creating without namespace ---\n"; $body = createFreshBody(); $body->setAttributeNode($attr = $body->ownerDocument->createAttribute("prefix:local")); $attr->value = "A"; -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body->removeAttributeNS(NULL, "prefix:LOCAL"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body->removeAttributeNS(NULL, "prefix:local"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; echo "--- Remove after creating with namespace ---\n"; $body = createFreshBody(); $body->setAttributeNode($attr = $body->ownerDocument->createAttributeNS("urn:a", "prefix:local2")); $attr->value = "B"; -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body->removeAttributeNS("urn:a", "LOCAL2"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; $body->removeAttributeNS("urn:a", "local2"); -echo $body->ownerDocument->saveHTML($body), "\n"; +echo $body->ownerDocument->saveHtml($body), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Element_setAttributeNS.phpt b/ext/dom/tests/modern/spec/Element_setAttributeNS.phpt index b43ee850a95b..a38048a47ce9 100644 --- a/ext/dom/tests/modern/spec/Element_setAttributeNS.phpt +++ b/ext/dom/tests/modern/spec/Element_setAttributeNS.phpt @@ -13,7 +13,7 @@ $container = $dom->appendChild($dom->createElement("container")); echo "--- xmlns attribute ---\n"; $container->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:foo", "1"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; dumpAttrs($container); echo "--- name validation ---\n"; @@ -31,7 +31,7 @@ $container = $dom->appendChild($dom->createElement("container")); $container->setAttributeNS("urn:a", "x:foo", "1"); $container->setAttributeNS("urn:a", "y:foo", "2"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; dumpAttrs($container); echo "--- ns attributes with different namespace but same prefix ---\n"; @@ -41,7 +41,7 @@ $container = $dom->appendChild($dom->createElement("container")); $container->setAttributeNS("urn:a", "x:foo", "1"); $container->setAttributeNS("urn:b", "x:foo", "2"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; dumpAttrs($container); ?> diff --git a/ext/dom/tests/modern/spec/Element_setAttributeNode.phpt b/ext/dom/tests/modern/spec/Element_setAttributeNode.phpt index 8c07fedf6df5..c7de0f231497 100644 --- a/ext/dom/tests/modern/spec/Element_setAttributeNode.phpt +++ b/ext/dom/tests/modern/spec/Element_setAttributeNode.phpt @@ -33,7 +33,7 @@ var_dump($container->setAttributeNodeNS($attribute5) === null); echo "--- Resulting document ---\n"; -echo $dom1->saveHTML(), "\n"; +echo $dom1->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Element_setAttributeNode_adoption.phpt b/ext/dom/tests/modern/spec/Element_setAttributeNode_adoption.phpt index 86e516f1f7cb..87a2484b5893 100644 --- a/ext/dom/tests/modern/spec/Element_setAttributeNode_adoption.phpt +++ b/ext/dom/tests/modern/spec/Element_setAttributeNode_adoption.phpt @@ -38,7 +38,7 @@ var_dump($attr3->prefix, $attr3->namespaceURI, $attr3->localName); echo "--- Resulting document ---\n"; -echo $dom1->saveHTML(), "\n"; +echo $dom1->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Element_setAttributeNode_inuse.phpt b/ext/dom/tests/modern/spec/Element_setAttributeNode_inuse.phpt index 11fdd0fa65ea..ddbfbde7e616 100644 --- a/ext/dom/tests/modern/spec/Element_setAttributeNode_inuse.phpt +++ b/ext/dom/tests/modern/spec/Element_setAttributeNode_inuse.phpt @@ -16,7 +16,7 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $dom1->saveHTML(), "\n"; +echo $dom1->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Element_setAttribute_with_namespace.phpt b/ext/dom/tests/modern/spec/Element_setAttribute_with_namespace.phpt index 24ec3a89f879..1d13d6f31232 100644 --- a/ext/dom/tests/modern/spec/Element_setAttribute_with_namespace.phpt +++ b/ext/dom/tests/modern/spec/Element_setAttribute_with_namespace.phpt @@ -18,21 +18,21 @@ function setAttribute($container, string $name, string $value): Dom\Attr { } $attrs[] = setAttribute($container, "foo:bar", "&hello1"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "foo:bar", "&hello2"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "bar", "&hello3"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "xmlns", "&hello4"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "XMLns", "&hello5"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "BAR", "&hello6"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $container->setAttributeNode($dom->createAttributeNS("urn:b", "in:ns")); $attrs[] = setAttribute($container, "in:ns", "&hello7"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; // Dump at the end to check whether they influenced each other foreach ($attrs as $attr) { diff --git a/ext/dom/tests/modern/spec/Element_setAttribute_without_namespace.phpt b/ext/dom/tests/modern/spec/Element_setAttribute_without_namespace.phpt index 59d808a86d5f..4acc811faa9c 100644 --- a/ext/dom/tests/modern/spec/Element_setAttribute_without_namespace.phpt +++ b/ext/dom/tests/modern/spec/Element_setAttribute_without_namespace.phpt @@ -18,17 +18,17 @@ function setAttribute($container, string $name, string $value): Dom\Attr { } $attrs[] = setAttribute($container, "foo:bar", "&hello1"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "foo:bar", "&hello2"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "bar", "&hello3"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "xmlns", "&hello4"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "XMLns", "&hello5"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; $attrs[] = setAttribute($container, "BAR", "&hello6"); -echo $dom->saveHTML($container), "\n"; +echo $dom->saveHtml($container), "\n"; // Dump at the end to check whether they influenced each other foreach ($attrs as $attr) { diff --git a/ext/dom/tests/modern/spec/Element_toggleAttribute.phpt b/ext/dom/tests/modern/spec/Element_toggleAttribute.phpt index c24dbb015f77..f6dc3b583187 100644 --- a/ext/dom/tests/modern/spec/Element_toggleAttribute.phpt +++ b/ext/dom/tests/modern/spec/Element_toggleAttribute.phpt @@ -13,14 +13,14 @@ $container->toggleAttribute('xmlns:foo'); $container->toggleAttribute('xmlns:bar'); $container->toggleAttribute('xmlns'); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; $container->toggleAttribute('hidden'); $container->toggleAttribute('xmlns:foo'); $container->toggleAttribute('xmlns:bar'); $container->toggleAttribute('xmlns'); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/HTMLDocument_createProcessingInstruction.phpt b/ext/dom/tests/modern/spec/HTMLDocument_createProcessingInstruction.phpt index ee9b12050eac..f1a60b875b1d 100644 --- a/ext/dom/tests/modern/spec/HTMLDocument_createProcessingInstruction.phpt +++ b/ext/dom/tests/modern/spec/HTMLDocument_createProcessingInstruction.phpt @@ -25,7 +25,7 @@ try { } $dom->appendChild($dom->createProcessingInstruction("foo", "")); $dom->appendChild($dom->createProcessingInstruction("foo", "bar")); -echo $dom->saveHTML(); +echo $dom->saveHtml(); ?> --EXPECT-- int(5) diff --git a/ext/dom/tests/modern/spec/HTMLDocument_importNode_01.phpt b/ext/dom/tests/modern/spec/HTMLDocument_importNode_01.phpt index dbd94fd31af6..5d5b9938de9a 100644 --- a/ext/dom/tests/modern/spec/HTMLDocument_importNode_01.phpt +++ b/ext/dom/tests/modern/spec/HTMLDocument_importNode_01.phpt @@ -28,7 +28,7 @@ $default_p = $body->lastElementChild; var_dump($default_p->prefix); var_dump($default_p->namespaceURI); -echo $dom2->saveXML(); +echo $dom2->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt b/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt index 64ab835940e0..fc62d89811b5 100644 --- a/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt +++ b/ext/dom/tests/modern/spec/Node_appendChild_fragment_multiple_elements.phpt @@ -17,7 +17,7 @@ try { echo $e->getMessage(), "\n"; } -echo $dom->saveXML($fragment), "\n"; +echo $dom->saveXml($fragment), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt b/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt index 3def93dc1863..967334bbeba2 100644 --- a/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt +++ b/ext/dom/tests/modern/spec/Node_insertBefore_01.phpt @@ -17,7 +17,7 @@ try { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt b/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt index 917324cf15b7..390dba0f176a 100644 --- a/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt +++ b/ext/dom/tests/modern/spec/Node_insertBefore_02.phpt @@ -16,7 +16,7 @@ try { echo $e->getMessage(), "\n"; } -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt b/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt index 0c462369893b..c31d82595110 100644 --- a/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt +++ b/ext/dom/tests/modern/spec/Node_isEqualNode_01.phpt @@ -14,11 +14,11 @@ $e2 = $dom->documentElement->appendChild($dom->createElementNS("urn:example2", " $e2->setAttributeNS("urn:example2", "example2:bar", "baz1"); $e2->setAttributeNS("urn:example1", "example2:bar", "baz2"); -$dom2 = Dom\HTMLDocument::createFromString("<!DOCTYPE HTML>" . $dom->saveHTML()); +$dom2 = Dom\HTMLDocument::createFromString("<!DOCTYPE HTML>" . $dom->saveHtml()); // Shouldn't match because the attributes can't roundtrip. -var_dump($dom->saveHTML($dom->getElementsByTagName("container")[0])); -var_dump($dom2->saveHTML($dom2->getElementsByTagName("container")[0])); +var_dump($dom->saveHtml($dom->getElementsByTagName("container")[0])); +var_dump($dom2->saveHtml($dom2->getElementsByTagName("container")[0])); var_dump($dom->getElementsByTagName("container")[0]->isEqualNode($dom2->getElementsByTagName("container")[0])); ?> diff --git a/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt b/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt index d12b700cd583..32728595ca50 100644 --- a/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt +++ b/ext/dom/tests/modern/spec/Node_isEqualNode_02.phpt @@ -17,10 +17,10 @@ $e2->setAttribute("bar2", "baz"); $e2->setAttributeNodeNS($child = $dom->createAttributeNS("http://example.com", "foo:bar")); $e2->removeAttributeNode($child); -$dom2 = Dom\HTMLDocument::createFromString("<!DOCTYPE HTML>" . $dom->saveHTML()); +$dom2 = Dom\HTMLDocument::createFromString("<!DOCTYPE HTML>" . $dom->saveHtml()); -var_dump($dom->saveHTML($dom->getElementsByTagName("container")[0])); -var_dump($dom2->saveHTML($dom2->getElementsByTagName("container")[0])); +var_dump($dom->saveHtml($dom->getElementsByTagName("container")[0])); +var_dump($dom2->saveHtml($dom2->getElementsByTagName("container")[0])); var_dump($dom->getElementsByTagName("container")[0]->isEqualNode($dom2->getElementsByTagName("container")[0])); ?> diff --git a/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt b/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt index 47d8edf7fe2d..0e3a52b1bbc2 100644 --- a/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt +++ b/ext/dom/tests/modern/spec/Node_normalize_edge_case.phpt @@ -14,7 +14,7 @@ $container->appendChild($doc->createTextNode("")); $doc->normalize(); -echo $doc->saveXML(), "\n"; +echo $doc->saveXml(), "\n"; var_dump($middle->textContent); diff --git a/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt b/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt index 1d50f9724bed..afa6d1e8a815 100644 --- a/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt +++ b/ext/dom/tests/modern/spec/Node_replaceChild_edge_cases.phpt @@ -108,14 +108,14 @@ try { echo "--- Replace parent with itself ---\n"; $dom->replaceChild($parent, $parent); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; echo "--- Replace parent with single-child fragment ---\n"; $fragment = $dom->createDocumentFragment(); $fragment->appendChild($dom->createElement("new-child")); $dom->replaceChild($fragment, $parent); -echo $dom->saveHTML(), "\n"; +echo $dom->saveHtml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/appendChild_dtd_legacy.phpt b/ext/dom/tests/modern/spec/appendChild_dtd_legacy.phpt index 25a106479f16..20a69b3b545d 100644 --- a/ext/dom/tests/modern/spec/appendChild_dtd_legacy.phpt +++ b/ext/dom/tests/modern/spec/appendChild_dtd_legacy.phpt @@ -27,7 +27,7 @@ try { } catch (DOMException $e) { echo $e->getMessage(), "\n"; } -echo $other->saveXML(); +echo $other->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt b/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt index 6a01beca15c8..ea530d675c3c 100644 --- a/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt +++ b/ext/dom/tests/modern/spec/append_text_nodes_invalid_hierarchy.phpt @@ -19,7 +19,7 @@ try { echo $e->getMessage(), "\n"; } -var_dump($dom->saveHTML()); +var_dump($dom->saveHtml()); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt b/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt index 286852d5bd07..2475a5e13ff9 100644 --- a/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt +++ b/ext/dom/tests/modern/spec/attribute_entity_expansion.phpt @@ -8,32 +8,32 @@ $doc = Dom\HTMLDocument::createEmpty(); $elt = $doc->createElement('elt'); $doc->appendChild($elt); $elt->setAttribute('a','&'); -print $doc->saveHTML($elt) . "\n"; +print $doc->saveHtml($elt) . "\n"; $attr = $elt->getAttributeNode('a'); $attr->value = '&'; print "$attr->value\n"; -print $doc->saveHTML($elt) . "\n"; +print $doc->saveHtml($elt) . "\n"; $attr->removeChild($attr->firstChild); -print $doc->saveHTML($elt) . "\n"; +print $doc->saveHtml($elt) . "\n"; $attr->nodeValue = '&'; print "$attr->nodeValue\n"; -print $doc->saveHTML($elt) . "\n"; +print $doc->saveHtml($elt) . "\n"; $attr->nodeValue = '&'; print "$attr->nodeValue\n"; -print $doc->saveHTML($elt) . "\n"; +print $doc->saveHtml($elt) . "\n"; $elt->removeAttributeNode($attr); $elt->setAttributeNS('http://www.w3.org/2000/svg', 'svg:id','&'); -print $doc->saveHTML($elt) . "\n"; +print $doc->saveHtml($elt) . "\n"; $attr = $elt->getAttributeNodeNS('http://www.w3.org/2000/svg', 'id'); $attr->value = '<&'; print "$attr->value\n"; -print $doc->saveHTML($elt) . "\n"; +print $doc->saveHtml($elt) . "\n"; ?> --EXPECT-- <elt a="&"></elt> diff --git a/ext/dom/tests/modern/spec/attribute_entity_expansion_legacy.phpt b/ext/dom/tests/modern/spec/attribute_entity_expansion_legacy.phpt index 9b8ed50801f5..72aa18c9da19 100644 --- a/ext/dom/tests/modern/spec/attribute_entity_expansion_legacy.phpt +++ b/ext/dom/tests/modern/spec/attribute_entity_expansion_legacy.phpt @@ -8,32 +8,32 @@ $doc = new DOMDocument; $elt = $doc->createElement('elt'); $doc->appendChild($elt); $elt->setAttribute('a','&'); -print $doc->saveXML($elt) . "\n"; +print $doc->saveXml($elt) . "\n"; $attr = $elt->getAttributeNode('a'); $attr->value = '&'; print "$attr->value\n"; -print $doc->saveXML($elt) . "\n"; +print $doc->saveXml($elt) . "\n"; $attr->removeChild($attr->firstChild); -print $doc->saveXML($elt) . "\n"; +print $doc->saveXml($elt) . "\n"; $attr->nodeValue = '&'; print "$attr->nodeValue\n"; -print $doc->saveXML($elt) . "\n"; +print $doc->saveXml($elt) . "\n"; $attr->nodeValue = '&'; print "$attr->nodeValue\n"; -print $doc->saveXML($elt) . "\n"; +print $doc->saveXml($elt) . "\n"; $elt->removeAttributeNode($attr); $elt->setAttributeNS('http://www.w3.org/2000/svg', 'svg:id','&'); -print $doc->saveXML($elt) . "\n"; +print $doc->saveXml($elt) . "\n"; $attr = $elt->getAttributeNodeNS('http://www.w3.org/2000/svg', 'id'); $attr->value = '<&'; print "$attr->value\n"; -print $doc->saveXML($elt) . "\n"; +print $doc->saveXml($elt) . "\n"; ?> --EXPECTF-- <elt a="&"/> diff --git a/ext/dom/tests/modern/spec/bug47530.phpt b/ext/dom/tests/modern/spec/bug47530.phpt index 0f8888ffeb37..847296cbece8 100644 --- a/ext/dom/tests/modern/spec/bug47530.phpt +++ b/ext/dom/tests/modern/spec/bug47530.phpt @@ -11,7 +11,7 @@ function test_document_fragment_with_import() { $frag = $doc->createDocumentFragment(); $frag->appendChild($doc->importNode($root->firstChild)); $root->appendChild($frag); - echo $doc->saveXML(), "\n"; + echo $doc->saveXml(), "\n"; } function test_document_fragment_without_import() { @@ -22,7 +22,7 @@ function test_document_fragment_without_import() { $element = $doc->documentElement->firstChild; $element->appendChild($frag); unset($frag); // Free fragment, should not break getting the namespaceURI below - echo $doc->saveXML(), "\n"; + echo $doc->saveXml(), "\n"; unset($doc); var_dump($element->firstChild->tagName); var_dump($element->firstChild->namespaceURI); @@ -46,7 +46,7 @@ XML; $importedNode = $dom2->importNode($dom->documentElement, true); $dom2->appendChild($importedNode); - echo $dom2->saveXML(), "\n"; + echo $dom2->saveXml(), "\n"; } function test_partial_document_import() { @@ -71,17 +71,17 @@ XML; unset($importedNode); unset($dom); - echo $dom2->saveXML(), "\n"; + echo $dom2->saveXml(), "\n"; } function test_document_import_with_attributes() { $dom = Dom\XMLDocument::createFromString('<?xml version="1.0"?><div xmlns="https://php.net/default" xmlns:example="https://php.net/example"><p example:test="test"/><i/></div>'); $dom2 = Dom\XMLDocument::createFromString('<?xml version="1.0"?><div xmlns:example="https://php.net/somethingelse"/>'); $dom2->documentElement->appendChild($dom2->importNode($dom->documentElement->firstChild)); - echo $dom2->saveXML(), "\n"; + echo $dom2->saveXml(), "\n"; $dom2->documentElement->firstChild->appendChild($dom2->importNode($dom->documentElement->firstChild->nextSibling)); - echo $dom2->saveXML(), "\n"; + echo $dom2->saveXml(), "\n"; } function test_appendChild_with_shadowing() { @@ -92,7 +92,7 @@ function test_appendChild_with_shadowing() { $b->remove(); $a->appendChild($b); - echo $dom->saveXML(), "\n"; + echo $dom->saveXml(), "\n"; } echo "-- Test document fragment with import --\n"; diff --git a/ext/dom/tests/modern/spec/bug47847.phpt b/ext/dom/tests/modern/spec/bug47847.phpt index ae1743eac736..5318e58c64e4 100644 --- a/ext/dom/tests/modern/spec/bug47847.phpt +++ b/ext/dom/tests/modern/spec/bug47847.phpt @@ -17,7 +17,7 @@ $aDOM = Dom\XMLDocument::createEmpty(); $imported = $aDOM->importNode($fromdom->documentElement->firstElementChild, true); $aDOM->appendChild($imported); -echo $aDOM->saveXML(), "\n"; +echo $aDOM->saveXml(), "\n"; var_dump($aDOM->documentElement->firstElementChild->prefix); ?> diff --git a/ext/dom/tests/modern/spec/bug55294.phpt b/ext/dom/tests/modern/spec/bug55294.phpt index ebb1ca191b9e..a99d17679b94 100644 --- a/ext/dom/tests/modern/spec/bug55294.phpt +++ b/ext/dom/tests/modern/spec/bug55294.phpt @@ -18,7 +18,7 @@ $bDOM = Dom\XMLDocument::createEmpty(); $node = $bDOM->importNode($aDOM->getElementsByTagNameNS('http://example.com/A', 'B')->item(0), true); $bDOM->appendChild($node); -echo $bDOM->saveXML(), "\n"; +echo $bDOM->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/bug81468.phpt b/ext/dom/tests/modern/spec/bug81468.phpt index 29b5794fcca1..a56dff94c70f 100644 --- a/ext/dom/tests/modern/spec/bug81468.phpt +++ b/ext/dom/tests/modern/spec/bug81468.phpt @@ -11,7 +11,7 @@ $dom = Dom\XMLDocument::createEmpty(); $dom ->appendChild($dom->createElementNS('some:namespace', 'foo')) ->appendChild($dom->createElement('bar')); -echo ($xml = $dom->saveXML()), "\n"; +echo ($xml = $dom->saveXml()), "\n"; $xpath = new Dom\XPath($dom); $xpath->registerNamespace('n', 'some:namespace'); @@ -21,7 +21,7 @@ echo "/n:foo/n:bar -> ", count($xpath->query('/n:foo/n:bar')), "\n"; // $dom = Dom\XMLDocument::createFromString($xml); -echo ($xml = $dom->saveXML()), "\n"; +echo ($xml = $dom->saveXml()), "\n"; $xpath = new Dom\XPath($dom); $xpath->registerNamespace('n', 'some:namespace'); diff --git a/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt b/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt index ad0c560adb2e..29259c9c8e12 100644 --- a/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt +++ b/ext/dom/tests/modern/spec/clone_conflicting_namespace_prefix.phpt @@ -20,7 +20,7 @@ XML); $dom->documentElement->firstElementChild->setAttributeNS("urn:y", "a:foo", "bar"); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; $clone = clone $dom->documentElement->firstElementChild; var_dump($clone->nodeName, $clone->namespaceURI); @@ -29,7 +29,7 @@ foreach ($clone->attributes as $attr) { var_dump($attr->name, $attr->namespaceURI); } -echo $dom->saveXML($clone), "\n"; +echo $dom->saveXml($clone), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/clone_document.phpt b/ext/dom/tests/modern/spec/clone_document.phpt index 46f140150824..6f23c888e809 100644 --- a/ext/dom/tests/modern/spec/clone_document.phpt +++ b/ext/dom/tests/modern/spec/clone_document.phpt @@ -28,19 +28,19 @@ var_dump($dom->getElementsByTagName("child2")[0]->firstChild->nodeName); echo "---\n"; $clone = clone $dom; -echo $clone->saveXML(), "\n"; +echo $clone->saveXml(), "\n"; var_dump($clone->getElementsByTagName("child2")[0]->firstChild->nodeName); echo "---\n"; $clone = $dom->cloneNode(false); -echo $clone->saveXML(), "\n"; +echo $clone->saveXml(), "\n"; echo "---\n"; $clone = $dom->documentElement->cloneNode(false); -echo $clone->ownerDocument->saveXML($clone), "\n"; +echo $clone->ownerDocument->saveXml($clone), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/clone_entity_reference.phpt b/ext/dom/tests/modern/spec/clone_entity_reference.phpt index 7810a16df4a4..aed1bc850c2c 100644 --- a/ext/dom/tests/modern/spec/clone_entity_reference.phpt +++ b/ext/dom/tests/modern/spec/clone_entity_reference.phpt @@ -14,7 +14,7 @@ $dom = Dom\XMLDocument::createFromString(<<<XML XML); $clone = $dom->documentElement->cloneNode(true); -echo $dom->saveXML($clone), "\n"; +echo $dom->saveXml($clone), "\n"; var_dump($clone->firstChild->firstChild); diff --git a/ext/dom/tests/modern/spec/clone_text_nodes.phpt b/ext/dom/tests/modern/spec/clone_text_nodes.phpt index 345383364557..88ccad36fdf3 100644 --- a/ext/dom/tests/modern/spec/clone_text_nodes.phpt +++ b/ext/dom/tests/modern/spec/clone_text_nodes.phpt @@ -17,19 +17,19 @@ $child->appendChild($dom->createTextNode("c")); $child2 = $root->appendChild($dom->createElement("child2")); $child2->appendChild($dom->createTextNode("d")); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; $clone = clone $root; var_dump($clone->firstChild->textContent); var_dump($clone->firstChild->nextSibling->textContent); var_dump($clone->firstChild->nextSibling->nextSibling->textContent); -echo $dom->saveXML($clone), "\n"; +echo $dom->saveXml($clone), "\n"; $clone = $child2->cloneNode(true); -echo $dom->saveXML($clone), "\n"; +echo $dom->saveXml($clone), "\n"; $clone = $child2->cloneNode(false); -echo $dom->saveXML($clone), "\n"; +echo $dom->saveXml($clone), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/default_namespace_move.phpt b/ext/dom/tests/modern/spec/default_namespace_move.phpt index c837a8d178d1..1b937087f6ea 100644 --- a/ext/dom/tests/modern/spec/default_namespace_move.phpt +++ b/ext/dom/tests/modern/spec/default_namespace_move.phpt @@ -11,12 +11,12 @@ $child = $root->appendChild($dom->createElementNS('urn:a', 'foo:baz')); $child->setAttributeNS("urn:b", "foo:attr", "value"); $root->remove(); $dom->appendChild($child); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; $dom2 = Dom\XMLDocument::createEmpty(); $child = $dom2->importNode($child, true); $dom2->appendChild($child); -echo $dom2->saveXML(), "\n"; +echo $dom2->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt index 9926fcd418e5..042a6039cc99 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh44.phpt @@ -7,7 +7,7 @@ dom $root = Dom\XMLDocument::createFromString('<root xmlns:ns2="uri2"><child xmlns:ns1="uri1" xmlns:a0="uri1" xmlns:NS1="uri1"/></root>')->documentElement; $root->firstChild->setAttributeNS('uri3', 'attr1', 'value1'); -echo $root->ownerDocument->saveXML(), "\n"; +echo $root->ownerDocument->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt index 25312ca1916f..2b47f409e079 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh45.phpt @@ -9,7 +9,7 @@ $root = Dom\XMLDocument::createFromString('<el1 xmlns:p="u1" xmlns:q="u1"><el2 x $root->firstChild->setAttributeNS('u1', 'name', 'v'); $attr = $root->firstChild->getAttributeNodeNS("u1", "name"); var_dump($attr->prefix, $attr->namespaceURI); -echo $root->ownerDocument->saveXML($root), "\n"; +echo $root->ownerDocument->saveXml($root), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt index 552339b91f80..55bc816f1b9a 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh47.phpt @@ -23,10 +23,10 @@ $document = Dom\XMLDocument::createFromString(<<<XML </html> XML); -echo $document->saveXML(), "\n"; +echo $document->saveXml(), "\n"; $people = $document->getElementsByTagNameNS(null, 'people')->item(0); -echo $document->saveXML($people), "\n"; +echo $document->saveXml($people), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt b/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt index 498c4dd9ffc3..4c01c2041a26 100644 --- a/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt +++ b/ext/dom/tests/modern/spec/dom_parsing_gh47_bis.phpt @@ -8,10 +8,10 @@ dom // Adapted from https://github.com/web-platform-tests/wpt/blob/master/domparsing/XMLSerializer-serializeToString.html $dom = Dom\XMLDocument::createFromString('<root xmlns=""><child xmlns=""/></root>'); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; $dom = Dom\XMLDocument::createFromString('<root xmlns="urn:u1"><child xmlns="urn:u1"/></root>'); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/gh11404_1.phpt b/ext/dom/tests/modern/spec/gh11404_1.phpt index 7bb61578fa61..ec9c0a30f756 100644 --- a/ext/dom/tests/modern/spec/gh11404_1.phpt +++ b/ext/dom/tests/modern/spec/gh11404_1.phpt @@ -13,7 +13,7 @@ $nodeB = $dom1->createElementNS(null, 'none'); $dom1->documentElement->appendChild($nodeA); $dom1->documentElement->appendChild($nodeB); -echo $dom1->saveXML(), "\n"; +echo $dom1->saveXml(), "\n"; var_dump($nodeA->namespaceURI, $nodeB->namespaceURI); diff --git a/ext/dom/tests/modern/spec/gh11404_2.phpt b/ext/dom/tests/modern/spec/gh11404_2.phpt index b320f467606a..946a3a0140a6 100644 --- a/ext/dom/tests/modern/spec/gh11404_2.phpt +++ b/ext/dom/tests/modern/spec/gh11404_2.phpt @@ -15,7 +15,7 @@ $dom1->documentElement->append( ) ); -echo $dom1->saveXML(); +echo $dom1->saveXml(); ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> diff --git a/ext/dom/tests/modern/spec/import_entity_reference.phpt b/ext/dom/tests/modern/spec/import_entity_reference.phpt index 0922cce088c8..67013cf0c9f8 100644 --- a/ext/dom/tests/modern/spec/import_entity_reference.phpt +++ b/ext/dom/tests/modern/spec/import_entity_reference.phpt @@ -15,7 +15,7 @@ XML); $importer = Dom\XMLDocument::createEmpty(); $imported = $importer->importNode($dom->documentElement, true); -echo $importer->saveXML($imported), "\n"; +echo $importer->saveXml($imported), "\n"; var_dump($imported->firstChild); diff --git a/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt b/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt index e4d612654486..1a4ddbe6a2cf 100644 --- a/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt +++ b/ext/dom/tests/modern/spec/import_of_lone_attribute.phpt @@ -13,7 +13,7 @@ $attr = $root->getAttributeNodeNS("urn:a", "foo"); $importer = Dom\XMLDocument::createEmpty(); $attr = $importer->importNode($attr, true); -echo $importer->saveXML($attr), "\n"; +echo $importer->saveXml($attr), "\n"; unset($dom); unset($root); diff --git a/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt b/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt index d6fc5f7b1789..71598e0414b5 100644 --- a/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt +++ b/ext/dom/tests/modern/spec/import_of_namepace_conflicting_attributes.phpt @@ -17,7 +17,7 @@ $child = $root->appendChild($dom->createElement("child")); $child->setAttributeNS("urn:x", "a:child1", "bar"); $child1 = $child->getAttributeNodeNS("urn:x", "child1"); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; var_dump($root1->prefix, $root1->namespaceURI); var_dump($root2->prefix, $root2->namespaceURI); @@ -27,7 +27,7 @@ $root->setAttributeNodeNS($child1); $importer = Dom\XMLDocument::createEmpty(); $imported = $importer->importNode($root, true); -echo $importer->saveXML($imported), "\n"; +echo $importer->saveXml($imported), "\n"; var_dump($imported->getAttributeNodeNS("urn:a", "root1")->prefix); var_dump($imported->getAttributeNodeNS("urn:a", "root1")->namespaceURI); diff --git a/ext/dom/tests/modern/spec/pre_insertion_validation.phpt b/ext/dom/tests/modern/spec/pre_insertion_validation.phpt index ac06f072748a..d16e3ffad9d9 100644 --- a/ext/dom/tests/modern/spec/pre_insertion_validation.phpt +++ b/ext/dom/tests/modern/spec/pre_insertion_validation.phpt @@ -66,7 +66,7 @@ try { echo "--- Document output ---\n"; -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; echo "--- Document fragment edge cases with multiple elements ---\n"; diff --git a/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt b/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt index a439dfc8611b..bd52ad4b4bc9 100644 --- a/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt +++ b/ext/dom/tests/modern/spec/reconciliation_of_attributes.phpt @@ -21,7 +21,7 @@ $child1 = $child->getAttributeNodeNS("urn:x", "child1"); $child->setAttributeNS("urn:a", "a:child2", "bar"); $child2 = $child->getAttributeNodeNS("urn:a", "child2"); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; var_dump($root1->prefix, $root1->namespaceURI); var_dump($root2->prefix, $root2->namespaceURI); @@ -33,7 +33,7 @@ $root->setAttributeNodeNS($child1); var_dump($child1->prefix, $child1->namespaceURI); var_dump($child2->prefix, $child2->namespaceURI); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt b/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt index 41e3729e31f4..cddd39538e29 100644 --- a/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt +++ b/ext/dom/tests/modern/spec/reconciliation_of_elements.phpt @@ -23,7 +23,7 @@ $a_child = $dom->getElementsByTagName("a:child")[0]; $root->append($a_child); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; echo "---\n"; @@ -31,7 +31,7 @@ echo "---\n"; $root->remove(); unset($root); -echo $dom->saveXML($a_child), "\n"; +echo $dom->saveXml($a_child), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt b/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt index 9d3798eaed46..4d62141bbb32 100644 --- a/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt +++ b/ext/dom/tests/modern/spec/serialize_default_and_prefixed_xmlns.phpt @@ -14,7 +14,7 @@ $dom = Dom\XMLDocument::createFromString(<<<XML </root> XML); -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt b/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt index 10cd94441ea9..4ef10638d1ff 100644 --- a/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt +++ b/ext/dom/tests/modern/spec/serialize_element_unqualified.phpt @@ -6,13 +6,13 @@ dom <?php $dom = Dom\XMLDocument::createFromString('<root xmlns:p1="u1"><child xmlns:p2="u1"><p1:child2/></child></root>'); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; $dom = Dom\XMLDocument::createFromString('<root xmlns:p1="u1"><child xmlns:p2="u1"></child></root>'); $root = $dom->documentElement; $child2 = $root->ownerDocument->createElementNS('u1', 'child2'); $root->firstChild->appendChild($child2); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt b/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt index b158aabf45e5..e64bcaabda9f 100644 --- a/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt +++ b/ext/dom/tests/modern/spec/serialize_non_default_empty_xmlns.phpt @@ -7,7 +7,7 @@ dom $dom = Dom\XMLDocument::createFromString('<test xmlns="urn:a"><a:child xmlns:a=" "/></test>'); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECTF-- diff --git a/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt b/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt index 9c0624fbe0ff..a633efed5493 100644 --- a/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt +++ b/ext/dom/tests/modern/spec/serialize_xml_attribute.phpt @@ -9,7 +9,7 @@ $dom = Dom\XMLDocument::createFromString("<root/>"); $root = $dom->documentElement; $root->setAttribute("foo", "<>\"& \t\n\rfoo "); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt b/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt index cab862c76ebb..6954fa9ae6e7 100644 --- a/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt +++ b/ext/dom/tests/modern/spec/serialize_xml_namespace_on_elements.phpt @@ -9,7 +9,7 @@ $dom = Dom\XMLDocument::createEmpty(); $root = $dom->appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:test")); $root->appendChild($dom->createElementNS("http://www.w3.org/XML/1998/namespace", "xml:child")); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt b/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt index 895133331666..70cae693b09b 100644 --- a/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt +++ b/ext/dom/tests/modern/spec/serialize_xml_ns_decl.phpt @@ -1,5 +1,5 @@ --TEST-- -Document::saveXML() with XML namespace declaration +Document::saveXml() with XML namespace declaration --EXTENSIONS-- dom --FILE-- @@ -8,7 +8,7 @@ dom $dom = Dom\XMLDocument::createFromString('<root/>'); $root = $dom->documentElement; $root->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xml', 'http://www.w3.org/XML/1998/namespace'); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/textContent_edge_cases.phpt b/ext/dom/tests/modern/spec/textContent_edge_cases.phpt index f4d9d942f2d5..2252013c7a3f 100644 --- a/ext/dom/tests/modern/spec/textContent_edge_cases.phpt +++ b/ext/dom/tests/modern/spec/textContent_edge_cases.phpt @@ -34,7 +34,7 @@ echo "pi node text content: "; var_dump($pi->textContent); $container->textContent = NULL; -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/text_merging.phpt b/ext/dom/tests/modern/spec/text_merging.phpt index d6b46d3e0a9d..343d2b45b9f3 100644 --- a/ext/dom/tests/modern/spec/text_merging.phpt +++ b/ext/dom/tests/modern/spec/text_merging.phpt @@ -11,14 +11,14 @@ $span = $dom->createElement("span"); $span->textContent = "qux"; $element->append("foo", "bar", "baz", $span, $dom->createCDATASection("a"), $dom->createCDATASection("b")); $dom->append($element); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; var_dump($element->firstChild->textContent); var_dump($element->firstChild->nextSibling->textContent); var_dump($element->firstChild->nextSibling->nextSibling->textContent); $dom->normalize(); -echo $dom->saveXML(), "\n"; +echo $dom->saveXml(), "\n"; var_dump($element->firstChild->textContent); var_dump($element->firstChild->nextSibling->textContent); diff --git a/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt b/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt index d3857e996544..a8a8c5979864 100644 --- a/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt +++ b/ext/dom/tests/modern/spec/xml_serialize_LIBXML_NOEMPTYTAG.phpt @@ -6,10 +6,10 @@ dom <?php $doc = Dom\XMLDocument::createFromString('<root><child/><br xmlns="http://www.w3.org/1999/xhtml"/></root>'); -echo $doc->saveXML($doc, LIBXML_NOEMPTYTAG), "\n"; +echo $doc->saveXml($doc, LIBXML_NOEMPTYTAG), "\n"; $doc->formatOutput = true; -echo $doc->saveXML($doc, LIBXML_NOEMPTYTAG), "\n"; +echo $doc->saveXml($doc, LIBXML_NOEMPTYTAG), "\n"; ?> --EXPECT-- diff --git a/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt b/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt index f5b9df6688ce..c79945e3d0c5 100644 --- a/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt +++ b/ext/dom/tests/modern/spec/xml_serialize_formatting.phpt @@ -25,7 +25,7 @@ foreach ($tests as $test) { echo "---\n"; $dom = Dom\XMLDocument::createFromString($test); $dom->formatOutput = true; - echo $dom->saveXML(), "\n"; + echo $dom->saveXml(), "\n"; } ?> diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt index d491927c4fed..e8cbea5dba9c 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromEmptyDocument_03.phpt @@ -7,7 +7,7 @@ dom $dom = Dom\XMLDocument::createEmpty("1.0", "ASCII"); $dom->append($dom->createElement("foo")); -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt index 2b1fdda4198c..a24193c8c9d2 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromFile_04.phpt @@ -6,7 +6,7 @@ dom <?php $dom = Dom\XMLDocument::createFromFile(__DIR__."/../../book.xml"); -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt index 8bd484060234..2d846bddc55e 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromString_02.phpt @@ -6,7 +6,7 @@ dom <?php $dom = Dom\XMLDocument::createFromString('<?xml version="1.0"?><container/>'); -var_dump($dom->saveXMLFile("php://stdout")); +var_dump($dom->saveXmlFile("php://stdout")); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt b/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt index 5f061b90bcd2..0a63a6e8a864 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_fromString_04.phpt @@ -11,7 +11,7 @@ if (getenv('SKIP_ASAN') && LIBXML_VERSION < 20911) die('xleak leaks under libxml $dom = Dom\XMLDocument::createFromString('<?xml version="1.0" encoding="Windows-1251"?><container/>'); var_dump($dom->charset); -echo $dom->saveXML(); +echo $dom->saveXml(); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt b/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt index 2271fae9a10d..2e00e9a68876 100644 --- a/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt +++ b/ext/dom/tests/modern/xml/XMLDocument_saveXML_node.phpt @@ -1,5 +1,5 @@ --TEST-- -Dom\XMLDocument::saveXML(File) node +Dom\XMLDocument::saveXml(File) node --EXTENSIONS-- dom --FILE-- @@ -9,7 +9,7 @@ $dom = Dom\XMLDocument::createEmpty("1.0", "ASCII"); $root = $dom->appendChild($dom->createElement("root")); $child1 = $root->appendChild($dom->createElement("child1")); $child2 = $root->appendChild($dom->createElement("child2")); -echo $dom->saveXML($child1); +echo $dom->saveXml($child1); ?> --EXPECT-- diff --git a/ext/dom/tests/modern/xml/bug48339.phpt b/ext/dom/tests/modern/xml/bug48339.phpt index a3d8975adb18..1c7a2eed53e8 100644 --- a/ext/dom/tests/modern/xml/bug48339.phpt +++ b/ext/dom/tests/modern/xml/bug48339.phpt @@ -9,7 +9,7 @@ $element = $document->createElement('test'); $element = $document->appendChild($element); $element->setAttribute("xml:id", 1); $element->setIdAttribute("xml:id", TRUE); -echo $document->saveXML(), "\n"; +echo $document->saveXml(), "\n"; ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> diff --git a/ext/dom/tests/modern/xml/simplexml_interop.phpt b/ext/dom/tests/modern/xml/simplexml_interop.phpt index 0f196fc2ac25..a1b02b7bdd83 100644 --- a/ext/dom/tests/modern/xml/simplexml_interop.phpt +++ b/ext/dom/tests/modern/xml/simplexml_interop.phpt @@ -10,13 +10,13 @@ $sxe = simplexml_load_string('<container xmlns="urn:a">foo</container>'); $element = Dom\import_simplexml($sxe); var_dump($element->attributes); -echo $element->ownerDocument->saveXML($element), "\n"; +echo $element->ownerDocument->saveXml($element), "\n"; $element->appendChild($element->ownerDocument->createElementNS('urn:a', 'child')); -echo $element->ownerDocument->saveXML($element), "\n"; +echo $element->ownerDocument->saveXml($element), "\n"; $sxe->addChild('name', 'value'); -echo $element->ownerDocument->saveXML($element), "\n"; +echo $element->ownerDocument->saveXml($element), "\n"; // This should fail because it has been imported already above in modern DOM try { From 8a2fe55b6afb3859a4c7cfa968e719d9e0919f76 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Tue, 7 May 2024 21:53:33 +0200 Subject: [PATCH 3/4] Update XSL stub --- ext/xsl/php_xsl.stub.php | 8 ++++---- ext/xsl/php_xsl_arginfo.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/xsl/php_xsl.stub.php b/ext/xsl/php_xsl.stub.php index c01e218162ee..24da81b7d71b 100644 --- a/ext/xsl/php_xsl.stub.php +++ b/ext/xsl/php_xsl.stub.php @@ -80,25 +80,25 @@ class XSLTProcessor public int $maxTemplateVars; /** - * @param DOMDocument|DOM\Document|SimpleXMLElement $stylesheet + * @param DOMDocument|Dom\Document|SimpleXMLElement $stylesheet * @tentative-return-type */ public function importStylesheet(object $stylesheet): bool {} /** - * @param DOMDocument|DOM\Document|SimpleXMLElement $document + * @param DOMDocument|Dom\Document|SimpleXMLElement $document * @tentative-return-type */ public function transformToDoc(object $document, ?string $returnClass = null): object|false {} /** - * @param DOMDocument|DOM\Document|SimpleXMLElement $document + * @param DOMDocument|Dom\Document|SimpleXMLElement $document * @tentative-return-type */ public function transformToUri(object $document, string $uri): int {} /** - * @param DOMDocument|DOM\Document|SimpleXMLElement $document + * @param DOMDocument|Dom\Document|SimpleXMLElement $document * @tentative-return-type */ public function transformToXml(object $document): string|null|false {} diff --git a/ext/xsl/php_xsl_arginfo.h b/ext/xsl/php_xsl_arginfo.h index 033e1e8e3b21..20559328d818 100644 --- a/ext/xsl/php_xsl_arginfo.h +++ b/ext/xsl/php_xsl_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: f7f9951cbb437f1985016dc06490d55f711bc725 */ + * Stub hash: 5b4ce3f5f7dee60bde803b3c2eb3994777f56914 */ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_importStylesheet, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, stylesheet, IS_OBJECT, 0) From c46e493b8517ba25335625484965c75ba6fb1d7b Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 8 May 2024 21:23:09 +0200 Subject: [PATCH 4/4] Also rename DtdNamedNodeMap --- ext/dom/php_dom.c | 2 +- ext/dom/php_dom.stub.php | 6 ++-- ext/dom/php_dom_arginfo.h | 36 +++++++++---------- ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 9121efaac071..20acdfd51b8c 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -926,7 +926,7 @@ PHP_MINIT_FUNCTION(dom) 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; diff --git a/ext/dom/php_dom.stub.php b/ext/dom/php_dom.stub.php index 74830a38fddf..1246430c9abd 100644 --- a/ext/dom/php_dom.stub.php +++ b/ext/dom/php_dom.stub.php @@ -1252,7 +1252,7 @@ public function count(): int {} public function getIterator(): \Iterator {} } - class DTDNamedNodeMap implements \IteratorAggregate, \Countable + class DtdNamedNodeMap implements \IteratorAggregate, \Countable { /** @readonly */ public int $length; @@ -1452,9 +1452,9 @@ class DocumentType extends Node implements ChildNode /** @readonly */ public string $name; /** @readonly */ - public DTDNamedNodeMap $entities; + public DtdNamedNodeMap $entities; /** @readonly */ - public DTDNamedNodeMap $notations; + public DtdNamedNodeMap $notations; /** @readonly */ public string $publicId; /** @readonly */ diff --git a/ext/dom/php_dom_arginfo.h b/ext/dom/php_dom_arginfo.h index 07cd886bf78a..72b26a42a97f 100644 --- a/ext/dom/php_dom_arginfo.h +++ b/ext/dom/php_dom_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 092131be963d78c73c5285688de8434b898ba604 */ + * 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) @@ -700,22 +700,22 @@ ZEND_END_ARG_INFO() #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_ARG_TYPE_INFO(0, index, IS_LONG, 0) @@ -1614,12 +1614,12 @@ static const zend_function_entry class_Dom_NamedNodeMap_methods[] = { 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 }; @@ -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); @@ -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; diff --git a/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt b/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt index 7b9d5c3ca173..c94dce263efd 100644 --- a/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt +++ b/ext/dom/tests/modern/xml/DTDNamedNodeMap.phpt @@ -1,5 +1,5 @@ --TEST-- -DTDNamedNodeMap +DtdNamedNodeMap --EXTENSIONS-- dom --FILE--