Searched refs:output_context (Results 1 – 5 of 5) sorted by relevance
/php-src/ext/zlib/ |
H A D | zlib.c | 194 if (output_context->in.used) { in php_zlib_output_handler_ex() 204 memcpy(ctx->buffer.data + ctx->buffer.used, output_context->in.data, output_context->in.used); in php_zlib_output_handler_ex() 205 ctx->buffer.free -= output_context->in.used; in php_zlib_output_handler_ex() 206 ctx->buffer.used += output_context->in.used; in php_zlib_output_handler_ex() 208 output_context->out.size = PHP_ZLIB_BUFFER_SIZE_GUESS(output_context->in.used); in php_zlib_output_handler_ex() 209 output_context->out.data = emalloc(output_context->out.size); in php_zlib_output_handler_ex() 210 output_context->out.free = 1; in php_zlib_output_handler_ex() 211 output_context->out.used = 0; in php_zlib_output_handler_ex() 215 ctx->Z.avail_out = output_context->out.size; in php_zlib_output_handler_ex() 237 output_context->out.used = output_context->out.size - ctx->Z.avail_out; in php_zlib_output_handler_ex() [all …]
|
/php-src/main/ |
H A D | output.c | 70 …_result php_output_handler_compat_func(void **handler_context, php_output_context *output_context); 71 …result php_output_handler_default_func(void **handler_context, php_output_context *output_context); 72 …result php_output_handler_devnull_func(void **handler_context, php_output_context *output_context); 1253 …d_result php_output_handler_compat_func(void **handler_context, php_output_context *output_context) in php_output_handler_compat_func() argument 1261 func(output_context->in.data, output_context->in.used, &out_str, &out_len, output_context->op); in php_output_handler_compat_func() 1264 output_context->out.data = out_str; in php_output_handler_compat_func() 1265 output_context->out.used = out_len; in php_output_handler_compat_func() 1266 output_context->out.free = 1; in php_output_handler_compat_func() 1268 php_output_context_pass(output_context); in php_output_handler_compat_func() 1279 …_result php_output_handler_default_func(void **handler_context, php_output_context *output_context) in php_output_handler_default_func() argument [all …]
|
H A D | php_output.h | 108 …t (*php_output_handler_context_func_t)(void **handler_context, php_output_context *output_context);
|
/php-src/ext/tidy/ |
H A D | tidy.c | 139 static zend_result php_tidy_output_handler(void **nothing, php_output_context *output_context); 957 static zend_result php_tidy_output_handler(void **nothing, php_output_context *output_context) in php_tidy_output_handler() argument 963 …if (TG(clean_output) && (output_context->op & PHP_OUTPUT_HANDLER_START) && (output_context->op & P… in php_tidy_output_handler() 971 if (ZEND_SIZE_T_UINT_OVFL(output_context->in.used)) { in php_tidy_output_handler() 979 tidyBufAttach(&inbuf, (byte *) output_context->in.data, (uint32_t)output_context->in.used); in php_tidy_output_handler() 985 output_context->out.data = (char *) outbuf.bp; in php_tidy_output_handler() 986 output_context->out.used = outbuf.size ? outbuf.size-1 : 0; in php_tidy_output_handler() 987 output_context->out.free = 1; in php_tidy_output_handler()
|
/php-src/ext/iconv/ |
H A D | iconv.c | 159 static zend_result php_iconv_output_handler(void **nothing, php_output_context *output_context); 299 static zend_result php_iconv_output_handler(void **nothing, php_output_context *output_context) in php_iconv_output_handler() argument 304 if (output_context->op & PHP_OUTPUT_HANDLER_START) { in php_iconv_output_handler() 321 …pe != NULL && (!(output_context->op & PHP_OUTPUT_HANDLER_CLEAN) || ((output_context->op & PHP_OUTP… in php_iconv_output_handler() 337 if (output_context->in.used) { in php_iconv_output_handler() 339 output_context->out.free = 1; in php_iconv_output_handler() 340 …_php_iconv_show_error(php_iconv_string(output_context->in.data, output_context->in.used, &out, get… in php_iconv_output_handler() 342 output_context->out.data = estrndup(ZSTR_VAL(out), ZSTR_LEN(out)); in php_iconv_output_handler() 343 output_context->out.used = ZSTR_LEN(out); in php_iconv_output_handler() 346 output_context->out.data = NULL; in php_iconv_output_handler() [all …]
|
Completed in 22 milliseconds