Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 138) sorted by relevance

123456

/PHP-8.0/ext/xsl/tests/
H A Dbug70078.phpt22 function testPhpFunction($node) {
32 <node>
34 </node>
51node>test2</node><node>test2</node><node>test2</node><node>test2</node><node>test2</node><node>tes…
/PHP-8.0/ext/ffi/tests/
H A Dlist.phpt26 $node->data = 0;
27 $node->next = $node;
28 $node->prev = $node;
29 $this->root = $node;
34 $node = $root->next;
36 $prev = $node;
37 $node = $node->next;
57 $node->prev->next = $node->next;
58 $node->next->prev = $node->prev;
62 $node = $node->next;
[all …]
/PHP-8.0/ext/soap/
H A Dphp_xml.c187 return xmlSearchNs(node->doc, node->parent, NULL); in attr_find_ns()
196 return xmlSearchNs(node->doc, node, NULL); in node_find_ns()
237 return node; in get_attribute_ex()
239 node = node->next; in get_attribute_ex()
248 return node; in get_node_ex()
250 node = node->next; in get_node_ex()
259 return node; in get_node_recurisve_ex()
266 node = node->next; in get_node_recurisve_ex()
277 node = get_node_ex(node, name, name_ns); in get_node_with_attribute_ex()
287 node = node->next; in get_node_with_attribute_ex()
[all …]
H A Dphp_xml.h22 #define get_attribute(node, name) get_attribute_ex(node, name, NULL) argument
23 #define get_node(node, name) get_node_ex(node, name, NULL) argument
24 #define get_node_recursive(node, name) get_node_recursive_ex(node, name, NULL) argument
25 #define get_node_with_attribute(node, name, attr, val) get_node_with_attribute_ex(node, name, NULL,… argument
26 #define get_node_with_attribute_recursive(node, name, attr, val) get_node_with_attribute_recursive_… argument
27 #define node_is_equal(node, name) node_is_equal_ex(node, name, NULL) argument
28 #define attr_is_equal(node, name) attr_is_equal_ex(node, name, NULL) argument
33 xmlNsPtr attr_find_ns(xmlAttrPtr node);
34 xmlNsPtr node_find_ns(xmlNodePtr node);
35 int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns);
[all …]
/PHP-8.0/ext/simplexml/
H A Dsimplexml.c143 node = node->next; in sxe_get_element_by_offset()
164 node = node->next; in sxe_find_element_by_name()
206 node = node->next; in sxe_get_element_by_name()
570 node = node->next; in sxe_prop_dim_write()
1067 node = node->next; in sxe_prop_is_empty()
1197 node = node->next; in sxe_get_prop_hash()
1504 node = node->next; in sxe_add_namespaces()
1872 if (sxe->node && sxe->node->node) { in sxe_object_cast_ex()
2078 node = node->next; in SXE_METHOD()
2112 zend_bool is_root_element = sxe->node && sxe->node->node && sxe->node->node->parent in sxe_object_clone()
[all …]
H A Dphp_simplexml_exports.h30 if ((__s)->node && (__s)->node->node) { \
31 __n = (__s)->node->node; \
/PHP-8.0/ext/simplexml/tests/
H A Dbug37386.phpt2 Bug #39760 (autocreating element doesn't assign value to first node)
10 $sx1->node[0] = 'node1';
11 $sx1->node[1] = 'node2';
14 $node = $sx1->node[0];
15 $node[0] = 'New Value';
22 <root><node>node1</node><node>node2</node></root>
25 <root><node>New Value</node><node>node2</node></root>
/PHP-8.0/ext/dom/
H A Dtext.c71 xmlNodePtr node; in dom_text_whole_text_read() local
76 if (node == NULL) { in dom_text_whole_text_read()
82 …while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTIO… in dom_text_whole_text_read()
83 node = node->prev; in dom_text_whole_text_read()
87 while (node && ((node->type == XML_TEXT_NODE) || (node->type == XML_CDATA_SECTION_NODE))) { in dom_text_whole_text_read()
89 node = node->next; in dom_text_whole_text_read()
113 xmlNodePtr node; in PHP_METHOD() local
130 if (node->type != XML_TEXT_NODE && node->type != XML_CDATA_SECTION_NODE) { in PHP_METHOD()
164 if (node->parent != NULL) { in PHP_METHOD()
180 xmlNodePtr node; in PHP_METHOD() local
[all …]
H A Dxpath.c109 if (node->children) { in dom_xpath_ext_function_php()
112 if (node->children) { in dom_xpath_ext_function_php()
113 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) node->children, node->name); in dom_xpath_ext_function_php()
115 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) "xmlns", node->name); in dom_xpath_ext_function_php()
119 node->ns = curns; in dom_xpath_ext_function_php()
373 ctxp->node = nodep; in php_xpath_eval()
390 ctxp->node = NULL; in php_xpath_eval()
429 if (node->children) { in php_xpath_eval()
433 node = xmlNewDocNode(docp, NULL, (xmlChar *) node->children, node->name); in php_xpath_eval()
435 node = xmlNewDocNode(docp, NULL, (xmlChar *) "xmlns", node->name); in php_xpath_eval()
[all …]
H A Dentityreference.c36 xmlNode *node; in PHP_METHOD() local
52 node = xmlNewReference(NULL, (xmlChar *) name); in PHP_METHOD()
54 if (!node) { in PHP_METHOD()
65 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, node, (void *)intern); in PHP_METHOD()
/PHP-8.0/ext/dom/tests/
H A Ddom_test.inc23 function print_node($node)
25 print "Node Name: " . $node->nodeName;
26 print "\nNode Type: " . $node->nodeType;
27 if ($node->nodeType != 3) {
34 if (strlen(trim($node->nodeValue))) {
45 foreach($nodelist as $node)
47 print_node($node);
51 function print_node_compact($node, $spaces)
53 if ($node->nodeType == 3) {
64 foreach ($nodelist as $node) {
[all …]
H A Ddomelement.phpt16 $node = $dom->documentElement;
17 echo "Tag Name: ".$node->tagName."\n";
20 $node->setAttribute('num', '1');
23 $node->removeAttribute('num');
30 $node->setAttributeNode($lang);
32 $node->removeAttributeNode($lang);
46 $node->setAttributeNodeNS($lang);
57 $node->appendChild($element_ns);
59 $node->appendChild($element_ns);
66 $node->setAttribute('idatt', 'n1');
[all …]
H A Ddom007.phpt49 foreach ($nots AS $key=>$node) {
50 echo "Key $key: ".$node->nodeName." (".$node->systemId.") (".$node->publicId.")\n";
58 $node = $nots->getNamedItem('xxx');
59 var_dump($node);
68 foreach ($ents AS $key=>$node) {
72 foreach ($xkeys as $key => $node) {
73 echo $node;
83 echo $node;
87 $node = $ents->item(3);
88 var_dump($node);
[all …]
H A Dbug46335.phpt13 $node = $dom->createTextNode($textascii);
14 $dom->appendChild($node);
16 print "Text: $node->textContent\n";
18 $matched = $node->splitText($start);
22 $node = $dom->createTextNode($text);
23 $dom->appendChild($node);
25 print "Text: $node->textContent\n";
27 $matched = $node->splitText($start);
H A Dbug36756.phpt2 Bug #36756 (DOMDocument::removeChild corrupts node)
12 $node = $xpath->query('/root')->item(0);
13 echo $node->nodeName . "\n";
15 echo "nodeType: " . $node->nodeType . "\n";
19 $node = $xpath->query('//child')->item(0);
20 echo $node->nodeName . "\n";
24 echo "nodeType: " . $node->nodeType . "\n";
H A DtoString_exceptions.phpt18 '<root xmlns:ns="foo"><node attr="foo" /><node>Text</node><ns:node/><?pi foobar?></root>');
25 $node = $root->childNodes[0];
26 $attrs = $node->attributes;
58 <root xmlns:ns="foo"><node attr="foo"/><node>Text</node><ns:node/><?pi foobar?></root>
H A DDOMNode_removeChild_basic.phpt44 echo "node $index\n";
55 echo "node $index\n";
62 node 4
66 node 3
74 node 2
78 node 1
86 node 0
91 node 0
99 node 1
H A Dbug54382.phpt20 echo 'namespace node does not exist.' . "\n";
22 echo 'namespace node prefix=' . $ns2->prefix . "\n";
23 echo 'namespace node namespaceURI=' . $ns2->namespaceURI . "\n";
27 namespace node prefix=ns2
28 namespace node namespaceURI=http://ns2
H A DDOMDocument_createProcessingInstruction_basic.phpt13 $node = $doc->createElement("para");
14 $newnode = $doc->appendChild($node);
18 $node->appendChild($test_proc_inst0);
22 $node->appendChild($test_proc_inst1);
/PHP-8.0/ext/libxml/tests/
H A Dbug42112.phpt2 Bug #42112 (deleting a node produces memory corruption)
12 $node = $doc->getElementById( 'id1' );
13 print 'Deleting Node: '.$node->nodeName."\n";
14 $node->parentNode->removeChild( $node );
22 $node = $doc->getElementById( 'id1' );
23 if ($node) {
24 print 'Found Node: '.$node->nodeName."\n";
/PHP-8.0/ext/libxml/
H A Dlibxml.c137 if(node) { in php_libxml_node_free()
139 ((php_libxml_node_ptr *) node->_private)->node = NULL; in php_libxml_node_free()
179 curnode = node; in php_libxml_node_free_list()
192 xmlRemoveID(node->doc, (xmlAttrPtr) node); in php_libxml_node_free_list()
1220 return node; in php_libxml_import_node()
1229 if (object->node->node == node) { in php_libxml_increment_node_ptr()
1236 object->node = node->_private; in php_libxml_increment_node_ptr()
1245 object->node->node = node; in php_libxml_increment_node_ptr()
1248 node->_private = object->node; in php_libxml_increment_node_ptr()
1320 if (!node) { in php_libxml_node_free_resource()
[all …]
/PHP-8.0/ext/standard/tests/serialize/
H A Dbug78438.phpt70 $node = array_shift($nodes);
71 foreach ($node->childs as $node) {
72 $nodes[] = $node;
86 > Unserialized total node count was 1, expected 1: CORRECT!
91 > Unserialized total node count was 4, expected 4: CORRECT!
96 > Unserialized total node count was 13, expected 13: CORRECT!
101 > Unserialized total node count was 40, expected 40: CORRECT!
106 > Unserialized total node count was 121, expected 121: CORRECT!
111 > Unserialized total node count was 364, expected 364: CORRECT!
116 > Unserialized total node count was 1093, expected 1093: CORRECT!
[all …]
/PHP-8.0/ext/spl/tests/
H A Dbug54971.phpt12 <node>val1</node>
13 <node>val2</node>
22 $items = $xpath->query('//node');
/PHP-8.0/Zend/
H A Dzend_generators.c182 if (node->children == 1) { in zend_generator_remove_child()
187 if (node->children == 2) { in zend_generator_remove_child()
197 node->children--; in zend_generator_remove_child()
214 generator->node.ptr.root->node.ptr.leaf = NULL; in clear_link_to_root()
466 while (generator->node.parent->node.parent) { in zend_generator_check_placeholder_frame()
505 zend_generator_node *node = &generator->node; in zend_generator_add_child() local
507 if (node->children == 0) { in zend_generator_add_child()
514 (zend_ulong) node->child.single.child, node->child.single.child); in zend_generator_add_child()
515 node->child.ht = ht; in zend_generator_add_child()
521 ++node->children; in zend_generator_add_child()
[all …]
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit_disasm_x86.c122 node = node->child[1]; in zend_jit_disasm_add_symbol()
130 node = node->child[0]; in zend_jit_disasm_add_symbol()
138 if (strcmp(name, node->name) == 0 && sym->end < node->end) { in zend_jit_disasm_add_symbol()
151 if (node && node->info == 1) { in zend_jit_disasm_add_symbol()
153 node->info = 0; in zend_jit_disasm_add_symbol()
167 if (node && node->info == 1) { in zend_jit_disasm_add_symbol()
169 node->info = 0; in zend_jit_disasm_add_symbol()
204 while (node) { in zend_jit_disasm_find_symbol()
206 node = node->child[0]; in zend_jit_disasm_find_symbol()
208 node = node->child[1]; in zend_jit_disasm_find_symbol()
[all …]

Completed in 61 milliseconds

123456