/PHP-7.0/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 | 57 xmlNodePtr nodep, curnode; in dom_nodelist_length_read() local 71 if (nodep) { in dom_nodelist_length_read() 73 curnode = nodep->children; in dom_nodelist_length_read() 82 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in dom_nodelist_length_read() 83 nodep = xmlDocGetRootElement((xmlDoc *) nodep); in dom_nodelist_length_read() 85 nodep = nodep->children; in dom_nodelist_length_read() 114 xmlNodePtr nodep, curnode; in PHP_FUNCTION() local 142 if (nodep) { in PHP_FUNCTION() 151 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION() 152 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 | 90 xmlNodePtr nodep; in dom_namednodemap_length_read() local 102 nodep = dom_object_get_node(objmap->baseobj); in dom_namednodemap_length_read() 103 if (nodep) { in dom_namednodemap_length_read() 104 curnode = nodep->properties; in dom_namednodemap_length_read() 136 xmlNodePtr nodep; in PHP_FUNCTION() local 162 if (nodep) { in PHP_FUNCTION() 210 xmlNodePtr nodep, curnode; in PHP_FUNCTION() local 238 if (nodep) { in PHP_FUNCTION() 239 curnode = (xmlNodePtr)nodep->properties; in PHP_FUNCTION() 274 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 | 85 xmlNode *nodep = NULL; in php_dom_libxml_hash_iter() local 95 nodep = iter->node; in php_dom_libxml_hash_iter() 97 return nodep; in php_dom_libxml_hash_iter() 259 xmlNodePtr nodep, curnode=NULL; in php_dom_get_iterator() local 288 nodep = (xmlNode *)dom_object_get_node(objmap->baseobj); in php_dom_get_iterator() 289 if (!nodep) { in php_dom_get_iterator() 294 curnode = (xmlNodePtr) nodep->properties; in php_dom_get_iterator() 296 curnode = (xmlNodePtr) nodep->children; in php_dom_get_iterator() 299 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in php_dom_get_iterator() 300 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 | 206 xmlNode *nodep; in dom_xpath_ext_function_php() local 215 nodep = dom_object_get_node(obj); in dom_xpath_ext_function_php() 216 valuePush(ctxt, xmlXPathNewNodeSet(nodep)); in dom_xpath_ext_function_php() 353 xmlNodePtr nodep = NULL; in php_xpath_eval() local 382 DOM_GET_OBJ(nodep, context, xmlNodePtr, nodeobj); in php_xpath_eval() 385 if (!nodep) { in php_xpath_eval() 386 nodep = xmlDocGetRootElement(docp); in php_xpath_eval() 389 if (nodep && docp != nodep->doc) { in php_xpath_eval() 394 ctxp->node = nodep; in php_xpath_eval() 398 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() 1308 xmlNodePtr nodep; in dom_hierarchy() local 1314 nodep = parent; in dom_hierarchy() 1316 while (nodep) { in dom_hierarchy() 1317 if (nodep == child) { in dom_hierarchy() 1320 nodep = nodep->parent; in dom_hierarchy() 1350 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.0/ext/xsl/ |
H A D | xsltprocessor.c | 346 xmlNode *nodep; in xsl_ext_function_php() local 355 nodep = dom_object_get_node(obj); in xsl_ext_function_php() 403 xmlNode *nodep = NULL; in PHP_FUNCTION() local 411 nodep = php_libxml_import_node(docp); in PHP_FUNCTION() 413 if (nodep) { in PHP_FUNCTION() 414 doc = nodep->doc; in PHP_FUNCTION() 450 nodep = xmlDocGetRootElement(sheetp->doc); in PHP_FUNCTION() 451 if (nodep && (nodep = nodep->children)) { in PHP_FUNCTION() 452 while (nodep) { in PHP_FUNCTION() 453 …if (nodep->type == XML_ELEMENT_NODE && xmlStrEqual(nodep->name, (const xmlChar *) "key") && xmlStr… in PHP_FUNCTION() [all …]
|
/PHP-7.0/ext/simplexml/ |
H A D | simplexml.c | 2067 xmlNodePtr nodep = NULL; in sxe_object_clone() local 2087 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone() 2559 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local 2569 nodep = php_libxml_import_node(node); in PHP_FUNCTION() 2571 if (nodep) { in PHP_FUNCTION() 2572 if (nodep->doc == NULL) { in PHP_FUNCTION() 2576 if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) { in PHP_FUNCTION() 2577 nodep = xmlDocGetRootElement((xmlDocPtr) nodep); in PHP_FUNCTION() 2581 if (nodep && nodep->type == XML_ELEMENT_NODE) { in PHP_FUNCTION() 2590 php_libxml_increment_doc_ref((php_libxml_node_object *)sxe, nodep->doc); in PHP_FUNCTION() [all …]
|
/PHP-7.0/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() 1326 xmlNodePtr nodep; in php_libxml_node_decrement_resource() local 1331 nodep = object->node->node; in php_libxml_node_decrement_resource() 1334 php_libxml_node_free_resource(nodep); in php_libxml_node_decrement_resource()
|