Home
last modified time | relevance | path

Searched refs:ctxt (Results 1 – 15 of 15) sorted by relevance

/php-src/ext/soap/
H A Dphp_xml.c91 if (ctxt) { in soap_xmlParseFile()
97 ctxt->keepBlanks = 0; in soap_xmlParseFile()
106 xmlParseDocument(ctxt); in soap_xmlParseFile()
108 if (ctxt->wellFormed) { in soap_xmlParseFile()
109 ret = ctxt->myDoc; in soap_xmlParseFile()
116 ctxt->myDoc = NULL; in soap_xmlParseFile()
143 if (ctxt) { in soap_xmlParseMemory()
157 xmlParseDocument(ctxt); in soap_xmlParseMemory()
159 if (ctxt->wellFormed) { in soap_xmlParseMemory()
160 ret = ctxt->myDoc; in soap_xmlParseMemory()
[all …]
/php-src/ext/dom/
H A Dxpath_callbacks.h34 …ks_proxy_factory)(xmlNodePtr node, zval *proxy, dom_object *intern, xmlXPathParserContextPtr ctxt);
35 typedef void (*php_dom_xpath_callbacks_register_func_ctx)(void *ctxt, const zend_string *ns, const …
56 PHP_DOM_EXPORT void php_dom_xpath_callbacks_clean_argument_stack(xmlXPathParserContextPtr ctxt, uin…
59 …s_delayed_lib_registration(const php_dom_xpath_callbacks* registry, void *ctxt, php_dom_xpath_call…
60 …date_method_handler(php_dom_xpath_callbacks* registry, xmlXPathContextPtr ctxt, zend_string *ns, z…
61 …ngle_method_handler(php_dom_xpath_callbacks* registry, xmlXPathContextPtr ctxt, zend_string *ns, z…
62 …php_ns(php_dom_xpath_callbacks *xpath_callbacks, xmlXPathParserContextPtr ctxt, int num_args, php_…
63 …tom_ns(php_dom_xpath_callbacks *xpath_callbacks, xmlXPathParserContextPtr ctxt, int num_args, php_…
H A Dxpath_callbacks.c66 xmlXPathObjectPtr obj = valuePop(ctxt); in php_dom_xpath_callbacks_clean_argument_stack()
174 register_func(ctxt, namespace, name); in php_dom_xpath_callbacks_delayed_lib_registration()
182 xmlXPathContextPtr ctxt, in php_dom_xpath_callback_ns_update_method_handler() argument
212 register_func(ctxt, namespace, str); in php_dom_xpath_callback_ns_update_method_handler()
228 register_func(ctxt, namespace, key); in php_dom_xpath_callback_ns_update_method_handler()
252 register_func(ctxt, namespace, name); in php_dom_xpath_callback_ns_update_method_handler()
306 register_func(ctxt, ns, name); in php_dom_xpath_callbacks_update_single_method_handler()
324 xmlXPathObjectPtr obj = valuePop(ctxt); in php_dom_xpath_callback_fetch_args()
359 proxy_factory(node, &child, intern, ctxt); in php_dom_xpath_callback_fetch_args()
438 valuePush(ctxt, xmlXPathNewNodeSet(nodep)); in php_dom_xpath_callback_dispatch()
[all …]
H A Dxpath.c59 ZEND_IGNORE_VALUE(ctxt); in dom_xpath_proxy_factory()
66 static dom_xpath_object *dom_xpath_ext_fetch_intern(xmlXPathParserContextPtr ctxt) in dom_xpath_ext_fetch_intern() argument
74 dom_xpath_object *intern = (dom_xpath_object *) ctxt->context->userData; in dom_xpath_ext_fetch_intern()
86 dom_xpath_object *intern = dom_xpath_ext_fetch_intern(ctxt); in dom_xpath_ext_function_php()
88 php_dom_xpath_callbacks_clean_argument_stack(ctxt, nargs); in dom_xpath_ext_function_php()
95 static void dom_xpath_ext_function_string_php(xmlXPathParserContextPtr ctxt, int nargs) /* {{{ */ in dom_xpath_ext_function_string_php() argument
97 dom_xpath_ext_function_php(ctxt, nargs, PHP_DOM_XPATH_EVALUATE_NODESET_TO_STRING); in dom_xpath_ext_function_string_php()
103 dom_xpath_ext_function_php(ctxt, nargs, PHP_DOM_XPATH_EVALUATE_NODESET_TO_NODESET); in dom_xpath_ext_function_object_php()
107 static void dom_xpath_ext_function_trampoline(xmlXPathParserContextPtr ctxt, int nargs) in dom_xpath_ext_function_trampoline() argument
109 dom_xpath_object *intern = dom_xpath_ext_fetch_intern(ctxt); in dom_xpath_ext_function_trampoline()
[all …]
H A Dxml_document.c274 …xmlSaveCtxtPtr ctxt = xmlSaveToIO(php_new_dom_write_smart_str, NULL, &str, encoding, XML_SAVE_AS_X… in php_new_dom_dump_node_to_str_ex() local
275 if (EXPECTED(ctxt != NULL)) { in php_new_dom_dump_node_to_str_ex()
279 status = dom_xml_serialize(ctxt, out, node, format, false, get_private_data_from_node(node)); in php_new_dom_dump_node_to_str_ex()
285 (void) xmlSaveClose(ctxt); in php_new_dom_dump_node_to_str_ex()
318 xmlSaveCtxtPtr ctxt = xmlSaveToIO(out->writecallback, NULL, stream, encoding, XML_SAVE_AS_XML); in php_new_dom_dump_node_to_file() local
319 if (EXPECTED(ctxt != NULL)) { in php_new_dom_dump_node_to_file()
320 status = dom_xml_serialize(ctxt, out, node, format, false, get_private_data_from_node(node)); in php_new_dom_dump_node_to_file()
322 (void) xmlSaveClose(ctxt); in php_new_dom_dump_node_to_file()
H A Ddocument.c1386 if (ctxt == NULL) { in dom_document_parser()
1418 if (ctxt->sax != NULL) { in dom_document_parser()
1447 xmlParseDocument(ctxt); in dom_document_parser()
1450 ret = ctxt->myDoc; 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
2104 if (!ctxt) { in dom_load_html()
2111 if (ctxt->sax != NULL) { in dom_load_html()
[all …]
H A Dinner_outer_html_mixin.c82 xmlSaveCtxtPtr ctxt = xmlSaveToIO(dom_write_smart_str, NULL, &str, "UTF-8", XML_SAVE_AS_XML); in dom_element_html_fragment_serialize() local
83 if (EXPECTED(ctxt != NULL)) { in dom_element_html_fragment_serialize()
92 status = dom_xml_serialize(ctxt, out, child, false, true, private_data); in dom_element_html_fragment_serialize()
98 (void) xmlSaveClose(ctxt); in dom_element_html_fragment_serialize()
H A Dxml_serializer.c71 xmlSaveCtxtPtr ctxt; member
1229 TRY(xmlSaveDoc(ctx->ctxt, (xmlDocPtr) node)); in dom_xml_serializing_a_document_node()
1230 TRY(xmlSaveFlush(ctx->ctxt)); in dom_xml_serializing_a_document_node()
1286 TRY(xmlSaveTree(ctx->ctxt, node)); in dom_xml_serialization_algorithm()
1287 TRY(xmlSaveFlush(ctx->ctxt)); in dom_xml_serialization_algorithm()
1298 int dom_xml_serialize(xmlSaveCtxtPtr ctxt, xmlOutputBufferPtr out, xmlNodePtr node, bool format, bo… in dom_xml_serialize() argument
1316 ctx.ctxt = ctxt; in dom_xml_serialize()
/php-src/ext/xsl/
H A Dxsltprocessor.c95 xsl_object *intern = xsl_ext_fetch_intern(ctxt); in xsl_ext_function_php()
97 php_dom_xpath_callbacks_clean_argument_stack(ctxt, nargs); in xsl_ext_function_php()
118 xsl_object *intern = xsl_ext_fetch_intern(ctxt); in xsl_ext_function_trampoline()
292 xsltTransformContextPtr ctxt; in php_xsl_apply_stylesheet() local
341 ctxt = xsltNewTransformContext(style, doc); in php_xsl_apply_stylesheet()
342 ctxt->_private = (void *) intern; in php_xsl_apply_stylesheet()
353 ctxt->xinclude = zend_is_true(doXInclude); in php_xsl_apply_stylesheet()
358 ctxt->maxTemplateDepth = Z_LVAL_P(max_template_depth); in php_xsl_apply_stylesheet()
362 ctxt->maxTemplateVars = Z_LVAL_P(max_template_vars); in php_xsl_apply_stylesheet()
395 if (0 != xsltSetCtxtSecurityPrefs(secPrefs, ctxt)) { in php_xsl_apply_stylesheet()
[all …]
H A Dphp_xsl.h77 void xsl_ext_function_string_php(xmlXPathParserContextPtr ctxt, int nargs);
78 void xsl_ext_function_object_php(xmlXPathParserContextPtr ctxt, int nargs);
/php-src/ext/libxml/
H A Dphp_libxml.h262 static zend_always_inline void php_libxml_sanitize_parse_ctxt_options(xmlParserCtxtPtr ctxt)
265 ctxt->loadsubset = 0;
266 ctxt->validate = 0;
267 ctxt->pedantic = 0;
268 ctxt->replaceEntities = 0;
269 ctxt->linenumbers = 0;
270 ctxt->keepBlanks = 1;
271 ctxt->options = 0;
H A Dlibxml.c1506 xmlSaveCtxtPtr ctxt = xmlSaveToIO(php_libxml_write_smart_str, NULL, &str, encoding, options); in php_libxml_default_dump_doc_to_str() local
1507 if (!ctxt) { in php_libxml_default_dump_doc_to_str()
1511 long status = xmlSaveDoc(ctxt, doc); in php_libxml_default_dump_doc_to_str()
1512 (void) xmlSaveClose(ctxt); in php_libxml_default_dump_doc_to_str()
/php-src/ext/standard/tests/streams/
H A Dstream_context_tcp_nodelay.phpt11 $ctxt = stream_context_create([
18 "tcp://www.php.net:80", $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $ctxt);
H A Dstream_context_tcp_nodelay_fopen.phpt11 $ctxt = stream_context_create([
20 $stream = fopen("http://www.php.net", "r", false, $ctxt);
H A Dstream_context_tcp_nodelay_server.phpt8 $ctxt = stream_context_create([
15 "tcp://127.0.0.1:9099", $errno, $errstr, STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, $ctxt);

Completed in 99 milliseconds