/PHP-8.2/ext/xsl/tests/ |
H A D | bug70078.phpt | 20 function testPhpFunction($node) { 30 <node> 32 </node> 49 …node>test2</node><node>test2</node><node>test2</node><node>test2</node><node>test2</node><node>tes…
|
/PHP-8.2/ext/dom/lexbor/lexbor/core/ |
H A D | avl.c | 128 return (node) ? node->height : 0; in lexbor_avl_node_height() 288 node = node->left; in lexbor_avl_insert() 302 node = node->right; in lexbor_avl_insert() 321 node = node->right; in lexbor_avl_find_min() 335 balance_node = (node->left) ? node->left : node; in lexbor_avl_rotate_for_delete() 415 node = node->left; in lexbor_avl_remove() 418 node = node->right; in lexbor_avl_remove() 444 node = node->left; in lexbor_avl_search() 447 node = node->right; in lexbor_avl_search() 471 node = node->left; in lexbor_avl_foreach() [all …]
|
H A D | in.c | 67 node->begin = buf; in lexbor_in_node_make() 69 node->use = buf; in lexbor_in_node_make() 83 return node; in lexbor_in_node_make() 108 return node; in lexbor_in_node_destroy() 122 new_node->offset = node->offset + (pos - node->begin); in lexbor_in_node_split() 148 node = node->next; in lexbor_in_node_find() 151 while (node && (node->begin > pos || node->end < pos)) { in lexbor_in_node_find() 152 node = node->prev; in lexbor_in_node_find() 155 return node; in lexbor_in_node_find() 182 node = node->next; in lexbor_in_node_pos_up() [all …]
|
H A D | in.h | 67 lexbor_in_node_clean(lexbor_in_node_t *node); 104 return node->begin; in lexbor_in_node_begin() 108 lexbor_in_node_end(const lexbor_in_node_t *node) in lexbor_in_node_end() argument 110 return node->end; in lexbor_in_node_end() 116 return node->offset; in lexbor_in_node_offset() 120 lexbor_in_node_next(const lexbor_in_node_t *node) in lexbor_in_node_next() argument 122 return node->next; in lexbor_in_node_next() 128 return node->prev; in lexbor_in_node_prev() 132 lexbor_in_node_in(const lexbor_in_node_t *node) in lexbor_in_node_in() argument 134 return node->incoming; in lexbor_in_node_in() [all …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/selectors/ |
H A D | selectors.c | 219 node = node->parent; in lxb_selectors_descendant_reverse() 259 node = node->next; in lxb_selectors_child() 270 node = node->next; in lxb_selectors_child_next() 279 node = node->next; in lxb_selectors_child_next() 289 node = node->next; in lxb_selectors_sibling() 300 node = node->next; in lxb_selectors_sibling() 312 node = node->prev; in lxb_selectors_sibling_reverse() 333 node = node->next; in lxb_selectors_following() 354 node = node->prev; in lxb_selectors_following_reverse() 1670 node = node->prev; in lxb_selectors_pseudo_class_first_child() [all …]
|
/PHP-8.2/ext/ffi/tests/ |
H A D | list.phpt | 26 $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.2/ext/dom/ |
H A D | html5_serializer.c | 32 return node->ns != NULL && strcmp((const char *) node->ns->href, uri) == 0; in dom_is_ns() 37 return node->ns == NULL || dom_is_ns(node, DOM_XHTML_NS_URI); in dom_is_html_ns() 135 if (node->parent->type == XML_ELEMENT_NODE && dom_is_html_ns(node->parent)) { in dom_html5_serialize_text_node() 158 if (node->ns != NULL && node->ns->prefix != NULL in dom_html5_serialize_element_tag_name() 159 …&& !(dom_is_html_ns(node) || dom_is_ns(node, DOM_MATHML_NS_URI) || dom_is_ns(node, DOM_SVG_NS_URI)… in dom_html5_serialize_element_tag_name() 304 node = node->children; in dom_html5_serialize_node() 318 if (node->next) { in dom_html5_serialize_node() 319 node = node->next; in dom_html5_serialize_node() 323 node = node->parent; in dom_html5_serialize_node() 331 node = node->next; in dom_html5_serialize_node() [all …]
|
H A D | text.c | 69 xmlNodePtr node; in dom_text_whole_text_read() local 74 if (node == NULL) { in dom_text_whole_text_read() 80 …while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTIO… in dom_text_whole_text_read() 81 node = node->prev; in dom_text_whole_text_read() 85 while (node && ((node->type == XML_TEXT_NODE) || (node->type == XML_CDATA_SECTION_NODE))) { in dom_text_whole_text_read() 87 node = node->next; in dom_text_whole_text_read() 111 xmlNodePtr node; in PHP_METHOD() local 128 if (node->type != XML_TEXT_NODE && node->type != XML_CDATA_SECTION_NODE) { in PHP_METHOD() 133 cur = node->content; in PHP_METHOD() 159 if (node->parent != NULL) { in PHP_METHOD() [all …]
|
/PHP-8.2/ext/soap/ |
H A D | php_xml.c | 187 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 D | php_xml.h | 22 #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.2/ext/simplexml/ |
H A D | simplexml.c | 127 node = node->next; in sxe_get_element_by_offset() 146 node = node->next; in sxe_find_element_by_name() 181 node = node->next; in sxe_get_element_by_name() 540 node = node->next; in sxe_prop_dim_write() 1038 node = node->next; in sxe_prop_is_empty() 1159 node = node->next; in sxe_get_prop_hash() 1455 node = node->next; in sxe_add_namespaces() 1823 if (sxe->node && sxe->node->node) { in sxe_object_cast_ex() 2022 node = node->next; in PHP_METHOD() 2054 bool is_root_element = sxe->node && sxe->node->node && sxe->node->node->parent in sxe_object_clone() [all …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | node.c | 253 node->owner_document->ev_destroy(node); in lxb_dom_node_destroy() 267 node = node->first_child; in lxb_dom_node_destroy_deep() 390 node->owner_document->ev_insert(node); in lxb_dom_node_insert_child() 465 node->next->prev = node->prev; in lxb_dom_node_remove_wo_events() 469 node->prev->next = node->next; in lxb_dom_node_remove_wo_events() 513 node = node->first_child; in lxb_dom_node_simple_walk() 517 node = node->parent; in lxb_dom_node_simple_walk() 524 node = node->next; in lxb_dom_node_simple_walk() 1268 node = node->first_child; in lxb_dom_node_is_empty() 1272 node = node->parent; in lxb_dom_node_is_empty() [all …]
|
H A D | node.h | 117 lxb_dom_node_remove(lxb_dom_node_t *node); 176 lxb_dom_node_tag_id(lxb_dom_node_t *node) in lxb_dom_node_tag_id() argument 178 return node->local_name; in lxb_dom_node_tag_id() 182 lxb_dom_node_next(lxb_dom_node_t *node) in lxb_dom_node_next() argument 184 return node->next; in lxb_dom_node_next() 188 lxb_dom_node_prev(lxb_dom_node_t *node) in lxb_dom_node_prev() argument 190 return node->prev; in lxb_dom_node_prev() 194 lxb_dom_node_parent(lxb_dom_node_t *node) in lxb_dom_node_parent() argument 196 return node->parent; in lxb_dom_node_parent() 202 return node->first_child; in lxb_dom_node_first_child() [all …]
|
/PHP-8.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-8.2/ext/dom/lexbor/lexbor/html/ |
H A D | interface.c | 28 lxb_dom_node_t *node; in lxb_html_interface_create() local 55 if (node == NULL) { in lxb_html_interface_create() 59 node->local_name = tag_id; in lxb_html_interface_create() 60 node->ns = ns; in lxb_html_interface_create() 62 return node; in lxb_html_interface_create() 69 const lxb_dom_node_t *node = intrfc; in lxb_html_interface_clone() local 75 switch (node->type) { in lxb_html_interface_clone() 107 node->local_name, node->ns); in lxb_html_interface_clone_element() 126 lxb_dom_node_t *node = intrfc; in lxb_html_interface_destroy() local 128 switch (node->type) { in lxb_html_interface_destroy() [all …]
|
H A D | tree.c | 433 if (node == NULL) { in lxb_html_tree_create_element_for_token() 531 new_attr->node.ns = attr->node.ns; in lxb_html_tree_append_attributes_from_element() 944 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_implied_end_tags() 991 if(node->local_name == ex_tag && node->ns == ex_ns) { in lxb_html_tree_generate_all_implied_end_tags_thoroughly() 1171 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_element_in_scope() 1172 return node; in lxb_html_tree_element_in_scope() 1175 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope() 1198 return node; in lxb_html_tree_element_in_scope_by_node() 1201 if (lxb_html_tag_is_category(node->local_name, node->ns, ct)) { in lxb_html_tree_element_in_scope_by_node() 1591 last = node; in lxb_html_tree_adoption_agency_algorithm() [all …]
|
H A D | serialize.h | 39 lxb_html_serialize_cb(lxb_dom_node_t *node, 43 lxb_html_serialize_str(lxb_dom_node_t *node, lexbor_str_t *str); 46 lxb_html_serialize_tree_cb(lxb_dom_node_t *node, 50 lxb_html_serialize_tree_str(lxb_dom_node_t *node, lexbor_str_t *str); 53 lxb_html_serialize_deep_cb(lxb_dom_node_t *node, 60 lxb_html_serialize_pretty_cb(lxb_dom_node_t *node, 65 lxb_html_serialize_pretty_str(lxb_dom_node_t *node, 70 lxb_html_serialize_pretty_tree_cb(lxb_dom_node_t *node, 75 lxb_html_serialize_pretty_tree_str(lxb_dom_node_t *node, 80 lxb_html_serialize_pretty_deep_cb(lxb_dom_node_t *node, [all …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/ |
H A D | open_elements.c | 41 lxb_dom_node_t *node; in lxb_html_tree_open_elements_pop_until_tag_id() local 48 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_pop_until_tag_id() 62 lxb_dom_node_t *node; in lxb_html_tree_open_elements_pop_until_h123456() local 92 lxb_dom_node_t *node; in lxb_html_tree_open_elements_pop_until_td_th() local 202 lxb_dom_node_t *node; in lxb_html_tree_open_elements_find() local 205 node = list[i]; in lxb_html_tree_open_elements_find() 207 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_find() 212 return node; in lxb_html_tree_open_elements_find() 231 lxb_dom_node_t *node; in lxb_html_tree_open_elements_find_reverse() local 237 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_find_reverse() [all …]
|
/PHP-8.2/ext/dom/tests/ |
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) { 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 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 …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | in_body.c | 220 if (node == NULL || node->local_name != LXB_TAG_BODY) { in lxb_html_tree_insertion_mode_in_body_body() 252 if (node == NULL || node->local_name != LXB_TAG_BODY) { in lxb_html_tree_insertion_mode_in_body_frameset() 388 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_h123456() 433 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_pre_listing() 469 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_form() 521 is_special = lxb_html_tag_is_category(node->local_name, node->ns, in lxb_html_tree_insertion_mode_in_body_li() 534 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_li() 601 is_special = lxb_html_tag_is_category(node->local_name, node->ns, in lxb_html_tree_insertion_mode_in_body_dd_dt() 614 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_dd_dt() 637 if (node != NULL) { in lxb_html_tree_insertion_mode_in_body_plaintext() [all …]
|
H A D | in_cell.c | 15 lxb_dom_node_t *node; in lxb_html_tree_close_cell() local 20 node = lxb_html_tree_current_node(tree); in lxb_html_tree_close_cell() 22 if (lxb_html_tree_node_is(node, LXB_TAG_TD) == false in lxb_html_tree_close_cell() 42 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_cell_tdth_closed() local 46 if (node == NULL) { in lxb_html_tree_insertion_mode_in_cell_tdth_closed() 55 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_cell_tdth_closed() 79 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_cell_ct() local 81 node = lxb_html_tree_element_in_scope_td_th(tree); in lxb_html_tree_insertion_mode_in_cell_ct() 82 if (node == NULL) { in lxb_html_tree_insertion_mode_in_cell_ct() 112 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_cell_t_closed() local [all …]
|
H A D | in_select.c | 112 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_select_optgroup() 134 if (lxb_html_tree_node_is(node, LXB_TAG_OPTION) in lxb_html_tree_insertion_mode_in_select_optgroup_closed() 137 node = lxb_html_tree_open_elements_get(tree, in lxb_html_tree_insertion_mode_in_select_optgroup_closed() 139 if (node != NULL && lxb_html_tree_node_is(node, LXB_TAG_OPTGROUP)) { in lxb_html_tree_insertion_mode_in_select_optgroup_closed() 144 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_select_optgroup_closed() 178 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_select_select_closed() local 182 if (node == NULL) { in lxb_html_tree_insertion_mode_in_select_select_closed() 200 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_select_select() local 206 if (node == NULL) { in lxb_html_tree_insertion_mode_in_select_select() 225 lxb_dom_node_t *node; in lxb_html_tree_insertion_mode_in_select_ikt() local [all …]
|
/PHP-8.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-8.2/ext/libxml/ |
H A D | libxml.c | 191 if(node) { in php_libxml_node_free() 193 ((php_libxml_node_ptr *) node->_private)->node = NULL; in php_libxml_node_free() 274 if (node->nsDef && node->doc) { in php_libxml_node_free() 317 curnode = node; in php_libxml_node_free_list() 353 xmlRemoveID(node->doc, (xmlAttrPtr) node); in php_libxml_node_free_list() 1293 return node; in php_libxml_import_node() 1302 if (object->node->node == node) { in php_libxml_increment_node_ptr() 1309 object->node = node->_private; in php_libxml_increment_node_ptr() 1318 object->node->node = node; in php_libxml_increment_node_ptr() 1321 node->_private = object->node; in php_libxml_increment_node_ptr() [all …]
|