/PHP-7.2/ext/dom/ |
H A D | node.c | 201 xmlNode *nodep; in dom_node_node_name_read() local 216 ns = nodep->ns; in dom_node_node_name_read() 227 ns = nodep->ns; in dom_node_node_name_read() 369 xmlNode *nodep; in dom_node_node_type_read() local 809 baseuri = xmlNodeGetBase(nodep->doc, nodep); in dom_node_base_uri_read() 1331 xmlNode *nodep; in PHP_FUNCTION() local 1420 xmlNode *nodep; in PHP_FUNCTION() local 1589 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() 1593 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_FUNCTION() 1622 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() [all …]
|
H A D | nodelist.c | 64 xmlNodePtr nodep, curnode; in dom_nodelist_length_read() local 78 if (nodep) { in dom_nodelist_length_read() 80 curnode = nodep->children; in dom_nodelist_length_read() 89 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in dom_nodelist_length_read() 90 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in dom_nodelist_length_read() 92 nodep = nodep->children; in dom_nodelist_length_read() 140 xmlNodePtr nodep, curnode; in PHP_FUNCTION() local 168 if (nodep) { in PHP_FUNCTION() 177 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION() 178 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in PHP_FUNCTION() [all …]
|
H A D | processinginstruction.c | 54 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 72 if (!nodep) { in PHP_METHOD() 93 xmlNodePtr nodep = dom_object_get_node(obj); in dom_processinginstruction_target_read() local 95 if (nodep == NULL) { in dom_processinginstruction_target_read() 100 ZVAL_STRING(retval, (char *) (nodep->name)); in dom_processinginstruction_target_read() 114 xmlNodePtr nodep; in dom_processinginstruction_data_read() local 117 nodep = dom_object_get_node(obj); in dom_processinginstruction_data_read() 119 if (nodep == NULL) { in dom_processinginstruction_data_read() 124 if ((content = xmlNodeGetContent(nodep)) != NULL) { in dom_processinginstruction_data_read() 136 xmlNode *nodep = dom_object_get_node(obj); in dom_processinginstruction_data_write() local [all …]
|
H A D | entity.c | 49 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_public_id_read() local 51 if (nodep == NULL) { in dom_entity_public_id_read() 56 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_public_id_read() 59 ZVAL_STRING(retval, (char *) (nodep->ExternalID)); in dom_entity_public_id_read() 74 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_system_id_read() local 76 if (nodep == NULL) { in dom_entity_system_id_read() 81 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_system_id_read() 84 ZVAL_STRING(retval, (char *) (nodep->SystemID)); in dom_entity_system_id_read() 99 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_notation_name_read() local 102 if (nodep == NULL) { in dom_entity_notation_name_read() [all …]
|
H A D | notation.c | 50 xmlEntityPtr nodep = (xmlEntityPtr) dom_object_get_node(obj); in dom_notation_public_id_read() local 52 if (nodep == NULL) { in dom_notation_public_id_read() 57 if (nodep->ExternalID) { in dom_notation_public_id_read() 58 ZVAL_STRING(retval, (char *) (nodep->ExternalID)); in dom_notation_public_id_read() 75 xmlEntityPtr nodep = (xmlEntityPtr) dom_object_get_node(obj); in dom_notation_system_id_read() local 77 if (nodep == NULL) { in dom_notation_system_id_read() 82 if (nodep->SystemID) { in dom_notation_system_id_read() 83 ZVAL_STRING(retval, (char *) (nodep->SystemID)); in dom_notation_system_id_read()
|
H A D | documentfragment.c | 57 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 64 nodep = xmlNewDocFragment(NULL); in PHP_METHOD() 66 if (!nodep) { in PHP_METHOD() 77 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 118 xmlNode *nodep; in PHP_METHOD() local 129 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD() 131 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD() 137 err = xmlParseBalancedChunkMemory(nodep->doc, NULL, NULL, 0, (xmlChar *) data, &lst); in PHP_METHOD() 143 php_dom_xmlSetTreeDoc(lst, nodep->doc); in PHP_METHOD() 146 xmlAddChildList(nodep,lst); in PHP_METHOD()
|
H A D | characterdata.c | 84 if (nodep == NULL) { in dom_characterdata_data_read() 104 if (nodep == NULL) { in dom_characterdata_data_write() 130 if (nodep == NULL) { in dom_characterdata_length_read() 135 content = xmlNodeGetContent(nodep); in dom_characterdata_length_read() 205 xmlNode *nodep; in PHP_FUNCTION() local 217 if ((nodep->content == (xmlChar *) &(nodep->properties)) || in PHP_FUNCTION() 218 ((nodep->doc != NULL) && (nodep->doc->dict != NULL) && in PHP_FUNCTION() 219 xmlDictOwns(nodep->doc->dict, nodep->content))) { in PHP_FUNCTION() 220 nodep->content = xmlStrncatNew(nodep->content, arg, arg_len); in PHP_FUNCTION() 222 nodep->content = xmlStrncat(nodep->content, arg, arg_len); in PHP_FUNCTION() [all …]
|
H A D | element.c | 210 if (!nodep) { in PHP_METHOD() 246 ns = nodep->ns; in dom_element_tag_name_read() 325 xmlNode *nodep; in PHP_FUNCTION() local 368 xmlNode *nodep; in PHP_FUNCTION() local 530 xmlNode *nodep; in PHP_FUNCTION() local 596 xmlNode *nodep; in PHP_FUNCTION() local 771 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION() 867 xmlNode *nodep; in PHP_FUNCTION() local 979 xmlNode *nodep; in PHP_FUNCTION() local 1080 xmlNode *nodep; in PHP_FUNCTION() local [all …]
|
H A D | namednodemap.c | 94 xmlNodePtr nodep; in dom_namednodemap_length_read() local 106 nodep = dom_object_get_node(objmap->baseobj); in dom_namednodemap_length_read() 107 if (nodep) { in dom_namednodemap_length_read() 108 curnode = nodep->properties; in dom_namednodemap_length_read() 140 xmlNodePtr nodep; in PHP_FUNCTION() local 166 if (nodep) { in PHP_FUNCTION() 214 xmlNodePtr nodep, curnode; in PHP_FUNCTION() local 242 if (nodep) { in PHP_FUNCTION() 243 curnode = (xmlNodePtr)nodep->properties; in PHP_FUNCTION() 278 xmlNodePtr nodep; in PHP_FUNCTION() local [all …]
|
H A D | cdatasection.c | 54 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 63 nodep = xmlNewCDataBlock(NULL, (xmlChar *) value, value_len); in PHP_METHOD() 65 if (!nodep) { in PHP_METHOD() 75 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | comment.c | 54 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 63 nodep = xmlNewComment((xmlChar *) value); in PHP_METHOD() 65 if (!nodep) { in PHP_METHOD() 76 …php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
|
H A D | attr.c | 59 xmlAttrPtr nodep = NULL; in PHP_METHOD() local 77 nodep = xmlNewProp(NULL, (xmlChar *) name, (xmlChar *) value); in PHP_METHOD() 79 if (!nodep) { in PHP_METHOD() 88 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD() 187 xmlNodePtr nodep, nodeparent; in dom_attr_owner_element_read() local 189 nodep = dom_object_get_node(obj); in dom_attr_owner_element_read() 191 if (nodep == NULL) { in dom_attr_owner_element_read() 196 nodeparent = nodep->parent; in dom_attr_owner_element_read()
|
H A D | dom_iterators.c | 89 xmlNode *nodep = NULL; in php_dom_libxml_hash_iter() local 99 nodep = iter->node; in php_dom_libxml_hash_iter() 101 return nodep; in php_dom_libxml_hash_iter() 264 xmlNodePtr nodep, curnode=NULL; in php_dom_get_iterator() local 293 nodep = (xmlNode *)dom_object_get_node(objmap->baseobj); in php_dom_get_iterator() 294 if (!nodep) { in php_dom_get_iterator() 299 curnode = (xmlNodePtr) nodep->properties; in php_dom_get_iterator() 301 curnode = (xmlNodePtr) nodep->children; in php_dom_get_iterator() 304 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in php_dom_get_iterator() 305 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in php_dom_get_iterator() [all …]
|
H A D | document.c | 998 retnodep = nodep; in PHP_FUNCTION() 1012 nsptr = xmlSearchNsByHref (nodep->doc, root, nodep->ns->href); in PHP_FUNCTION() 1054 nsptr = xmlSearchNsByHref(nodep->doc, nodep, (xmlChar *) uri); in PHP_FUNCTION() 1071 if (nodep != NULL) { in PHP_FUNCTION() 1072 xmlFreeNode(nodep); in PHP_FUNCTION() 1078 if (nodep == NULL) { in PHP_FUNCTION() 1083 nodep->ns = nsptr; in PHP_FUNCTION() 1140 if (nodep != NULL) { in PHP_FUNCTION() 1147 if (nodep == NULL) { in PHP_FUNCTION() 1629 if (nodep != NULL) { in PHP_FUNCTION() [all …]
|
H A D | domimplementation.c | 158 xmlNode *nodep; in PHP_METHOD() local 224 nodep = xmlNewDocNode(docp, nsptr, (xmlChar *) localname, NULL); in PHP_METHOD() 225 if (!nodep) { in PHP_METHOD() 240 nodep->nsDef = nsptr; in PHP_METHOD() 242 xmlDocSetRootElement(docp, nodep); in PHP_METHOD()
|
H A D | text.c | 69 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 78 nodep = xmlNewText((xmlChar *) value); in PHP_METHOD() 80 if (!nodep) { in PHP_METHOD() 91 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | xpath.c | 204 xmlNode *nodep; in dom_xpath_ext_function_php() local 213 nodep = dom_object_get_node(obj); in dom_xpath_ext_function_php() 214 valuePush(ctxt, xmlXPathNewNodeSet(nodep)); in dom_xpath_ext_function_php() 351 xmlNodePtr nodep = NULL; in php_xpath_eval() local 380 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); in php_xpath_eval() 383 if (!nodep) { in php_xpath_eval() 384 nodep = xmlDocGetRootElement(docp); in php_xpath_eval() 387 if (nodep && docp != nodep->doc) { in php_xpath_eval() 392 ctxp->node = nodep; in php_xpath_eval() 396 ns = xmlGetNsList(docp, nodep); in php_xpath_eval()
|
H A D | php_dom.c | 466 xmlNodePtr nodep = NULL; in php_dom_export_node() local 473 return nodep; in php_dom_export_node() 482 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local 493 if (nodep && nodeobj && (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE)) { in PHP_FUNCTION() 1307 xmlNodePtr nodep; in dom_hierarchy() local 1313 nodep = parent; in dom_hierarchy() 1315 while (nodep) { in dom_hierarchy() 1316 if (nodep == child) { in dom_hierarchy() 1319 nodep = nodep->parent; in dom_hierarchy() 1349 ret = nodep; in dom_get_elements_by_tag_name_ns_raw() [all …]
|
H A D | php_dom.h | 115 void dom_normalize (xmlNodePtr nodep); 116 xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr nodep, char *ns, char *local, int *cur, int…
|
/PHP-7.2/ext/xsl/ |
H A D | xsltprocessor.c | 343 xmlNode *nodep; in xsl_ext_function_php() local 352 nodep = dom_object_get_node(obj); in xsl_ext_function_php() 400 xmlNode *nodep = NULL; in PHP_FUNCTION() local 408 nodep = php_libxml_import_node(docp); in PHP_FUNCTION() 410 if (nodep) { in PHP_FUNCTION() 411 doc = nodep->doc; in PHP_FUNCTION() 447 nodep = xmlDocGetRootElement(sheetp->doc); in PHP_FUNCTION() 448 if (nodep && (nodep = nodep->children)) { in PHP_FUNCTION() 449 while (nodep) { in PHP_FUNCTION() 450 …if (nodep->type == XML_ELEMENT_NODE && xmlStrEqual(nodep->name, (const xmlChar *) "key") && xmlStr… in PHP_FUNCTION() [all …]
|
/PHP-7.2/ext/simplexml/ |
H A D | simplexml.c | 2055 xmlNodePtr nodep = NULL; in sxe_object_clone() local 2075 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone() 2548 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local 2558 nodep = php_libxml_import_node(node); in PHP_FUNCTION() 2560 if (nodep) { in PHP_FUNCTION() 2561 if (nodep->doc == NULL) { in PHP_FUNCTION() 2565 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION() 2566 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() 2570 if (nodep && nodep->type == XML_ELEMENT_NODE) { in PHP_FUNCTION() 2579 php_libxml_increment_doc_ref((php_libxml_node_object *)sxe, nodep->doc); in PHP_FUNCTION() [all …]
|
/PHP-7.2/ext/libxml/ |
H A D | libxml.c | 167 static int php_libxml_unregister_node(xmlNodePtr nodep) in php_libxml_unregister_node() argument 171 php_libxml_node_ptr *nodeptr = nodep->_private; in php_libxml_unregister_node() 1330 xmlNodePtr nodep; in php_libxml_node_decrement_resource() local 1335 nodep = object->node->node; in php_libxml_node_decrement_resource() 1338 php_libxml_node_free_resource(nodep); in php_libxml_node_decrement_resource()
|