Lines Matching refs:ctxt

1351 	xmlParserCtxtPtr ctxt = NULL;  in dom_document_parser()  local
1380 ctxt = xmlCreateFileParserCtxt(file_dest); in dom_document_parser()
1383 ctxt = xmlCreateMemoryParserCtxt(source, source_len); in dom_document_parser()
1386 if (ctxt == NULL) { in dom_document_parser()
1392 (void) xmlSwitchToEncoding(ctxt, encoding); in dom_document_parser()
1403 if(ctxt->directory != NULL) { in dom_document_parser()
1404 xmlFree((char *) ctxt->directory); in dom_document_parser()
1411 ctxt->directory = (char *) xmlCanonicPath((const xmlChar *) resolved_path); in dom_document_parser()
1415 ctxt->vctxt.error = php_libxml_ctx_error; in dom_document_parser()
1416 ctxt->vctxt.warning = php_libxml_ctx_warning; in dom_document_parser()
1418 if (ctxt->sax != NULL) { in dom_document_parser()
1419 ctxt->sax->error = php_libxml_ctx_error; in dom_document_parser()
1420 ctxt->sax->warning = php_libxml_ctx_warning; in dom_document_parser()
1439 php_libxml_sanitize_parse_ctxt_options(ctxt); in dom_document_parser()
1440 xmlCtxtUseOptions(ctxt, options); in dom_document_parser()
1447 xmlParseDocument(ctxt); in dom_document_parser()
1449 if (ctxt->wellFormed || recover) { in dom_document_parser()
1450 ret = ctxt->myDoc; in dom_document_parser()
1455 if (ret && ret->URL == NULL && ctxt->directory != NULL) { in dom_document_parser()
1456 ret->URL = xmlStrdup(BAD_CAST ctxt->directory); in dom_document_parser()
1460 xmlFreeDoc(ctxt->myDoc); in dom_document_parser()
1461 ctxt->myDoc = NULL; in dom_document_parser()
1464 xmlFreeParserCtxt(ctxt); in dom_document_parser()
2074 htmlParserCtxtPtr ctxt; in dom_load_html() local
2095 ctxt = htmlCreateFileParserCtxt(source, NULL); in dom_load_html()
2101 ctxt = htmlCreateMemoryParserCtxt(source, (int)source_len); in dom_load_html()
2104 if (!ctxt) { in dom_load_html()
2109 ctxt->vctxt.error = php_libxml_ctx_error; in dom_load_html()
2110 ctxt->vctxt.warning = php_libxml_ctx_warning; in dom_load_html()
2111 if (ctxt->sax != NULL) { in dom_load_html()
2112 ctxt->sax->error = php_libxml_ctx_error; in dom_load_html()
2113 ctxt->sax->warning = php_libxml_ctx_warning; in dom_load_html()
2115 php_libxml_sanitize_parse_ctxt_options(ctxt); in dom_load_html()
2117 htmlCtxtUseOptions(ctxt, (int)options); in dom_load_html()
2119 htmlParseDocument(ctxt); in dom_load_html()
2120 xmlDocPtr newdoc = ctxt->myDoc; in dom_load_html()
2121 htmlFreeParserCtxt(ctxt); in dom_load_html()