Lines Matching refs:docp

244 	xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj);  in dom_document_doctype_read()  local
247 if (docp == NULL) { in dom_document_doctype_read()
252 dtdptr = xmlGetIntSubset(docp); in dom_document_doctype_read()
284 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_document_element_read() local
287 if (docp == NULL) { in dom_document_document_element_read()
292 root = xmlDocGetRootElement(docp); in dom_document_document_element_read()
310 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_encoding_read() local
313 if (docp == NULL) { in dom_document_encoding_read()
318 encoding = (char *) docp->encoding; in dom_document_encoding_read()
331 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_encoding_write() local
335 if (docp == NULL) { in dom_document_encoding_write()
346 if (docp->encoding != NULL) { in dom_document_encoding_write()
347 xmlFree((xmlChar *)docp->encoding); in dom_document_encoding_write()
349 docp->encoding = xmlStrdup((const xmlChar *) ZSTR_VAL(str)); in dom_document_encoding_write()
367 xmlDoc *docp; in dom_document_standalone_read() local
369 docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_standalone_read()
371 if (docp == NULL) { in dom_document_standalone_read()
376 ZVAL_BOOL(retval, docp->standalone); in dom_document_standalone_read()
382 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_standalone_write() local
385 if (docp == NULL) { in dom_document_standalone_write()
391 docp->standalone = ZEND_NORMALIZE_BOOL(standalone); in dom_document_standalone_write()
405 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_version_read() local
408 if (docp == NULL) { in dom_document_version_read()
413 version = (char *) docp->version; in dom_document_version_read()
426 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_version_write() local
429 if (docp == NULL) { in dom_document_version_write()
434 if (docp->version != NULL) { in dom_document_version_write()
435 xmlFree((xmlChar *) docp->version ); in dom_document_version_write()
440 docp->version = xmlStrdup((const xmlChar *) ZSTR_VAL(str)); in dom_document_version_write()
634 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_document_uri_read() local
637 if (docp == NULL) { in dom_document_document_uri_read()
642 url = (char *) docp->URL; in dom_document_document_uri_read()
654 xmlDoc *docp = (xmlDocPtr) dom_object_get_node(obj); in dom_document_document_uri_write() local
657 if (docp == NULL) { in dom_document_document_uri_write()
662 if (docp->URL != NULL) { in dom_document_document_uri_write()
663 xmlFree((xmlChar *) docp->URL); in dom_document_document_uri_write()
668 docp->URL = xmlStrdup((const xmlChar *) ZSTR_VAL(str)); in dom_document_document_uri_write()
697 xmlDocPtr docp; in PHP_FUNCTION() local
707 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
714 node = xmlNewDocNode(docp, NULL, (xmlChar *) name, (xmlChar *) value); in PHP_FUNCTION()
731 xmlDocPtr docp; in PHP_FUNCTION() local
739 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
741 node = xmlNewDocFragment(docp); in PHP_FUNCTION()
758 xmlDocPtr docp; in PHP_FUNCTION() local
768 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
770 node = xmlNewDocText(docp, (xmlChar *) value); in PHP_FUNCTION()
787 xmlDocPtr docp; in PHP_FUNCTION() local
797 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
799 node = xmlNewDocComment(docp, (xmlChar *) value); in PHP_FUNCTION()
816 xmlDocPtr docp; in PHP_FUNCTION() local
826 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
828 node = xmlNewCDataBlock(docp, (xmlChar *) value, value_len); in PHP_FUNCTION()
845 xmlDocPtr docp; in PHP_FUNCTION() local
855 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
867 node->doc = docp; in PHP_FUNCTION()
881 xmlDocPtr docp; in PHP_FUNCTION() local
891 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
898 node = xmlNewDocProp(docp, (xmlChar *) name, NULL); in PHP_FUNCTION()
916 xmlDocPtr docp = NULL; in PHP_FUNCTION() local
926 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
933 node = xmlNewReference(docp, (xmlChar *) name); in PHP_FUNCTION()
949 xmlDocPtr docp; in PHP_FUNCTION() local
959 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
975 xmlDocPtr docp; in PHP_FUNCTION() local
985 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
995 if (nodep->doc == docp) { in PHP_FUNCTION()
1001 retnodep = xmlDocCopyNode(nodep, docp, recursive); in PHP_FUNCTION()
1008 xmlNodePtr root = xmlDocGetRootElement(docp); in PHP_FUNCTION()
1030 xmlDocPtr docp; in PHP_FUNCTION() local
1044 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1050 nodep = xmlNewDocNode(docp, NULL, (xmlChar *) localname, (xmlChar *) value); in PHP_FUNCTION()
1094 xmlDocPtr docp; in PHP_FUNCTION() local
1108 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1110 root = xmlDocGetRootElement(docp); in PHP_FUNCTION()
1115 nodep = (xmlNodePtr) xmlNewDocProp(docp, (xmlChar *) localname, NULL); in PHP_FUNCTION()
1160 xmlDocPtr docp; in PHP_FUNCTION() local
1170 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1187 xmlDocPtr docp; in PHP_FUNCTION() local
1198 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1200 attrp = xmlGetID(docp, (xmlChar *) idname); in PHP_FUNCTION()
1228 xmlDocPtr docp; in PHP_FUNCTION() local
1235 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1237 dom_normalize((xmlNodePtr) docp); in PHP_FUNCTION()
1256 xmlDoc *docp = NULL, *olddoc; in PHP_METHOD() local
1266 docp = xmlNewDoc((xmlChar *) version); in PHP_METHOD()
1268 if (!docp) { in PHP_METHOD()
1274 docp->encoding = (const xmlChar *) xmlStrdup((xmlChar *) encoding); in PHP_METHOD()
1288 if (php_libxml_increment_doc_ref((php_libxml_node_object *)intern, docp) == -1) { in PHP_METHOD()
1291 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)docp, (void *)intern); in PHP_METHOD()
1473 xmlDoc *docp = NULL, *newdoc; in dom_parse_document() local
1511 docp = (xmlDocPtr) dom_object_get_node(intern); in dom_parse_document()
1513 if (docp != NULL) { in dom_parse_document()
1519 docp->_private = NULL; in dom_parse_document()
1564 xmlDoc *docp; in PHP_FUNCTION() local
1581 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1591 bytes = xmlSaveFormatFileEnc(file, docp, NULL, format); in PHP_FUNCTION()
1609 xmlDoc *docp; in PHP_FUNCTION() local
1622 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1630 if (node->doc != docp) { in PHP_FUNCTION()
1643 xmlNodeDump(buf, docp, node, 0, format); in PHP_FUNCTION()
1660 xmlDocDumpFormatMemory(docp, &mem, &size, format); in PHP_FUNCTION()
1719 xmlDoc *docp; in PHP_FUNCTION() local
1734 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1736 err = xmlXIncludeProcessFlags(docp, (int)flags); in PHP_FUNCTION()
1742 root = (xmlNodePtr) docp->children; in PHP_FUNCTION()
1765 xmlDoc *docp; in PHP_FUNCTION() local
1773 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
1781 if (xmlValidateDocument(cvp, docp)) { in PHP_FUNCTION()
1796 xmlDoc *docp; in _dom_document_schema_validate() local
1817 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in _dom_document_schema_validate()
1852 docp = (xmlDocPtr) dom_object_get_node(intern); in _dom_document_schema_validate()
1869 is_valid = xmlSchemaValidateDoc(vptr, docp); in _dom_document_schema_validate()
1898 xmlDoc *docp; in _dom_document_relaxNG_validate() local
1917 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in _dom_document_relaxNG_validate()
1952 docp = (xmlDocPtr) dom_object_get_node(intern); in _dom_document_relaxNG_validate()
1962 is_valid = xmlRelaxNGValidateDoc(vptr, docp); in _dom_document_relaxNG_validate()
1995 xmlDoc *docp = NULL, *newdoc; in dom_load_html() local
2058 docp = (xmlDocPtr) dom_object_get_node(intern); in dom_load_html()
2060 if (docp != NULL) { in dom_load_html()
2066 docp->_private = NULL; in dom_load_html()
2109 xmlDoc *docp; in PHP_FUNCTION() local
2126 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
2129 encoding = (const char *) htmlGetMetaEncoding(docp); in PHP_FUNCTION()
2133 bytes = htmlSaveFileFormat(file, docp, encoding, format); in PHP_FUNCTION()
2148 xmlDoc *docp; in PHP_FUNCTION() local
2163 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_FUNCTION()
2171 if (node->doc != docp) { in PHP_FUNCTION()
2190 htmlNodeDumpFormatOutput(outBuf, docp, node, NULL, format); in PHP_FUNCTION()
2196 htmlNodeDumpFormatOutput(outBuf, docp, node, NULL, format); in PHP_FUNCTION()
2216 htmlDocDumpMemoryFormat(docp, &mem, &size, format); in PHP_FUNCTION()
2218 htmlDocDumpMemory(docp, &mem, &size); in PHP_FUNCTION()
2239 xmlDoc *docp; in PHP_METHOD() local
2248 DOM_GET_OBJ(docp, id, xmlDocPtr, intern); in PHP_METHOD()