/PHP-7.3/ext/dom/ |
H A D | node.c | 199 xmlNode *nodep; in dom_node_node_name_read() local 214 ns = nodep->ns; in dom_node_node_name_read() 225 ns = nodep->ns; in dom_node_node_name_read() 367 xmlNode *nodep; in dom_node_node_type_read() local 803 baseuri = xmlNodeGetBase(nodep->doc, nodep); in dom_node_base_uri_read() 1325 xmlNode *nodep; in PHP_FUNCTION() local 1414 xmlNode *nodep; in PHP_FUNCTION() local 1583 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() 1587 nsptr = xmlSearchNs(nodep->doc, nodep, NULL); in PHP_FUNCTION() 1616 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() [all …]
|
H A D | nodelist.c | 62 xmlNodePtr nodep, curnode; in dom_nodelist_length_read() local 76 if (nodep) { in dom_nodelist_length_read() 78 curnode = nodep->children; in dom_nodelist_length_read() 87 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in dom_nodelist_length_read() 88 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in dom_nodelist_length_read() 90 nodep = nodep->children; in dom_nodelist_length_read() 138 xmlNodePtr nodep, curnode; in PHP_FUNCTION() local 166 if (nodep) { in PHP_FUNCTION() 175 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION() 176 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in PHP_FUNCTION() [all …]
|
H A D | processinginstruction.c | 52 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 70 if (!nodep) { in PHP_METHOD() 91 xmlNodePtr nodep = dom_object_get_node(obj); in dom_processinginstruction_target_read() local 93 if (nodep == NULL) { in dom_processinginstruction_target_read() 98 ZVAL_STRING(retval, (char *) (nodep->name)); in dom_processinginstruction_target_read() 112 xmlNodePtr nodep; in dom_processinginstruction_data_read() local 115 nodep = dom_object_get_node(obj); in dom_processinginstruction_data_read() 117 if (nodep == NULL) { in dom_processinginstruction_data_read() 122 if ((content = xmlNodeGetContent(nodep)) != NULL) { in dom_processinginstruction_data_read() 134 xmlNode *nodep = dom_object_get_node(obj); in dom_processinginstruction_data_write() local [all …]
|
H A D | notation.c | 48 xmlEntityPtr nodep = (xmlEntityPtr) dom_object_get_node(obj); in dom_notation_public_id_read() local 50 if (nodep == NULL) { in dom_notation_public_id_read() 55 if (nodep->ExternalID) { in dom_notation_public_id_read() 56 ZVAL_STRING(retval, (char *) (nodep->ExternalID)); in dom_notation_public_id_read() 73 xmlEntityPtr nodep = (xmlEntityPtr) dom_object_get_node(obj); in dom_notation_system_id_read() local 75 if (nodep == NULL) { in dom_notation_system_id_read() 80 if (nodep->SystemID) { in dom_notation_system_id_read() 81 ZVAL_STRING(retval, (char *) (nodep->SystemID)); in dom_notation_system_id_read()
|
H A D | entity.c | 47 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_public_id_read() local 49 if (nodep == NULL) { in dom_entity_public_id_read() 54 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_public_id_read() 57 ZVAL_STRING(retval, (char *) (nodep->ExternalID)); in dom_entity_public_id_read() 72 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_system_id_read() local 74 if (nodep == NULL) { in dom_entity_system_id_read() 79 if (nodep->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { in dom_entity_system_id_read() 82 ZVAL_STRING(retval, (char *) (nodep->SystemID)); in dom_entity_system_id_read() 97 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_notation_name_read() local 100 if (nodep == NULL) { in dom_entity_notation_name_read() [all …]
|
H A D | documentfragment.c | 55 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 62 nodep = xmlNewDocFragment(NULL); in PHP_METHOD() 64 if (!nodep) { in PHP_METHOD() 75 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD() 116 xmlNode *nodep; in PHP_METHOD() local 127 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD() 129 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD() 135 err = xmlParseBalancedChunkMemory(nodep->doc, NULL, NULL, 0, (xmlChar *) data, &lst); in PHP_METHOD() 141 php_dom_xmlSetTreeDoc(lst, nodep->doc); in PHP_METHOD() 144 xmlAddChildList(nodep,lst); in PHP_METHOD()
|
H A D | characterdata.c | 82 if (nodep == NULL) { in dom_characterdata_data_read() 102 if (nodep == NULL) { in dom_characterdata_data_write() 128 if (nodep == NULL) { in dom_characterdata_length_read() 133 content = xmlNodeGetContent(nodep); in dom_characterdata_length_read() 203 xmlNode *nodep; in PHP_FUNCTION() local 215 if ((nodep->content == (xmlChar *) &(nodep->properties)) || in PHP_FUNCTION() 216 ((nodep->doc != NULL) && (nodep->doc->dict != NULL) && in PHP_FUNCTION() 217 xmlDictOwns(nodep->doc->dict, nodep->content))) { in PHP_FUNCTION() 218 nodep->content = xmlStrncatNew(nodep->content, arg, arg_len); in PHP_FUNCTION() 220 nodep->content = xmlStrncat(nodep->content, arg, arg_len); in PHP_FUNCTION() [all …]
|
H A D | element.c | 208 if (!nodep) { in PHP_METHOD() 244 ns = nodep->ns; in dom_element_tag_name_read() 323 xmlNode *nodep; in PHP_FUNCTION() local 366 xmlNode *nodep; in PHP_FUNCTION() local 528 xmlNode *nodep; in PHP_FUNCTION() local 594 xmlNode *nodep; in PHP_FUNCTION() local 769 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION() 865 xmlNode *nodep; in PHP_FUNCTION() local 977 xmlNode *nodep; in PHP_FUNCTION() local 1078 xmlNode *nodep; in PHP_FUNCTION() local [all …]
|
H A D | namednodemap.c | 92 xmlNodePtr nodep; in dom_namednodemap_length_read() local 104 nodep = dom_object_get_node(objmap->baseobj); in dom_namednodemap_length_read() 105 if (nodep) { in dom_namednodemap_length_read() 106 curnode = nodep->properties; in dom_namednodemap_length_read() 138 xmlNodePtr nodep; in PHP_FUNCTION() local 164 if (nodep) { in PHP_FUNCTION() 212 xmlNodePtr nodep, curnode; in PHP_FUNCTION() local 240 if (nodep) { in PHP_FUNCTION() 241 curnode = (xmlNodePtr)nodep->properties; in PHP_FUNCTION() 276 xmlNodePtr nodep; in PHP_FUNCTION() local [all …]
|
H A D | cdatasection.c | 52 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 61 nodep = xmlNewCDataBlock(NULL, (xmlChar *) value, value_len); in PHP_METHOD() 63 if (!nodep) { in PHP_METHOD() 73 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | comment.c | 52 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 61 nodep = xmlNewComment((xmlChar *) value); in PHP_METHOD() 63 if (!nodep) { in PHP_METHOD() 74 …php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD()
|
H A D | attr.c | 57 xmlAttrPtr nodep = NULL; in PHP_METHOD() local 75 nodep = xmlNewProp(NULL, (xmlChar *) name, (xmlChar *) value); in PHP_METHOD() 77 if (!nodep) { in PHP_METHOD() 86 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern); in PHP_METHOD() 185 xmlNodePtr nodep, nodeparent; in dom_attr_owner_element_read() local 187 nodep = dom_object_get_node(obj); in dom_attr_owner_element_read() 189 if (nodep == NULL) { in dom_attr_owner_element_read() 194 nodeparent = nodep->parent; in dom_attr_owner_element_read()
|
H A D | dom_iterators.c | 87 xmlNode *nodep = NULL; in php_dom_libxml_hash_iter() local 97 nodep = iter->node; in php_dom_libxml_hash_iter() 99 return nodep; in php_dom_libxml_hash_iter() 262 xmlNodePtr nodep, curnode=NULL; in php_dom_get_iterator() local 292 nodep = (xmlNode *)dom_object_get_node(objmap->baseobj); in php_dom_get_iterator() 293 if (!nodep) { in php_dom_get_iterator() 298 curnode = (xmlNodePtr) nodep->properties; in php_dom_get_iterator() 300 curnode = (xmlNodePtr) nodep->children; in php_dom_get_iterator() 303 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in php_dom_get_iterator() 304 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in php_dom_get_iterator() [all …]
|
H A D | document.c | 996 retnodep = nodep; in PHP_FUNCTION() 1010 nsptr = xmlSearchNsByHref (nodep->doc, root, nodep->ns->href); in PHP_FUNCTION() 1052 nsptr = xmlSearchNsByHref(nodep->doc, nodep, (xmlChar *) uri); in PHP_FUNCTION() 1069 if (nodep != NULL) { in PHP_FUNCTION() 1070 xmlFreeNode(nodep); in PHP_FUNCTION() 1076 if (nodep == NULL) { in PHP_FUNCTION() 1081 nodep->ns = nsptr; in PHP_FUNCTION() 1138 if (nodep != NULL) { in PHP_FUNCTION() 1145 if (nodep == NULL) { in PHP_FUNCTION() 1627 if (nodep != NULL) { in PHP_FUNCTION() [all …]
|
H A D | domimplementation.c | 161 xmlNode *nodep; in PHP_METHOD() local 227 nodep = xmlNewDocNode(docp, nsptr, (xmlChar *) localname, NULL); in PHP_METHOD() 228 if (!nodep) { in PHP_METHOD() 243 nodep->nsDef = nsptr; in PHP_METHOD() 245 xmlDocSetRootElement(docp, nodep); in PHP_METHOD()
|
H A D | text.c | 67 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local 76 nodep = xmlNewText((xmlChar *) value); in PHP_METHOD() 78 if (!nodep) { in PHP_METHOD() 89 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
|
H A D | php_dom.c | 463 xmlNodePtr nodep = NULL; in php_dom_export_node() local 470 return nodep; in php_dom_export_node() 479 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local 490 if (nodep && nodeobj && (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE)) { in PHP_FUNCTION() 1301 xmlNodePtr nodep; in dom_hierarchy() local 1307 nodep = parent; in dom_hierarchy() 1309 while (nodep) { in dom_hierarchy() 1310 if (nodep == child) { in dom_hierarchy() 1313 nodep = nodep->parent; in dom_hierarchy() 1343 ret = nodep; in dom_get_elements_by_tag_name_ns_raw() [all …]
|
H A D | xpath.c | 204 xmlNode *nodep; in dom_xpath_ext_function_php() local 212 nodep = dom_object_get_node(obj); in dom_xpath_ext_function_php() 213 valuePush(ctxt, xmlXPathNewNodeSet(nodep)); in dom_xpath_ext_function_php() 350 xmlNodePtr nodep = NULL; in php_xpath_eval() local 379 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); in php_xpath_eval() 382 if (!nodep) { in php_xpath_eval() 383 nodep = xmlDocGetRootElement(docp); in php_xpath_eval() 386 if (nodep && docp != nodep->doc) { in php_xpath_eval() 391 ctxp->node = nodep; in php_xpath_eval() 395 ns = xmlGetNsList(docp, nodep); in php_xpath_eval()
|
H A D | php_dom.h | 114 void dom_normalize (xmlNodePtr nodep); 115 xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr nodep, char *ns, char *local, int *cur, int…
|
/PHP-7.3/ext/xsl/ |
H A D | xsltprocessor.c | 343 xmlNode *nodep; in xsl_ext_function_php() local 351 nodep = dom_object_get_node(obj); in xsl_ext_function_php() 399 xmlNode *nodep = NULL; in PHP_FUNCTION() local 406 nodep = php_libxml_import_node(docp); in PHP_FUNCTION() 408 if (nodep) { in PHP_FUNCTION() 409 doc = nodep->doc; in PHP_FUNCTION() 444 nodep = xmlDocGetRootElement(sheetp->doc); in PHP_FUNCTION() 445 if (nodep && (nodep = nodep->children)) { in PHP_FUNCTION() 446 while (nodep) { in PHP_FUNCTION() 447 …if (nodep->type == XML_ELEMENT_NODE && xmlStrEqual(nodep->name, (const xmlChar *) "key") && xmlStr… in PHP_FUNCTION() [all …]
|
/PHP-7.3/ext/simplexml/ |
H A D | simplexml.c | 2013 xmlNodePtr nodep = NULL; in sxe_object_clone() local 2033 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone() 2513 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local 2523 nodep = php_libxml_import_node(node); in PHP_FUNCTION() 2525 if (nodep) { in PHP_FUNCTION() 2526 if (nodep->doc == NULL) { in PHP_FUNCTION() 2530 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION() 2531 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() 2535 if (nodep && nodep->type == XML_ELEMENT_NODE) { in PHP_FUNCTION() 2544 php_libxml_increment_doc_ref((php_libxml_node_object *)sxe, nodep->doc); in PHP_FUNCTION() [all …]
|
/PHP-7.3/ext/libxml/ |
H A D | libxml.c | 165 static int php_libxml_unregister_node(xmlNodePtr nodep) in php_libxml_unregister_node() argument 169 php_libxml_node_ptr *nodeptr = nodep->_private; in php_libxml_unregister_node() 1337 xmlNodePtr nodep; in php_libxml_node_decrement_resource() local 1342 nodep = object->node->node; in php_libxml_node_decrement_resource() 1345 php_libxml_node_free_resource(nodep); in php_libxml_node_decrement_resource()
|