/PHP-8.2/ext/dom/tests/ |
H A D | DOMNode_normalize_basic.phpt | 14 * Calculate the number of title text nodes (1). 16 * Normalize author. Calculate the number of title text nodes (2). 17 * Normalize title. Calculate the number of title text nodes (1). 34 echo "Number of child nodes of title = "; 47 echo "Number of child nodes of title after normalizing author = "; 51 // should concatenate first and second title text nodes 54 echo "Number of child nodes of title after normalizing title = "; 59 Number of child nodes of title = int(1) 60 Number of child nodes of title after adding second title = int(2) 61 Number of child nodes of title after normalizing author = int(2) [all …]
|
H A D | DOMNode_hasChildNodes_basic.phpt | 2 Test whether a node has child nodes: hasChildNodes() 13 * Check for child nodes of the <book>, <title> and This is the title 28 echo "Root has child nodes: "; 31 echo "Title has child nodes: "; 34 echo "Text has child nodes: "; 39 Root has child nodes: bool(true) 40 Title has child nodes: bool(true) 41 Text has child nodes: bool(false)
|
H A D | DOMDocumentFragment_appendXML_hasChildNodes_basic.phpt | 11 echo "has child nodes\n"; 13 echo "has no child nodes\n"; 17 echo "has child nodes\n"; 19 echo "has no child nodes\n"; 23 has no child nodes 24 has child nodes
|
H A D | DOMNode_hasChildNodes.phpt | 17 echo "Document has child nodes\n"; 20 echo "Document has child nodes\n"; 28 echo "Document has child nodes\n"; 31 echo "Document with 2 child nodes\n"; 39 Document has child nodes 41 Document has child nodes 46 Document has child nodes 48 Document with 2 child nodes
|
H A D | bug67949.phpt | 17 $nodes = $doc->getElementsByTagName('div'); 20 var_dump(isset($nodes[0])); 21 var_dump(isset($nodes[1])); 22 var_dump(isset($nodes[-1])); 25 var_dump($nodes[0]->textContent); 26 var_dump($nodes[1]->textContent); 31 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 38 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 43 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent); 47 var_dump($nodes[][] = 1);
|
H A D | bug42082.phpt | 9 $nodes = $xpath->query('*'); 10 echo get_class($nodes), "\n"; 11 var_dump($nodes->length); 12 $length = $nodes->length; 13 var_dump(empty($nodes->length), empty($length));
|
H A D | uaf_doctype_iterator.phpt | 2 UAF when removing doctype and iterating over the child nodes 17 $nodes = $ref->childNodes; 19 foreach($nodes as $str) {} 20 var_dump($nodes);
|
H A D | DOMNode_getLineNo_basic.phpt | 10 $nodes = $doc->getElementsByTagName('title'); 11 foreach($nodes as $node) {
|
H A D | bug43364.phpt | 2 Bug #43364 (recursive xincludes don't remove internal xml nodes properly) 7 function loopElements($nodes) 10 foreach($nodes as $node) {
|
H A D | gh15551.phpt | 8 $nodes = $fragment->childNodes; 9 $iter = $nodes->getIterator();
|
H A D | DOMNode_getNodePath_basic.phpt | 10 $nodes = $doc->getElementsByTagName('title'); 11 foreach($nodes as $node) {
|
H A D | childNodes_current_crash.phpt | 11 $nodes = $dom->documentElement->childNodes; 12 $iter = $nodes->getIterator();
|
H A D | DOMNode_removeChild_basic.phpt | 40 echo "original has $len nodes\n"; 51 echo "after text removed it now has $len nodes\n"; 59 original has 5 nodes 88 after text removed it now has 2 nodes
|
H A D | entity_reference_stale_01.phpt | 19 $nodes = $ref->childNodes; 23 var_dump($nodes);
|
H A D | entity_reference_stale_02.phpt | 21 $nodes = $ref->childNodes; 22 $iter = $nodes->getIterator();
|
H A D | xpath_domnamespacenode.phpt | 15 $nodes = $xpath->query('//namespace::*'); 16 var_dump($nodes->item(0));
|
/PHP-8.2/ext/dom/ |
H A D | parentnode.c | 130 if (Z_TYPE(nodes[i]) == IS_OBJECT) { in dom_is_node_in_list() 131 const zend_class_entry *ce = Z_OBJCE(nodes[i]); in dom_is_node_in_list() 186 if (Z_TYPE(nodes[i]) == IS_OBJECT) { in dom_zvals_to_fragment() 187 newNodeObj = Z_DOMOBJ_P(&nodes[i]); in dom_zvals_to_fragment() 221 ZEND_ASSERT(Z_TYPE(nodes[i]) == IS_STRING); in dom_zvals_to_fragment() 268 zend_uchar type = Z_TYPE(nodes[i]); in dom_sanity_check_node_list_for_insertion() 270 const zend_class_entry *ce = Z_OBJCE(nodes[i]); in dom_sanity_check_node_list_for_insertion() 273 xmlNodePtr node = dom_object_get_node(Z_DOMOBJ_P(nodes + i)); in dom_sanity_check_node_list_for_insertion() 372 dom_parent_node_append(context, nodes, nodesc); in dom_parent_node_prepend() 422 if (!dom_is_node_in_list(nodes, nodesc, viable_next_sibling)) { in dom_parent_node_after() [all …]
|
H A D | php_dom.stub.php | 273 /** @param DOMNode|string $nodes */ 276 /** @param DOMNode|string $nodes */ 284 /** @param DOMNode|string $nodes */ 287 /** @param DOMNode|string $nodes */ 290 /** @param DOMNode|string $nodes */ 461 /** @param DOMNode|string $nodes */ 464 /** @param DOMNode|string $nodes */ 510 /** @param DOMNode|string $nodes */ 515 /** @param DOMNode|string $nodes */ 518 /** @param DOMNode|string $nodes */ [all …]
|
H A D | php_dom.h | 144 void dom_parent_node_prepend(dom_object *context, zval *nodes, int nodesc); 145 void dom_parent_node_append(dom_object *context, zval *nodes, int nodesc); 146 void dom_parent_node_after(dom_object *context, zval *nodes, int nodesc); 147 void dom_parent_node_before(dom_object *context, zval *nodes, int nodesc); 149 void dom_child_replace_with(dom_object *context, zval *nodes, int nodesc);
|
/PHP-8.2/ext/pdo_pgsql/tests/ |
H A D | bug43925.phpt | 17 @$dbh->query('DROP TABLE nodes'); 20 CREATE TABLE nodes 28 $dbh->query('INSERT INTO nodes (id, root, lft, rgt) VALUES (1, 1, 1, 6);'); 29 $dbh->query('INSERT INTO nodes (id, root, lft, rgt) VALUES (2, 1, 2, 3);'); 30 $dbh->query('INSERT INTO nodes (id, root, lft, rgt) VALUES (3, 1, 4, 5);'); 35 FROM nodes 55 $dbh->query('DROP TABLE nodes');
|
/PHP-8.2/ext/simplexml/tests/ |
H A D | bug48601.phpt | 10 $nodes = $sxe->xpath("/root/node2/@test"); 12 if (! is_array($nodes)) { 15 echo "Result Count: " . count($nodes) . "\n";
|
H A D | bug69491.phpt | 2 Bug #69491 (simplexml doesn't correctly parse empty nodes on same line as another node)
|
/PHP-8.2/ext/standard/tests/serialize/ |
H A D | bug78438.phpt | 64 $nodes = [$tree]; 67 while (count($nodes) > 0) { 70 $node = array_shift($nodes); 72 $nodes[] = $node;
|
/PHP-8.2/ext/xmlreader/tests/ |
H A D | next_basic.phpt | 8 $xml = '<?xml version="1.0" encoding="UTF-8"?><nodes><node1><sub /></node1> 9 <node2><sub /></node2><node3><sub /></node3><node4><sub /></node4></nodes>';
|
/PHP-8.2/Zend/tests/ |
H A D | replace_pred_pi_node.phpt | 2 Handling of pi nodes when replacing a predecessor
|