/php-src/ext/libxml/ |
H A D | libxml.c | 334 if (!obj->document || obj->document->class_type < PHP_LIBXML_CLASS_MODERN) { in php_libxml_node_free_list() 1347 if (object->document != NULL) { in php_libxml_increment_doc_ref() 1348 object->document->refcount++; in php_libxml_increment_doc_ref() 1353 object->document->ptr = docp; in php_libxml_increment_doc_ref() 1355 object->document->doc_props = NULL; in php_libxml_increment_doc_ref() 1369 if (document->ptr != NULL) { in php_libxml_decrement_doc_ref_directly() 1372 if (document->doc_props != NULL) { in php_libxml_decrement_doc_ref_directly() 1377 efree(document->doc_props); in php_libxml_decrement_doc_ref_directly() 1380 document->private_data->dtor(document->private_data); in php_libxml_decrement_doc_ref_directly() 1382 efree(document); in php_libxml_decrement_doc_ref_directly() [all …]
|
H A D | php_libxml.h | 116 php_libxml_ref_obj *document; member 148 php_libxml_invalidate_node_list_cache(object_private->document); in php_libxml_invalidate_node_list_cache_from_doc() 166 PHP_LIBXML_API int php_libxml_decrement_doc_ref_directly(php_libxml_ref_obj *document);
|
/php-src/ext/simplexml/ |
H A D | simplexml.c | 63 subnode->document = sxe->document; in _node_as_zval() 64 subnode->document->refcount++; in _node_as_zval() 928 subnode->document = sxe_ref->document; in _get_base_node_value() 1211 if (sxe1->document->ptr == sxe2->document->ptr) { in sxe_objects_compare() 1323 if (!sxe->document) { in PHP_METHOD() 1514 if (!sxe->document) { in PHP_METHOD() 1814 if (sxe->document) { in sxe_object_cast_ex() 2059 clone->document = sxe->document; in sxe_object_clone() 2060 if (clone->document) { in sxe_object_clone() 2061 clone->document->refcount++; in sxe_object_clone() [all …]
|
/php-src/ext/dom/ |
H A D | xml_document.c | 123 dom_set_xml_class(intern->document); in PHP_METHOD() 124 …intern->document->private_data = php_dom_libxml_ns_mapper_header(php_dom_libxml_ns_mapper_create()… in PHP_METHOD() 232 dom_set_xml_class(intern->document); in load_from_helper() 233 dom_document_convert_to_modern(intern->document, lxml_doc); in load_from_helper() 236 void dom_document_convert_to_modern(php_libxml_ref_obj *document, xmlDocPtr lxml_doc) in dom_document_convert_to_modern() argument 239 document->private_data = php_dom_libxml_ns_mapper_header(ns_mapper); in dom_document_convert_to_modern() 334 void dom_set_xml_class(php_libxml_ref_obj *document) in dom_set_xml_class() argument 336 document->class_type = PHP_LIBXML_CLASS_MODERN; in dom_set_xml_class() 337 document->handlers = &php_new_dom_default_document_handlers; in dom_set_xml_class()
|
H A D | php_dom.c | 204 if (document && document->doc_props) { in dom_get_doc_props() 205 return document->doc_props; in dom_get_doc_props() 209 if (document) { in dom_get_doc_props() 219 if (document && document->doc_props) { in dom_get_doc_props_read_only() 257 if (document) { in dom_set_doc_classmap() 276 if (document) { in dom_get_doc_classmap() 559 dom_copy_document_ref(original->document, clone->document); in php_dom_update_document_after_clone() 572 clone->document = original->document; in dom_update_refcount_after_clone() 576 if (original->document != clone->document) { in dom_update_refcount_after_clone() 1357 xmlDocPtr doc = basenode->document ? basenode->document->ptr : NULL; in dom_namednode_iter() [all …]
|
H A D | php_dom.h | 126 dom_doc_propsptr dom_get_doc_props(php_libxml_ref_obj *document); 133 bool dom_get_strict_error(php_libxml_ref_obj *document); 176 void dom_set_xml_class(php_libxml_ref_obj *document); 247 if (!object_private || !object_private->document) { in php_dom_is_cache_tag_stale_from_node() 250 return php_dom_is_cache_tag_stale_from_doc_ptr(cache_tag, object_private->document); in php_dom_is_cache_tag_stale_from_node() 259 if (object_private->document) { in php_dom_mark_cache_tag_up_to_date_from_node() 260 cache_tag->modification_nr = object_private->document->cache_tag.modification_nr; in php_dom_mark_cache_tag_up_to_date_from_node() 268 ZEND_ASSERT(document != NULL); in php_dom_mark_cache_tag_up_to_date_from_doc_ref() 269 cache_tag->modification_nr = document->cache_tag.modification_nr; in php_dom_mark_cache_tag_up_to_date_from_doc_ref() 278 if (object_private->document) { in php_dom_follow_spec_node() [all …]
|
H A D | domimplementation.c | 247 doctobj->document = ((dom_object *)((php_libxml_node_ptr *)docp->_private)->_private)->document; in PHP_METHOD() 267 xmlDocPtr document = NULL; in PHP_METHOD() local 272 document = xmlNewDoc(BAD_CAST "1.0"); in PHP_METHOD() 273 if (UNEXPECTED(document == NULL)) { in PHP_METHOD() 306 (xmlNodePtr) document, in PHP_METHOD() 309 dom_set_xml_class(intern->document); in PHP_METHOD() 316 doctype->doc = document; in PHP_METHOD() 317 document->intSubset = (xmlDtdPtr) doctype; in PHP_METHOD() 318 ZEND_ASSERT(doctype->parent == document); in PHP_METHOD() 339 xmlFreeDoc(document); in PHP_METHOD() [all …]
|
H A D | html_document.c | 543 document, in dom_decode_encode_fast_path() 555 document, in dom_decode_encode_fast_path() 571 document, in dom_decode_encode_fast_path() 612 document, in dom_decode_encode_slow_path() 647 document, in dom_parse_decode_encode_step() 658 document, in dom_parse_decode_encode_step() 704 document, in dom_parse_decode_encode_finish() 859 document, in PHP_METHOD() 885 document, in PHP_METHOD() 1049 document, in PHP_METHOD() [all …]
|
H A D | document.c | 234 if (obj->document) { in dom_document_strict_error_checking_write() 256 if (obj->document) { in dom_document_format_output_write() 277 if (obj->document) { in dom_document_validate_on_parse_write() 298 if (obj->document) { in dom_document_resolve_externals_write() 319 if (obj->document) { in dom_document_preserve_whitespace_write() 340 if (obj->document) { in dom_document_recover_write() 361 if (obj->document) { in dom_document_substitue_entities_write() 1261 intern->document = NULL; in PHP_METHOD() 1341 php_libxml_ref_obj *document = intern->document; in dom_document_parser() local 1465 intern->document->doc_props = NULL; in php_dom_finish_loading_document() [all …]
|
H A D | node.c | 207 php_libxml_invalidate_node_list_cache(obj->document); in dom_node_node_value_write() 736 php_libxml_invalidate_node_list_cache(obj->document); in dom_node_text_content_write() 798 childobj->document = intern->document; in _php_dom_insert_fragment() 851 childobj->document = intern->document; in dom_node_insert_before_legacy() 855 php_libxml_invalidate_node_list_cache(intern->document); in dom_node_insert_before_legacy() 992 php_libxml_invalidate_node_list_cache(intern->document); in dom_node_insert_before_modern() 1189 newchildobj->document = intern->document; in dom_node_replace_child() 1201 php_libxml_invalidate_node_list_cache(intern->document); in dom_node_replace_child() 1251 php_libxml_invalidate_node_list_cache(intern->document); in dom_node_remove_child() 1303 childobj->document = intern->document; in dom_node_append_child_legacy() [all …]
|
H A D | xpath.c | 154 intern->dom.document = docobj->document; in dom_xpath_construct()
|
/php-src/ext/dom/tests/modern/common/ |
H A D | namespace_sxe_interaction.phpt | 39 // Importing should yield the exact same document
|
/php-src/ |
H A D | UPGRADING.INTERNALS | 205 - Added a way to override document handlers (e.g. serialization) with
|
/php-src/ext/simplexml/tests/ |
H A D | getDocNamespaces_no_internal_declaration.phpt | 2 getDocNamespaces() without internal namespace declaration in the document
|
/php-src/ext/xsl/ |
H A D | php_xsl.stub.php | 92 public function transformToDoc(object $document, ?string $returnClass = null): object|false {} argument 98 public function transformToUri(object $document, string $uri): int {} argument 104 public function transformToXml(object $document): string|null|false {} argument
|
H A D | php_xsl_arginfo.h | 9 ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0) 14 ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0) 19 ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0)
|
/php-src/ext/dom/tests/modern/xml/ |
H A D | XMLDocument_node_ownerDocument_for_XML.phpt | 2 Dom\XMLDocument getting ownerDocument from a node in an XML document should yield a Dom\XMLDocument 50 string(9) "#document"
|
H A D | bug48339.phpt | 7 $document = Dom\XMLDocument::createEmpty(); 8 $element = $document->createElement('test'); 9 $element = $document->appendChild($element); 12 echo $document->saveXml(), "\n";
|
H A D | XMLDocument_createFromString_override_encoding.phpt | 14 // The override encoding matches with the document encoding attribute 19 // The override encoding mismatches with the document encoding attribute 26 Dom\XMLDocument::createFromString(): Argument #3 ($overrideEncoding) must be a valid document encod…
|
H A D | XMLDocument_debug.phpt | 47 string(9) "#document"
|
H A D | XMLDocument_fromEmptyDocument_01.phpt | 12 …: Dom\XMLDocument::createEmpty(): Argument #2 ($encoding) is not a valid document encoding in %s:%d
|
H A D | XMLDocument_fromEmptyDocument_02.phpt | 47 string(9) "#document"
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | dom_parsing_gh47.phpt | 8 $document = Dom\XMLDocument::createFromString(<<<XML 26 echo $document->saveXml(), "\n"; 28 $people = $document->getElementsByTagNameNS(null, 'people')->item(0); 29 echo $document->saveXml($people), "\n";
|
H A D | textContent_edge_cases.phpt | 10 echo "document text content: "; 41 document text content: NULL
|
H A D | appendChild_dtd_legacy.phpt | 35 A document may only contain one document type
|