/PHP-8.4/ext/dom/tests/ |
H A D | bug32615.phpt | 21 $root->replaceChild($frag, $root->firstChild); 27 $root->replaceChild($frag, $root->lastChild); 36 $root->insertBefore($frag, $root->firstChild); 42 $root->replaceChild($frag, $root->lastChild); 47 $root->removeChild($root->firstChild); 52 $root->removeChild($root->firstChild); 56 $root->insertBefore($frag, $root->firstChild); 69 $root->replaceChild($frag, $root->firstChild); 76 <root><first/><newsecond/><newthird/><newfourth/></root> 79 <root><first/><second/><third/><fourth/></root> [all …]
|
H A D | DOMCharacterData_data_basic_002.phpt | 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 16 $root->appendChild($cdata); 25 <root><![CDATA[t]]></root> 28 <root><![CDATA[100]]></root>
|
H A D | DOMNamedNodeMap_count.phpt | 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $root->setAttribute('attribute-' . $i, 'value-' . $i); 18 $root->appendChild($item); 20 var_dump($root->attributes->length); 21 var_dump($root->attributes->count()); 22 var_dump(count($root->attributes));
|
H A D | DomNodeList_count.phpt | 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $root->setAttribute('attribute-' . $i, 'value-' . $i); 18 $root->appendChild($item); 20 var_dump($root->childNodes->length); 21 var_dump($root->childNodes->count()); 22 var_dump(count($root->childNodes));
|
H A D | gh11500.phpt | 9 $root = $dom->createElementNS($root_ns, 'root'); 10 $dom->appendChild($root); 14 $root->appendChild($a1); 18 $root->appendChild($a2); 31 $root = $dom->createElementNS($root_ns, 'root'); 32 $dom->appendChild($root); 37 $root->appendChild($a1); 48 $root->appendChild($a2); 102 <root xmlns="http://example.com"><a1><b1/></a1><a2><b2/></a2></root> 120 <root xmlns="http://example.com"><a1><b1><c1/></b1></a1><a2><b2><c2/></b2></a2></root> [all …]
|
H A D | DOMDocument_saveXML_XML_SAVE_NO_DECL.phpt | 12 $doc->loadXML('<root>é</root>'); 26 <root>é</root> 27 <root>é</root> 28 <root>é</root>
|
H A D | DOMAttr_ownerElement_error_001.phpt | 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 14 $attr = $root->setAttribute('category', 'books'); 15 $document->removeChild($root); 16 $root = null;
|
H A D | DOMNamedNodeMap_edge_case_offset.phpt | 9 $root = $document->createElement('root'); 10 $document->appendChild($root); 11 $root->setAttribute('attrib', 'value'); 12 var_dump($root->attributes->length); 15 var_dump($root->attributes[-1]); 20 $root->attributes[][] = null;
|
/PHP-8.4/ext/dom/tests/modern/spec/ |
H A D | xml_serialize_formatting.phpt | 9 '<root></root>', 10 '<root> </root>', 16 <root> 35 <root/> 38 <root> </root> 47 <root> 51 </root> 57 <root> 65 </root> 68 <root> [all …]
|
H A D | serialize_element_unqualified.phpt | 8 $dom = Dom\XMLDocument::createFromString('<root xmlns:p1="u1"><child xmlns:p2="u1"><p1:child2/></ch… 11 $dom = Dom\XMLDocument::createFromString('<root xmlns:p1="u1"><child xmlns:p2="u1"></child></root>'… 12 $root = $dom->documentElement; 13 $child2 = $root->ownerDocument->createElementNS('u1', 'child2'); 14 $root->firstChild->appendChild($child2); 20 <root xmlns:p1="u1"><child xmlns:p2="u1"><p1:child2/></child></root> 22 <root xmlns:p1="u1"><child xmlns:p2="u1"><p2:child2/></child></root>
|
H A D | clone_text_nodes.phpt | 9 $root = $dom->appendChild($dom->createElementNS("urn:a", "a:root")); 10 $root->setAttribute("foo", "bar"); 12 $root->appendChild($dom->createTextNode("a")); 13 $root->appendChild($dom->createTextNode("foo")); 14 $root->appendChild($dom->createTextNode("b")); 15 $child = $root->appendChild($dom->createElement("child")); 17 $child2 = $root->appendChild($dom->createElement("child2")); 22 $clone = clone $root; 37 <a:root xmlns:a="urn:a" foo="bar">afoob<child>c</child><child2>d</child2></a:root> 41 <a:root xmlns:a="urn:a" foo="bar">afoob<child>c</child><child2>d</child2></a:root>
|
H A D | reconciliation_of_attributes.phpt | 9 $root = $dom->appendChild($dom->createElement('root')); 11 $root->setAttributeNS("urn:a", "a:root1", "bar"); 12 $root1 = $root->getAttributeNodeNS("urn:a", "root1"); 13 $root->setAttributeNS("urn:b", "a:root2", "bar"); 14 $root2 = $root->getAttributeNodeNS("urn:b", "root2"); 15 $root->setAttributeNS("urn:a", "a:root3", "bar"); 16 $root3 = $root->getAttributeNodeNS("urn:a", "root3"); 18 $child = $root->appendChild($dom->createElement("child")); 31 $root->setAttributeNodeNS($child1); 41 …root xmlns:a="urn:a" a:root1="bar" xmlns:ns1="urn:b" ns1:root2="bar" a:root3="bar"><child xmlns:a=… [all …]
|
H A D | dom_parsing_gh47_bis.phpt | 10 $dom = Dom\XMLDocument::createFromString('<root xmlns=""><child xmlns=""/></root>'); 13 $dom = Dom\XMLDocument::createFromString('<root xmlns="urn:u1"><child xmlns="urn:u1"/></root>'); 19 <root xmlns=""><child xmlns=""/></root> 21 <root xmlns="urn:u1"><child xmlns="urn:u1"/></root>
|
/PHP-8.4/ext/ffi/tests/ |
H A D | list.phpt | 11 private $root; 29 $this->root = $node; 33 $root = $this->root; 34 $node = $root->next; 35 while ($node != $root) { 40 FFI::free($root); 53 $root = $this->root; 54 $node = $root->next; 55 while ($node != $root) { 69 $root = $this->root; [all …]
|
/PHP-8.4/ext/simplexml/tests/ |
H A D | bug35785.phpt | 8 $xml = simplexml_load_string("<root></root>"); 11 $xml = simplexml_load_string("<root></root>"); 15 $xml = simplexml_load_string("<root></root>"); 21 <root><bla><posts><name>FooBar</name></posts></bla></root> 24 <root><bla><posts><name>FooBar</name></posts></bla></root> 26 <root><bla><posts><name>FooBar</name></posts></bla></root>
|
H A D | bug26976.phpt | 8 $root = simplexml_load_string( 10 <root> 15 </root> 18 echo $root->child[0], "\n"; 19 echo $root->child[1], "\n"; 20 echo $root->child[2], "\n"; 21 echo $root->child[3], "\n";
|
/PHP-8.4/ext/dom/lexbor/lexbor/core/ |
H A D | sbst.h | 37 const lexbor_sbst_entry_static_t *root, in lexbor_sbst_entry_static_find() argument 40 while (root != strt) { in lexbor_sbst_entry_static_find() 41 if (root->key == key) { in lexbor_sbst_entry_static_find() 42 return root; in lexbor_sbst_entry_static_find() 44 else if (key > root->key) { in lexbor_sbst_entry_static_find() 45 root = &strt[root->right]; in lexbor_sbst_entry_static_find() 48 root = &strt[root->left]; in lexbor_sbst_entry_static_find()
|
H A D | shs.c | 34 lexbor_shs_entry_get_static(const lexbor_shs_entry_t *root, in lexbor_shs_entry_get_static() argument 38 entry = root + lexbor_shs_make_id_m(key, key_len, root->key_len); in lexbor_shs_entry_get_static() 49 entry = &root[entry->next]; in lexbor_shs_entry_get_static() 55 entry = &root[entry->next]; in lexbor_shs_entry_get_static() 63 lexbor_shs_entry_get_lower_static(const lexbor_shs_entry_t *root, in lexbor_shs_entry_get_lower_static() argument 67 entry = root + lexbor_shs_make_id_lower_m(key, key_len, root->key_len); in lexbor_shs_entry_get_lower_static() 78 entry = &root[entry->next]; in lexbor_shs_entry_get_lower_static() 84 entry = &root[entry->next]; in lexbor_shs_entry_get_lower_static() 96 entry = root + lexbor_shs_make_id_upper_m(key, key_len, root->key_len); in lexbor_shs_entry_get_upper_static() 107 entry = &root[entry->next]; in lexbor_shs_entry_get_upper_static() [all …]
|
/PHP-8.4/ext/dom/tests/modern/css_selectors/ |
H A D | pseudo_classes_root.phpt | 2 CSS Selectors - Pseudo classes: root 14 test_helper($dom, ':root', true); 17 test_helper($fragment, ':root', true); 18 test_helper($dom->createElement("foo"), ':root', true); 20 test_helper($dom->createElement("not-a-root"), ":root", true); 24 --- Selector: :root --- 26 --- Selector: :root --- 28 --- Selector: :root --- 29 --- Selector: :root ---
|
/PHP-8.4/ext/dom/tests/modern/common/ |
H A D | Document_title_getter.phpt | 8 echo "=== HTML namespaced root ===\n"; 13 …om\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title> only ws at… 16 …om\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title>only ws at b… 28 $dom = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title></tit… 31 $dom = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"></root>"); 34 … = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title> \t\r\n… 46 $dom = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title/></ro… 50 echo "=== SVG namespaced root ===\n"; 52 …om = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title>title<… 66 === HTML namespaced root === [all …]
|
/PHP-8.4/ext/standard/tests/serialize/ |
H A D | serialization_objects_019.phpt | 7 $root = new stdClass; 9 $root->a = [$end]; 10 $root->b = $root->a; 12 echo serialize($root), "\n"; 16 $root = new stdClass; 18 $root->a = [[$end]]; 19 $root->b = $root->a; 21 echo serialize($root), "\n"; 28 $root = [$object, $array]; 31 echo serialize($root), "\n";
|
/PHP-8.4/ext/dom/tests/modern/html/serializer/ |
H A D | HTMLDocument_entity_reference.phpt | 9 $root = $dom1->appendChild($dom1->createElement('root')); 10 $root->appendChild($dom1->createEntityReference('nbsp')); 13 $dom2->appendChild($dom2->importLegacyNode($root, true)); 21 <root> </root> 22 <root> </root>
|
H A D | HTMLDocument_serialize_element_ns.phpt | 9 $root = $dom->appendChild($dom->createElement("root")); 11 $root->append("\n"); 12 $root->append($dom->createElementNS("http://php.net", "noprefix"), "\n"); 13 $root->append($dom->createElementNS("http://php.net", "with:prefix"), "\n"); 14 $root->append($dom->createElementNS("http://www.w3.org/1999/xhtml", "xhtml:br"), "\n"); 15 $root->append($dom->createElementNS("http://www.w3.org/2000/svg", "s:svg"), "\n"); 16 $root->append($dom->createElementNS("http://www.w3.org/1998/Math/MathML", "m:math"), "\n"); 23 <root> 29 </root>
|
H A D | HTMLDocument_serialize_attribute_ns.phpt | 9 $root = $dom->appendChild($dom->createElement("root")); 10 $root->setAttributeNodeNS($dom->createAttributeNS("http://php.net", "x:foo")); 11 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/XML/1998/namespace", "y:id")); 12 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns")); 13 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:f")); 14 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/1999/xlink", "z:f")); 21 <root x:foo="" xml:id="" xmlns="" xmlns:f="" xlink:f=""></root>
|
/PHP-8.4/ext/xmlreader/tests/ |
H A D | bug42139.phpt | 10 <!DOCTYPE root [ 11 <!ELEMENT root ANY> 14 <root>&x;</root> 26 10, root, 27 1, root, 29 15, root,
|