Home
last modified time | relevance | path

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

123456

/PHP-7.4/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-7.4/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-7.4/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.h24 #define get_attribute(node, name) get_attribute_ex(node, name, NULL) argument
25 #define get_node(node, name) get_node_ex(node, name, NULL) argument
26 #define get_node_recursive(node, name) get_node_recursive_ex(node, name, NULL) argument
27 #define get_node_with_attribute(node, name, attr, val) get_node_with_attribute_ex(node, name, NULL,… argument
28 #define get_node_with_attribute_recursive(node, name, attr, val) get_node_with_attribute_recursive_… argument
29 #define node_is_equal(node, name) node_is_equal_ex(node, name, NULL) argument
30 #define attr_is_equal(node, name) attr_is_equal_ex(node, name, NULL) argument
35 xmlNsPtr attr_find_ns(xmlAttrPtr node);
36 xmlNsPtr node_find_ns(xmlNodePtr node);
37 int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns);
[all …]
/PHP-7.4/ext/simplexml/
H A Dsimplexml.c86 if ((__s)->node && (__s)->node->node) { \
87 __n = (__s)->node->node; \
152 node = node->next; in sxe_get_element_by_offset()
173 node = node->next; in sxe_find_element_by_name()
215 node = node->next; in sxe_get_element_by_name()
603 node = node->next; in sxe_prop_dim_write()
1106 node = node->next; in sxe_prop_is_empty()
1236 node = node->next; in sxe_get_prop_hash()
1546 node = node->next; in sxe_add_namespaces()
1909 if (sxe->node && sxe->node->node) { in sxe_object_cast_ex()
[all …]
H A Dsxe.c101 if (intern != NULL && intern->node != NULL) { in PHP_METHOD()
102 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node; in PHP_METHOD()
128 xmlNodePtr node; in PHP_METHOD() local
139 GET_NODE(child, node); in PHP_METHOD()
140 if (node) { in PHP_METHOD()
141 node = node->children; in PHP_METHOD()
143 while (node && node->type != XML_ELEMENT_NODE) { in PHP_METHOD()
144 node = node->next; in PHP_METHOD()
146 RETURN_BOOL(node ? 1 : 0); in PHP_METHOD()
H A Dphp_simplexml_exports.h32 if ((__s)->node && (__s)->node->node) { \
33 __n = (__s)->node->node; \
/PHP-7.4/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-7.4/ext/dom/
H A Dtext.c99 xmlNodePtr node; in dom_text_whole_text_read() local
104 if (node == NULL) { in dom_text_whole_text_read()
110 …while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTIO… in dom_text_whole_text_read()
111 node = node->prev; in dom_text_whole_text_read()
115 while (node && ((node->type == XML_TEXT_NODE) || (node->type == XML_CDATA_SECTION_NODE))) { in dom_text_whole_text_read()
117 node = node->next; in dom_text_whole_text_read()
142 xmlNodePtr node; in PHP_FUNCTION() local
154 if (node->type != XML_TEXT_NODE && node->type != XML_CDATA_SECTION_NODE) { in PHP_FUNCTION()
184 if (node->parent != NULL) { in PHP_FUNCTION()
201 xmlNodePtr node; in PHP_FUNCTION() local
[all …]
H A Dxpath.c147 if (node->children) { in dom_xpath_ext_function_php()
151 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) node->children, node->name); in dom_xpath_ext_function_php()
153 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) "xmlns", node->name); in dom_xpath_ext_function_php()
157 node->ns = curns; in dom_xpath_ext_function_php()
393 ctxp->node = nodep; in php_xpath_eval()
410 ctxp->node = NULL; in php_xpath_eval()
448 if (node->children) { in php_xpath_eval()
451 if (node->children) { in php_xpath_eval()
452 node = xmlNewDocNode(docp, NULL, (xmlChar *) node->children, node->name); in php_xpath_eval()
454 node = xmlNewDocNode(docp, NULL, (xmlChar *) "xmlns", node->name); in php_xpath_eval()
[all …]
/PHP-7.4/ext/dom/tests/
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 Ddom_test.inc23 function print_node($node)
25 print "Node Name: " . $node->nodeName;
26 print "\nNode Type: " . $node->nodeType;
27 if ($node->nodeType != 3) {
28 $child_count = $node->childNodes->length;
34 print "\nNode Content: " . $node->nodeValue;
41 foreach($nodelist as $node)
43 print_node($node);
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 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";
20 $node = $xpath->query('//child')->item(0);
21 echo $node->nodeName . "\n";
24 echo "nodeType: " . $node->nodeType . "\n";
H A DDOMNode_removeChild_basic.phpt44 echo "node $index\n";
55 echo "node $index\n";
61 node 4
65 node 3
73 node 2
77 node 1
85 node 0
90 node 0
98 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";
26 namespace node prefix=ns2
27 namespace node namespaceURI=http://ns2
/PHP-7.4/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-7.4/ext/libxml/
H A Dlibxml.c185 if(node) { in php_libxml_node_free()
187 ((php_libxml_node_ptr *) node->_private)->node = NULL; in php_libxml_node_free()
227 curnode = node; in php_libxml_node_free_list()
240 xmlRemoveID(node->doc, (xmlAttrPtr) node); in php_libxml_node_free_list()
1244 return node; in php_libxml_import_node()
1253 if (object->node->node == node) { in php_libxml_increment_node_ptr()
1260 object->node = node->_private; in php_libxml_increment_node_ptr()
1269 object->node->node = node; in php_libxml_increment_node_ptr()
1272 node->_private = object->node; in php_libxml_increment_node_ptr()
1344 if (!node) { in php_libxml_node_free_resource()
[all …]
/PHP-7.4/Zend/
H A Dzend_generators.c185 next->node.parent = NULL; in zend_generator_dtor_storage()
461 …zend_generator *root = (generator->node.children < 1 ? generator : generator->node.ptr.leaf)->node in zend_generator_check_placeholder_frame()
502 if (node->children == 0) { in zend_generator_get_child()
514 node = &node->child.single.child->node; in zend_generator_search_multi_children_node()
516 return node->children > 1 ? node : NULL; in zend_generator_search_multi_children_node()
529 (zend_ulong) node->child.single.leaf, node->child.single.child); in zend_generator_add_single_child()
530 node->child.ht = ht; in zend_generator_add_single_child()
536 node->children++; in zend_generator_add_single_child()
552 zend_generator *leaf = child->node.children ? child->node.ptr.leaf : child; in zend_generator_add_child()
558 leaf->node.ptr.root = generator->node.ptr.root; in zend_generator_add_child()
[all …]
/PHP-7.4/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-7.4/ext/xmlrpc/libxmlrpc/
H A Dxml_to_soap.c110 xIter = XMLRPC_VectorNext(node); in get_array_soap_type()
123 xIter = XMLRPC_VectorNext(node); in get_array_soap_type()
432 if (node) { in SOAP_to_xml_element_worker()
464 int fault_type = get_fault_type(node); in SOAP_to_xml_element_worker()
469 node = gen_fault_xmlrpc(node, elem_val); in SOAP_to_xml_element_worker()
484 xIter = XMLRPC_VectorNext(node); in SOAP_to_xml_element_worker()
496 simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker()
527 base64_encode_xmlrpc(&buf, XMLRPC_GetValueBase64(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker()
542 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker()
555 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker()
[all …]
H A Dxml_to_xmlrpc.c188 if (node) { in XMLRPC_to_xml_element_worker()
190 XMLRPC_VALUE_TYPE type = XMLRPC_GetValueType(node); in XMLRPC_to_xml_element_worker()
191 XMLRPC_VECTOR_TYPE vtype = XMLRPC_GetVectorType(node); in XMLRPC_to_xml_element_worker()
212 … simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node)); in XMLRPC_to_xml_element_worker()
216 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in XMLRPC_to_xml_element_worker()
239 … base64_encode_xmlrpc(&buf, XMLRPC_GetValueBase64(node), XMLRPC_GetValueStringLen(node)); in XMLRPC_to_xml_element_worker()
247 XMLRPC_VALUE xIter = XMLRPC_VectorRewind(node); in XMLRPC_to_xml_element_worker()
288 xIter = XMLRPC_VectorNext(node); in XMLRPC_to_xml_element_worker()
305 if (XMLRPC_VectorGetValueWithID(node, ELEM_FAULTCODE)) { in XMLRPC_to_xml_element_worker()
327 simplestring_add(&name->text, XMLRPC_GetValueID(node)); in XMLRPC_to_xml_element_worker()
[all …]
/PHP-7.4/ext/spl/tests/
H A Dbug54971.phpt12 <node>val1</node>
13 <node>val2</node>
22 $items = $xpath->query('//node');

Completed in 74 milliseconds

123456