Lines Matching refs:docp

50 	DOM_PROP_NODE(xmlDocPtr, docp, obj);  in dom_document_doctype_read()
52 xmlDtdPtr dtdptr = xmlGetIntSubset(docp); in dom_document_doctype_read()
79 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_document_element_read()
81 xmlNodePtr root = xmlDocGetRootElement(docp); in dom_document_document_element_read()
95 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_encoding_read()
97 const char *encoding = (const char *) docp->encoding; in dom_document_encoding_read()
117 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_encoding_write()
132 if (docp->encoding != NULL) { in dom_document_encoding_write()
133 xmlFree(BAD_CAST docp->encoding); in dom_document_encoding_write()
135 docp->encoding = xmlStrdup((const xmlChar *) ZSTR_VAL(str)); in dom_document_encoding_write()
156 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_standalone_read()
157 ZVAL_BOOL(retval, docp->standalone > 0); in dom_document_standalone_read()
163 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_standalone_write()
166 docp->standalone = Z_TYPE_P(newval) == IS_TRUE; in dom_document_standalone_write()
180 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_version_read()
182 const char *version = (const char *) docp->version; in dom_document_version_read()
195 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_version_write()
208 if (docp->version != NULL) { in dom_document_version_write()
209 xmlFree(BAD_CAST docp->version); in dom_document_version_write()
212 docp->version = xmlStrdup((const xmlChar *) ZSTR_VAL(str)); in dom_document_version_write()
377 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_document_uri_read()
379 const char *url = (const char *) docp->URL; in dom_document_document_uri_read()
395 DOM_PROP_NODE(xmlDocPtr, docp, obj); in dom_document_document_uri_write()
400 if (docp->URL != NULL) { in dom_document_document_uri_write()
401 xmlFree(BAD_CAST docp->URL); in dom_document_document_uri_write()
404 docp->URL = xmlStrdup((const xmlChar *) ZSTR_VAL(str)); in dom_document_document_uri_write()
433 xmlDocPtr docp; in PHP_METHOD() local
445 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
452 xmlNodePtr node = xmlNewDocNode(docp, NULL, BAD_CAST ZSTR_VAL(name), BAD_CAST value); in PHP_METHOD()
465 xmlDocPtr docp; in PHP_METHOD() local
473 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
480 if (docp->type == XML_HTML_DOCUMENT_NODE) { in PHP_METHOD()
483 …node = xmlNewDocRawNode(docp, php_dom_libxml_ns_mapper_ensure_html_ns(ns_mapper), BAD_CAST (lower … in PHP_METHOD()
486 node = xmlNewDocNode(docp, NULL, BAD_CAST ZSTR_VAL(name), NULL); in PHP_METHOD()
505 xmlDocPtr docp; in PHP_METHOD() local
513 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
515 node = xmlNewDocFragment(docp); in PHP_METHOD()
531 xmlDocPtr docp; in PHP_METHOD() local
540 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
542 node = xmlNewDocText(docp, BAD_CAST value); in PHP_METHOD()
559 xmlDocPtr docp; in PHP_METHOD() local
569 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
571 node = xmlNewDocComment(docp, BAD_CAST value); in PHP_METHOD()
589 xmlDocPtr docp; in PHP_METHOD() local
599 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
602 if (docp->type == XML_HTML_DOCUMENT_NODE) { in PHP_METHOD()
613 node = xmlNewCDataBlock(docp, BAD_CAST value, value_len); in PHP_METHOD()
630 xmlDocPtr docp; in dom_document_create_processing_instruction() local
639 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in dom_document_create_processing_instruction()
653 node = xmlNewDocPI(docp, BAD_CAST name, BAD_CAST value); in dom_document_create_processing_instruction()
681 xmlDocPtr docp; in PHP_METHOD() local
690 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
697 if (docp->type == XML_HTML_DOCUMENT_NODE && php_dom_follow_spec_intern(intern)) { in PHP_METHOD()
699 node = xmlNewDocProp(docp, BAD_CAST (lower ? lower : ZSTR_VAL(name)), NULL); in PHP_METHOD()
702 node = xmlNewDocProp(docp, BAD_CAST ZSTR_VAL(name), NULL); in PHP_METHOD()
722 xmlDocPtr docp = NULL; in PHP_METHOD() local
732 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
739 node = xmlNewReference(docp, BAD_CAST name); in PHP_METHOD()
756 xmlDocPtr docp; in PHP_METHOD() local
765 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
774 if (nodep->doc == docp) { in PHP_METHOD()
777 retnodep = dom_clone_node(NULL, nodep, docp, recursive); in PHP_METHOD()
784 xmlNodePtr root = xmlDocGetRootElement(docp); in PHP_METHOD()
806 xmlDocPtr docp; in dom_modern_document_import_node() local
815 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in dom_modern_document_import_node()
824 if (nodep->doc == docp) { in dom_modern_document_import_node()
827 retnodep = dom_clone_node(php_dom_get_ns_mapper(intern), nodep, docp, recursive); in dom_modern_document_import_node()
854 xmlDocPtr docp; in PHP_METHOD() local
866 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
873 nodep = xmlNewDocNode(docp, NULL, BAD_CAST localname, BAD_CAST value); in PHP_METHOD()
905 xmlDocPtr docp; in PHP_METHOD() local
914 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
924 const xmlChar *interned_localname = xmlDictLookup(docp->dict, localname, -1); in PHP_METHOD()
927 nodep = xmlNewDocNodeEatName(docp, ns, localname, NULL); in PHP_METHOD()
930 nodep = xmlNewDocNodeEatName(docp, ns, BAD_CAST interned_localname, NULL); in PHP_METHOD()
954 xmlDocPtr docp; in PHP_METHOD() local
967 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
969 root = xmlDocGetRootElement(docp); in PHP_METHOD()
980 nodep = (xmlNodePtr) xmlNewDocProp(docp, localname, NULL); in PHP_METHOD()
991 nsptr = xmlSearchNsByHref(docp, root, BAD_CAST ZSTR_VAL(uri)); in PHP_METHOD()
996 php_libxml_set_old_ns(docp, nsptr); in PHP_METHOD()
1033 xmlDocPtr docp; in PHP_METHOD() local
1042 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
1048 const xmlAttr *attrp = xmlGetID(docp, BAD_CAST idname); in PHP_METHOD()
1059 const xmlNode *base = (const xmlNode *) docp; in PHP_METHOD()
1238 xmlDocPtr docp; in PHP_METHOD() local
1246 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
1248 php_dom_normalize_legacy((xmlNodePtr) docp); in PHP_METHOD()
1255 xmlDoc *docp = NULL, *olddoc; in PHP_METHOD() local
1265 docp = xmlNewDoc(BAD_CAST version); in PHP_METHOD()
1267 if (!docp) { in PHP_METHOD()
1273 docp->encoding = (const xmlChar *) xmlStrdup(BAD_CAST encoding); in PHP_METHOD()
1286 php_libxml_increment_doc_ref((php_libxml_node_object *)intern, docp); in PHP_METHOD()
1287 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)docp, (void *)intern); in PHP_METHOD()
1479 xmlDocPtr docp = (xmlDocPtr) dom_object_get_node(intern); in php_dom_finish_loading_document() local
1481 if (docp != NULL) { in php_dom_finish_loading_document()
1491 docp->_private = NULL; in php_dom_finish_loading_document()
1562 xmlDoc *docp; in PHP_METHOD() local
1579 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
1589 … bytes = intern->document->handlers->dump_doc_to_file(file, docp, format, (const char *) docp->enc… in PHP_METHOD()
1606 xmlDoc *docp; in dom_document_save_xml() local
1616 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in dom_document_save_xml()
1625 if (node->doc != docp) { in dom_document_save_xml()
1634 …res = intern->document->handlers->dump_node_to_str(docp, node, format, (const char *) docp->encodi… in dom_document_save_xml()
1648 …res = intern->document->handlers->dump_doc_to_str(docp, converted_options, (const char *) docp->en… in dom_document_save_xml()
1743 static int dom_perform_xinclude(xmlDocPtr docp, dom_object *intern, zend_long flags) in dom_perform_xinclude() argument
1745 dom_xinclude_strip_fallback_references((const xmlNode *) docp); in dom_perform_xinclude()
1748 int err = xmlXIncludeProcessFlags(docp, (int)flags); in dom_perform_xinclude()
1755 xmlNodePtr root = docp->children; in dom_perform_xinclude()
1771 xmlDoc *docp; in PHP_METHOD() local
1784 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
1786 int err = dom_perform_xinclude(docp, intern, flags); in PHP_METHOD()
1797 xmlDoc *docp; in PHP_METHOD() local
1810 DOM_GET_OBJ(docp, ZEND_THIS, xmlDocPtr, intern); in PHP_METHOD()
1812 int err = dom_perform_xinclude(docp, intern, flags); in PHP_METHOD()
1826 xmlDoc *docp; in PHP_METHOD() local
1835 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
1844 if (xmlValidateDocument(cvp, docp)) { in PHP_METHOD()
1860 xmlDoc *docp; in dom_document_schema_validate() local
1883 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in dom_document_schema_validate()
1925 docp = (xmlDocPtr) dom_object_get_node(intern); in dom_document_schema_validate()
1941 is_valid = xmlSchemaValidateDoc(vptr, docp); in dom_document_schema_validate()
1971 xmlDoc *docp; in dom_document_relaxNG_validate() local
1992 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in dom_document_relaxNG_validate()
2029 docp = (xmlDocPtr) dom_object_get_node(intern); in dom_document_relaxNG_validate()
2039 is_valid = xmlRelaxNGValidateDoc(vptr, docp); in dom_document_relaxNG_validate()
2145 xmlDoc *docp; in PHP_METHOD() local
2162 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
2165 encoding = (const char *) htmlGetMetaEncoding(docp); in PHP_METHOD()
2169 bytes = htmlSaveFileFormat(file, docp, encoding, format); in PHP_METHOD()
2182 xmlDoc *docp; in PHP_METHOD() local
2196 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()
2204 if (node->doc != docp) { in PHP_METHOD()
2223 htmlNodeDumpFormatOutput(outBuf, docp, node, NULL, format); in PHP_METHOD()
2229 htmlNodeDumpFormatOutput(outBuf, docp, node, NULL, format); in PHP_METHOD()
2249 htmlDocDumpMemoryFormat(docp, &mem, &size, format); in PHP_METHOD()