/php-src/ext/dom/ |
H A D | entity.c | 42 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_public_id_read() 44 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY || !nodep->ExternalID) { in dom_entity_public_id_read() 47 ZVAL_STRING(retval, (const char *) nodep->ExternalID); in dom_entity_public_id_read() 62 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_system_id_read() 64 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_system_id_read() 67 ZVAL_STRING(retval, (const char *) nodep->SystemID); in dom_entity_system_id_read() 82 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_notation_name_read() 84 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_notation_name_read() 88 if (!nodep->content) { in dom_entity_notation_name_read() 91 ZVAL_STRING(retval, (const char *) nodep->content); in dom_entity_notation_name_read()
|
H A D | node.c | 51 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_node_get_node_name_attribute_or_element() 631 …if (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE || nodep->type == XML_NAM… in dom_node_local_name_read() 651 xmlChar *baseuri = xmlNodeGetBase(nodep->doc, nodep); in dom_node_base_uri_read() 1279 if (!nodep->children || child->parent != nodep) { in dom_node_remove_child() 1441 xmlNode *nodep; in PHP_METHOD() local 1523 xmlNode *nodep; in PHP_METHOD() local 1559 xmlNode *nodep; in PHP_METHOD() local 1994 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD() 2000 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_METHOD() 2062 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_METHOD() [all …]
|
H A D | processinginstruction.c | 37 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 53 nodep = xmlNewPI(BAD_CAST name, BAD_CAST value); in PHP_METHOD() 55 if (!nodep) { in PHP_METHOD() 65 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 76 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_processinginstruction_target_read() 77 ZVAL_STRING(retval, (const char *) nodep->name); in dom_processinginstruction_target_read() 90 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_processinginstruction_data_read() 91 php_dom_get_content_into_zval(nodep, retval, false); in dom_processinginstruction_data_read() 97 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_processinginstruction_data_write() 103 xmlNodeSetContentLen(nodep, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_processinginstruction_data_write()
|
H A D | documentfragment.c | 36 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 43 nodep = xmlNewDocFragment(NULL); in PHP_METHOD() 45 if (!nodep) { in PHP_METHOD() 55 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 62 xmlNode *nodep; in PHP_METHOD() local 74 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD() 76 if (dom_node_is_read_only(nodep)) { in PHP_METHOD() 83 err = xmlParseBalancedChunkMemory(nodep->doc, NULL, NULL, 0, BAD_CAST data, &lst); in PHP_METHOD() 89 xmlAddChildList(nodep,lst); in PHP_METHOD()
|
H A D | notation.c | 43 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_notation_public_id_read() 45 if (nodep->ExternalID) { in dom_notation_public_id_read() 46 ZVAL_STRING(retval, (char *) (nodep->ExternalID)); in dom_notation_public_id_read() 63 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_notation_system_id_read() 65 if (nodep->SystemID) { in dom_notation_system_id_read() 66 ZVAL_STRING(retval, (char *) (nodep->SystemID)); in dom_notation_system_id_read()
|
H A D | nodelist.c | 55 if (nodep->type == XML_ENTITY_REF_NODE) { in dom_nodelist_iter_start_first_child() 57 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_nodelist_iter_start_first_child() 60 return nodep->children; in dom_nodelist_iter_start_first_child() 80 if (!nodep) { in php_dom_get_nodelist_length() 106 xmlNodePtr basep = nodep; in php_dom_get_nodelist_length() 107 nodep = php_dom_first_child_of_container_node(basep); in php_dom_get_nodelist_length() 157 xmlNodePtr nodep = basep; in php_dom_nodelist_get_item_into_zval() local 177 nodep = cached_obj_xml_node; in php_dom_nodelist_get_item_into_zval() 183 nodep = dom_nodelist_iter_start_first_child(nodep); in php_dom_nodelist_get_item_into_zval() 187 nodep = nodep->next; in php_dom_nodelist_get_item_into_zval() [all …]
|
H A D | xml_common.h | 92 static zend_always_inline xmlNodePtr php_dom_next_in_tree_order(const xmlNode *nodep, const xmlNode… in php_dom_next_in_tree_order() argument 94 if (nodep->type == XML_ELEMENT_NODE && nodep->children) { in php_dom_next_in_tree_order() 95 return nodep->children; in php_dom_next_in_tree_order() 98 if (nodep->next) { in php_dom_next_in_tree_order() 99 return nodep->next; in php_dom_next_in_tree_order() 103 nodep = nodep->parent; in php_dom_next_in_tree_order() 104 if (nodep == basep) { in php_dom_next_in_tree_order() 108 if (UNEXPECTED(nodep == NULL)) { in php_dom_next_in_tree_order() 112 } while (nodep->next == NULL); in php_dom_next_in_tree_order() 113 return nodep->next; in php_dom_next_in_tree_order()
|
H A D | element.c | 94 if (!nodep) { in PHP_METHOD() 295 xmlNode *nodep; in PHP_METHOD() local 347 xmlNode *nodep; in PHP_METHOD() local 406 xmlNode *nodep; in PHP_METHOD() local 684 xmlNode *nodep; in dom_element_set_attribute_node_common() local 773 xmlNode *nodep; in dom_element_remove_attribute_node() local 932 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in dom_set_attribute_ns_legacy() 1129 xmlNode *nodep; in PHP_METHOD() local 1289 xmlNode *nodep; in PHP_METHOD() local 1362 xmlNode *nodep; in PHP_METHOD() local [all …]
|
H A D | namednodemap.c | 46 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_get_namednodemap_length() local 47 if (nodep) { in php_dom_get_namednodemap_length() 48 xmlAttrPtr curnode = nodep->properties; in php_dom_get_namednodemap_length() 95 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_named_node_map_get_named_item() local 96 if (nodep) { in php_dom_named_node_map_get_named_item() 145 xmlNodePtr nodep = dom_object_get_node(objmap->baseobj); in php_dom_named_node_map_get_item() local 146 if (nodep) { in php_dom_named_node_map_get_item() 147 xmlNodePtr curnode = (xmlNodePtr)nodep->properties; in php_dom_named_node_map_get_item() 203 xmlNodePtr nodep; in PHP_METHOD() local 229 nodep = dom_object_get_node(objmap->baseobj); in PHP_METHOD() [all …]
|
H A D | cdatasection.c | 36 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 45 nodep = xmlNewCDataBlock(NULL, BAD_CAST value, value_len); in PHP_METHOD() 47 if (!nodep) { in PHP_METHOD() 57 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | comment.c | 36 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 45 nodep = xmlNewComment(BAD_CAST value); in PHP_METHOD() 47 if (!nodep) { in PHP_METHOD() 57 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
|
H A D | entityreference.c | 85 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_child_read() 87 xmlEntityPtr entity = dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_child_read() 95 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_text_content_read() 97 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_text_content_read() 103 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_entity_reference_child_nodes_read() 105 dom_entity_reference_fetch_and_sync_declaration(nodep); in dom_entity_reference_child_nodes_read()
|
H A D | document.c | 775 retnodep = nodep; in PHP_METHOD() 786 nsptr = xmlSearchNsByHref (nodep->doc, root, nodep->ns->href); in PHP_METHOD() 825 retnodep = nodep; in dom_modern_document_import_node() 884 nodep->ns = nsptr; in PHP_METHOD() 895 xmlFreeNode(nodep); in PHP_METHOD() 925 xmlNodePtr nodep; in PHP_METHOD() local 1007 nodep->ns = nsptr; in PHP_METHOD() 1191 xmlNodePtr nodep; in dom_document_adopt_node() local 1605 zval *nodep = NULL; in dom_document_save_xml() local 1622 if (nodep != NULL) { in dom_document_save_xml() [all …]
|
H A D | attr.c | 40 xmlAttrPtr nodep = NULL; in PHP_METHOD() local 58 nodep = xmlNewProp(NULL, BAD_CAST name, BAD_CAST value); in PHP_METHOD() 60 if (!nodep) { in PHP_METHOD() 69 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD() 163 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_attr_owner_element_read() 165 xmlNodePtr nodeparent = nodep->parent; in dom_attr_owner_element_read()
|
H A D | php_dom.c | 550 return nodep; in php_dom_export_node() 1801 nodep = parent; in dom_hierarchy() 1803 while (nodep) { in dom_hierarchy() 1807 nodep = nodep->parent; in dom_hierarchy() 1839 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_match_qualified_name_according_to_spec() 1898 nodep = php_dom_next_in_tree_order(nodep, basep); in dom_get_elements_by_tag_name_ns_raw() 1899 if (!nodep) { in dom_get_elements_by_tag_name_ns_raw() 1909 return nodep->content == NULL || *nodep->content == '\0'; in is_empty_node() 2038 dom_reconcile_ns_internal(doc, nodep, nodep->parent); in dom_reconcile_ns() 2057 nodep = nodep->next; in dom_reconcile_ns_list_internal() [all …]
|
H A D | characterdata.c | 59 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_characterdata_data_read() 60 php_dom_get_content_into_zval(nodep, retval, false); in dom_characterdata_data_read() 66 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_characterdata_data_write() 72 xmlNodeSetContentLen(nodep, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_characterdata_data_write() 86 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_characterdata_length_read() 89 if (nodep->content) { in dom_characterdata_length_read() 90 length = xmlUTF8Strlen(nodep->content); in dom_characterdata_length_read() 159 xmlNode *nodep; in dom_character_data_append_data() local 168 DOM_GET_OBJ(nodep, ZEND_THIS, xmlNodePtr, intern); in dom_character_data_append_data() 169 xmlTextConcat(nodep, BAD_CAST arg, arg_len); in dom_character_data_append_data()
|
H A D | php_dom.h | 141 xmlNsPtr dom_get_ns_unchecked(xmlNodePtr nodep, char *uri, char *prefix); 142 void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep); 143 void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last); 145 void php_dom_normalize_legacy(xmlNodePtr nodep); 146 void php_dom_normalize_modern(xmlNodePtr nodep); 160 void php_dom_get_content_into_zval(const xmlNode *nodep, zval *target, bool default_is_null); 162 zend_string *dom_node_get_node_name_attribute_or_element(const xmlNode *nodep, bool uppercase); 164 bool php_dom_adopt_node(xmlNodePtr nodep, dom_object *dom_object_new_document, xmlDocPtr new_docume… 167 bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep); 205 void dom_remove_all_children(xmlNodePtr nodep); [all …]
|
H A D | text.c | 37 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 46 nodep = xmlNewText(BAD_CAST value); in PHP_METHOD() 48 if (!nodep) { in PHP_METHOD() 58 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | namespace_compat.c | 301 PHP_DOM_EXPORT bool php_dom_ns_is_fast(const xmlNode *nodep, const php_dom_ns_magic_token *magic_to… in php_dom_ns_is_fast() argument 303 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_fast() 304 xmlNsPtr ns = nodep->ns; in php_dom_ns_is_fast() 311 PHP_DOM_EXPORT bool php_dom_ns_is_html_and_document_is_html(const xmlNode *nodep) in php_dom_ns_is_html_and_document_is_html() argument 313 ZEND_ASSERT(nodep != NULL); in php_dom_ns_is_html_and_document_is_html() 314 …return nodep->doc && nodep->doc->type == XML_HTML_DOCUMENT_NODE && php_dom_ns_is_fast(nodep, php_d… in php_dom_ns_is_html_and_document_is_html() 324 xmlNodePtr nodep = attrp->parent; in php_dom_reconcile_attribute_namespace_after_insertion() local 325 xmlNsPtr matching_ns = xmlSearchNs(nodep->doc, nodep, attrp->ns->prefix); in php_dom_reconcile_attribute_namespace_after_insertion() 333 xmlReconciliateNs(nodep->doc, nodep); in php_dom_reconcile_attribute_namespace_after_insertion()
|
H A D | xpath.c | 248 xmlNodePtr nodep = NULL; in php_xpath_eval() local 278 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); in php_xpath_eval() 281 if (!nodep) { in php_xpath_eval() 282 nodep = xmlDocGetRootElement(docp); in php_xpath_eval() 285 if (nodep && docp != nodep->doc) { in php_xpath_eval() 290 ctxp->node = nodep; in php_xpath_eval() 293 if (register_node_ns && nodep != NULL) { in php_xpath_eval() 296 in_scope_ns = php_dom_get_in_scope_ns(ns_mapper, nodep, false); in php_xpath_eval() 298 in_scope_ns = php_dom_get_in_scope_ns_legacy(nodep); in php_xpath_eval() 307 if (register_node_ns && nodep != NULL) { in php_xpath_eval()
|
H A D | namespace_compat.h | 58 PHP_DOM_EXPORT bool php_dom_ns_is_fast(const xmlNode *nodep, const php_dom_ns_magic_token *magic_to… 60 PHP_DOM_EXPORT bool php_dom_ns_is_html_and_document_is_html(const xmlNode *nodep);
|
H A D | domimplementation.c | 154 xmlNode *nodep; in PHP_METHOD() local 224 nodep = xmlNewDocNode(docp, nsptr, BAD_CAST localname, NULL); in PHP_METHOD() 225 if (!nodep) { in PHP_METHOD() 239 nodep->nsDef = nsptr; in PHP_METHOD() 241 xmlDocSetRootElement(docp, nodep); in PHP_METHOD()
|
/php-src/ext/xsl/ |
H A D | xsltprocessor.c | 174 dom_object *node_intern = php_dom_object_get_data(nodep); in xsl_apply_ns_hash_corrections() 196 xmlNode *nodep = NULL; in PHP_METHOD() local 205 nodep = php_libxml_import_node(docp); in PHP_METHOD() 207 if (nodep) { in PHP_METHOD() 208 doc = nodep->doc; in PHP_METHOD() 259 nodep = xmlDocGetRootElement(sheetp->doc); in PHP_METHOD() 260 if (nodep && (nodep = nodep->children)) { in PHP_METHOD() 261 while (nodep) { in PHP_METHOD() 262 ZEND_ASSERT(nodep->ns != NULL); in PHP_METHOD() 263 …if (nodep->type == XML_ELEMENT_NODE && xmlStrEqual(nodep->name, (const xmlChar *) "key") && xmlStr… in PHP_METHOD() [all …]
|
/php-src/ext/dom/parentnode/ |
H A D | tree.c | 34 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_first_element_child_read() 36 xmlNodePtr first = nodep->children; in dom_parent_node_first_element_child_read() 53 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_last_element_child_read() 55 xmlNodePtr last = nodep->last; in dom_parent_node_last_element_child_read() 72 DOM_PROP_NODE(xmlNodePtr, nodep, obj); in dom_parent_node_child_element_count() 75 xmlNodePtr first = nodep->children; in dom_parent_node_child_element_count()
|
/php-src/ext/simplexml/ |
H A D | simplexml.c | 2079 xmlNodePtr nodep = NULL; in sxe_object_clone() local 2108 nodep = xmlDocGetRootElement(docp); in sxe_object_clone() 2110 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone() 2573 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local 2581 nodep = php_libxml_import_node(node); in PHP_FUNCTION() 2583 if (!nodep) { in PHP_FUNCTION() 2588 if (nodep->doc == NULL) { in PHP_FUNCTION() 2593 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION() 2594 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() 2597 if (nodep && nodep->type == XML_ELEMENT_NODE) { in PHP_FUNCTION() [all …]
|