/PHP-7.2/ext/soap/ |
H A D | php_xml.c | 192 return xmlSearchNs(node->doc, node->parent, NULL); in attr_find_ns() 201 return xmlSearchNs(node->doc, node, NULL); in node_find_ns() 242 return node; in get_attribute_ex() 244 node = node->next; in get_attribute_ex() 253 return node; in get_node_ex() 255 node = node->next; in get_node_ex() 264 return node; in get_node_recurisve_ex() 271 node = node->next; in get_node_recurisve_ex() 282 node = get_node_ex(node, name, name_ns); in get_node_with_attribute_ex() 292 node = node->next; in get_node_with_attribute_ex() [all …]
|
H A D | php_xml.h | 25 #define get_attribute(node, name) get_attribute_ex(node, name, NULL) argument 26 #define get_node(node, name) get_node_ex(node, name, NULL) argument 27 #define get_node_recursive(node, name) get_node_recursive_ex(node, name, NULL) argument 28 #define get_node_with_attribute(node, name, attr, val) get_node_with_attribute_ex(node, name, NULL,… argument 29 #define get_node_with_attribute_recursive(node, name, attr, val) get_node_with_attribute_recursive_… argument 30 #define node_is_equal(node, name) node_is_equal_ex(node, name, NULL) argument 31 #define attr_is_equal(node, name) attr_is_equal_ex(node, name, NULL) argument 36 xmlNsPtr attr_find_ns(xmlAttrPtr node); 37 xmlNsPtr node_find_ns(xmlNodePtr node); 38 int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns); [all …]
|
/PHP-7.2/ext/simplexml/ |
H A D | simplexml.c | 88 if ((__s)->node && (__s)->node->node) { \ 89 __n = (__s)->node->node; \ 154 node = node->next; in sxe_get_element_by_offset() 175 node = node->next; in sxe_find_element_by_name() 217 node = node->next; in sxe_get_element_by_name() 610 node = node->next; in sxe_prop_dim_write() 1101 node = node->next; in sxe_prop_is_empty() 1233 node = node->next; in sxe_get_prop_hash() 1541 node = node->next; in sxe_add_namespaces() 1901 if (sxe->node && sxe->node->node) { in sxe_object_cast_ex() [all …]
|
H A D | sxe.c | 107 if (intern != NULL && intern->node != NULL) { in PHP_METHOD() 108 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node; in PHP_METHOD() 137 xmlNodePtr node; in PHP_METHOD() local 148 GET_NODE(child, node); in PHP_METHOD() 149 if (node) { in PHP_METHOD() 150 node = node->children; in PHP_METHOD() 152 while (node && node->type != XML_ELEMENT_NODE) { in PHP_METHOD() 153 node = node->next; in PHP_METHOD() 155 RETURN_BOOL(node ? 1 : 0); in PHP_METHOD()
|
H A D | php_simplexml_exports.h | 34 if ((__s)->node && (__s)->node->node) { \ 35 __n = (__s)->node->node; \
|
/PHP-7.2/ext/simplexml/tests/ |
H A D | bug37386.phpt | 2 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.2/ext/dom/ |
H A D | text.c | 103 xmlNodePtr node; in dom_text_whole_text_read() local 108 if (node == NULL) { in dom_text_whole_text_read() 114 …while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTIO… in dom_text_whole_text_read() 115 node = node->prev; in dom_text_whole_text_read() 119 while (node && ((node->type == XML_TEXT_NODE) || (node->type == XML_CDATA_SECTION_NODE))) { in dom_text_whole_text_read() 121 node = node->next; in dom_text_whole_text_read() 146 xmlNodePtr node; in PHP_FUNCTION() local 157 if (node->type != XML_TEXT_NODE && node->type != XML_CDATA_SECTION_NODE) { in PHP_FUNCTION() 187 if (node->parent != NULL) { in PHP_FUNCTION() 204 xmlNodePtr node; in PHP_FUNCTION() local [all …]
|
H A D | xpath.c | 149 if (node->children) { in dom_xpath_ext_function_php() 153 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) node->children, node->name); in dom_xpath_ext_function_php() 155 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) "xmlns", node->name); in dom_xpath_ext_function_php() 159 node->ns = curns; in dom_xpath_ext_function_php() 392 ctxp->node = nodep; in php_xpath_eval() 409 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.2/ext/mbstring/oniguruma/src/ |
H A D | regparse.h | 69 #define NSTR(node) (&((node)->u.str)) argument 70 #define NCCLASS(node) (&((node)->u.cclass)) argument 71 #define NCTYPE(node) (&((node)->u.ctype)) argument 72 #define NBREF(node) (&((node)->u.bref)) argument 73 #define NQTFR(node) (&((node)->u.qtfr)) argument 75 #define NANCHOR(node) (&((node)->u.anchor)) argument 76 #define NCONS(node) (&((node)->u.cons)) argument 77 #define NCALL(node) (&((node)->u.call)) argument 79 #define NCAR(node) (NCONS(node)->car) argument 80 #define NCDR(node) (NCONS(node)->cdr) argument [all …]
|
H A D | regtrav.c | 35 capture_tree_traverse(OnigCaptureTreeNode* node, int at, in capture_tree_traverse() argument 41 if (node == (OnigCaptureTreeNode* )0) in capture_tree_traverse() 45 r = (*callback_func)(node->group, node->beg, node->end, in capture_tree_traverse() 50 for (i = 0; i < node->num_childs; i++) { in capture_tree_traverse() 51 r = capture_tree_traverse(node->childs[i], at, in capture_tree_traverse() 57 r = (*callback_func)(node->group, node->beg, node->end, in capture_tree_traverse()
|
H A D | regcomp.c | 1515 } while (IS_NOT_NULL(node = NCDR(node))); in compile_length_tree() 1527 } while (IS_NOT_NULL(node = NCDR(node))); in compile_length_tree() 1605 } while (r == 0 && IS_NOT_NULL(node = NCDR(node))); in compile_tree() 1633 } while (IS_NOT_NULL(node = NCDR(node))); in compile_tree() 1775 } while (r == 0 && IS_NOT_NULL(node = NCDR(node))); in noname_disable_map() 2791 } while (IS_NOT_NULL(node = NCDR(node))); in subexp_inf_recursive_check() 2903 } while (IS_NOT_NULL(node = NCDR(node))); in subexp_recursive_check() 2967 } while (IS_NOT_NULL(node = NCDR(node))); in subexp_recursive_check_trav() 6140 while (IS_NOT_NULL(node = NCDR(node))) { in print_indent_tree() 6151 (NSTRING_IS_RAW(node) ? "-raw" : ""), node); in print_indent_tree() [all …]
|
/PHP-7.2/ext/dom/tests/ |
H A D | domelement.phpt | 16 $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 D | dom007.phpt | 49 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 D | bug46335.phpt | 13 $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 D | dom_test.inc | 23 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 D | bug36756.phpt | 2 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 D | DOMNode_removeChild_basic.phpt | 44 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
|
/PHP-7.2/ext/tidy/examples/ |
H A D | dumpit5.php | 54 function dump_tree(tidyNode $node, $indent = 0) { argument 57 $nodename = trim(strtoupper($node->name)); 61 do_leaf(" + $nodename (".node_type($node->type).")\n", $indent); 67 if($node->type == TIDY_NODETYPE_TEXT) { 69 do_leaf(" +---- Value: '{$node->value}'\n", $indent); 72 if(count($node->attribute)) { 76 foreach($node->attribute as $name=>$value) { 83 if($node->hasChildren()) { 84 foreach($node->child as $child) {
|
H A D | urlgrab5.php | 15 function dump_nodes(tidyNode $node, &$urls = NULL) { argument 19 if(isset($node->id)) { 20 if($node->id == TIDY_TAG_A) { 21 $urls[] = $node->attribute['href']; 25 if($node->hasChildren()) { 27 foreach($node->child as $c) {
|
/PHP-7.2/ext/libxml/ |
H A D | libxml.c | 190 if(node) { in php_libxml_node_free() 192 ((php_libxml_node_ptr *) node->_private)->node = NULL; in php_libxml_node_free() 232 curnode = node; in php_libxml_node_free_list() 245 xmlRemoveID(node->doc, (xmlAttrPtr) node); in php_libxml_node_free_list() 1193 return node; in php_libxml_import_node() 1202 if (object->node->node == node) { in php_libxml_increment_node_ptr() 1209 object->node = node->_private; in php_libxml_increment_node_ptr() 1218 object->node->node = node; in php_libxml_increment_node_ptr() 1221 node->_private = object->node; in php_libxml_increment_node_ptr() 1293 if (!node) { in php_libxml_node_free_resource() [all …]
|
/PHP-7.2/Zend/ |
H A D | zend_generators.c | 437 …zend_generator *root = (generator->node.children < 1 ? generator : generator->node.ptr.leaf)->node… in zend_generator_check_placeholder_frame() 478 switch (node->children) { in zend_generator_get_child() 504 node = &node->child.array[0].child->node; in zend_generator_search_multi_children_node() 506 return node->children > 1 ? node : NULL; in zend_generator_search_multi_children_node() 511 if (node->children < 4) { in zend_generator_add_single_child() 512 node->child.array[node->children].leaf = leaf; in zend_generator_add_single_child() 513 node->child.array[node->children].child = child; in zend_generator_add_single_child() 531 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.2/ext/libxml/tests/ |
H A D | bug42112.phpt | 2 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.2/ext/xmlrpc/libxmlrpc/ |
H A D | xml_to_soap.c | 112 xIter = XMLRPC_VectorNext(node); in get_array_soap_type() 125 xIter = XMLRPC_VectorNext(node); in get_array_soap_type() 434 if (node) { in SOAP_to_xml_element_worker() 466 int fault_type = get_fault_type(node); in SOAP_to_xml_element_worker() 471 node = gen_fault_xmlrpc(node, elem_val); in SOAP_to_xml_element_worker() 486 xIter = XMLRPC_VectorNext(node); in SOAP_to_xml_element_worker() 498 simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker() 529 base64_encode_xmlrpc(&buf, XMLRPC_GetValueBase64(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker() 544 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker() 557 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker() [all …]
|
/PHP-7.2/ext/dom/examples/ |
H A D | dom1.inc | 23 function print_node($node) 25 print "Node Name: " . $node->nodeName; 26 print "\nNode Type: " . $node->nodeType; 27 $child_count = $node->childNodes->length; 30 print "\nNode Content: " . $node->nodeValue; 37 foreach($nodelist as $node) 39 print_node($node);
|
/PHP-7.2/ext/spl/tests/ |
H A D | bug54971.phpt | 12 <node>val1</node> 13 <node>val2</node> 22 $items = $xpath->query('//node');
|