Lines Matching refs:context

96 	ZEND_ARG_INFO(0, context)
298 php_stream_context *context = NULL; in php_libxml_streams_IO_open_wrapper() local
359context = php_stream_context_from_zval(Z_ISUNDEF(LIBXML(stream_context))? NULL : &LIBXML(stream_co… in php_libxml_streams_IO_open_wrapper()
361 ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, REPORT_ERRORS, NULL, context); in php_libxml_streams_IO_open_wrapper()
382 static int php_libxml_streams_IO_read(void *context, char *buffer, int len) in php_libxml_streams_IO_read() argument
384 return php_stream_read((php_stream*)context, buffer, len); in php_libxml_streams_IO_read()
387 static int php_libxml_streams_IO_write(void *context, const char *buffer, int len) in php_libxml_streams_IO_write() argument
389 return php_stream_write((php_stream*)context, buffer, len); in php_libxml_streams_IO_write()
392 static int php_libxml_streams_IO_close(void *context) in php_libxml_streams_IO_close() argument
394 return php_stream_close((php_stream*)context); in php_libxml_streams_IO_close()
401 void *context = NULL; in php_libxml_input_buffer_create_filename() local
410 context = php_libxml_streams_IO_open_read_wrapper(URI); in php_libxml_input_buffer_create_filename()
412 if (context == NULL) { in php_libxml_input_buffer_create_filename()
418 php_stream *s = (php_stream *) context; in php_libxml_input_buffer_create_filename()
467 ret->context = context; in php_libxml_input_buffer_create_filename()
471 php_libxml_streams_IO_close(context); in php_libxml_input_buffer_create_filename()
483 void *context = NULL; in php_libxml_output_buffer_create_filename() local
502 context = php_libxml_streams_IO_open_write_wrapper(unescaped); in php_libxml_output_buffer_create_filename()
507 if (context == NULL) { in php_libxml_output_buffer_create_filename()
508 context = php_libxml_streams_IO_open_write_wrapper(URI); in php_libxml_output_buffer_create_filename()
511 if (context == NULL) { in php_libxml_output_buffer_create_filename()
518 ret->context = context; in php_libxml_output_buffer_create_filename()
628 const char *ID, xmlParserCtxtPtr context) in _php_libxml_external_entity_loader() argument
641 return _php_libxml_default_entity_loader(URL, ID, context); in _php_libxml_external_entity_loader()
658 if (context->memb == NULL) { \ in _php_libxml_external_entity_loader()
662 (char *)context->memb); \ in _php_libxml_external_entity_loader()
679 php_libxml_ctx_error(context, in _php_libxml_external_entity_loader()
697 php_libxml_ctx_error(context, in _php_libxml_external_entity_loader()
706 php_libxml_ctx_error(context, "Could not allocate parser " in _php_libxml_external_entity_loader()
711 pib->context = stream; in _php_libxml_external_entity_loader()
715 ret = xmlNewIOInputStream(context, pib, enc); in _php_libxml_external_entity_loader()
734 php_libxml_ctx_error(context, in _php_libxml_external_entity_loader()
738 ret = xmlNewInputFromFile(context, resource); in _php_libxml_external_entity_loader()
750 const char *ID, xmlParserCtxtPtr context) in _php_libxml_pre_ext_ent_loader() argument
763 return _php_libxml_external_entity_loader(URL, ID, context); in _php_libxml_pre_ext_ent_loader()
765 return _php_libxml_default_entity_loader(URL, ID, context); in _php_libxml_pre_ext_ent_loader()
836 PHP_LIBXML_API void php_libxml_switch_context(zval *context, zval *oldcontext) in php_libxml_switch_context() argument
841 if (context) { in php_libxml_switch_context()
842 ZVAL_COPY_VALUE(&LIBXML(stream_context), context); in php_libxml_switch_context()