Home
last modified time | relevance | path

Searched refs:chunk_size (Results 1 – 25 of 36) sorted by last modified time

12

/PHP-5.5/tests/output/
H A Dob_start_basic_001.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_start_basic_004.phpt2 ob_start() chunk_size: confirm buffer is flushed after any output call that causes its length to eq…
38 ----( chunk_size: -1, output append size: 1 )----
41 ----( chunk_size: 0, output append size: 1 )----
44 ----( chunk_size: 1, output append size: 1 )----
55 ----( chunk_size: 2, output append size: 1 )----
62 ----( chunk_size: 3, output append size: 1 )----
67 ----( chunk_size: 4, output append size: 1 )----
72 ----( chunk_size: 5, output append size: 1 )----
76 ----( chunk_size: 6, output append size: 1 )----
80 ----( chunk_size: 7, output append size: 1 )----
[all …]
H A Dob_start_basic_005.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_start_basic_006.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_start_error_001.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_start_error_002.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_start_error_003.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_start_error_004.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_start_error_005.phpt7 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
/PHP-5.5/main/streams/
H A Dstreams.c306 ret->chunk_size = FG(def_chunk_size); in _php_stream_alloc()
586 chunk_buf = emalloc(stream->chunk_size); in _php_stream_fill_read_buffer()
687 stream->readbuflen += stream->chunk_size; in _php_stream_fill_read_buffer()
967 toread = stream->chunk_size; in _php_stream_get_line()
970 if (toread > stream->chunk_size) { in _php_stream_get_line()
971 toread = stream->chunk_size; in _php_stream_get_line()
1048 to_read_now = MIN(maxlen - buffered_len, stream->chunk_size); in php_stream_get_record()
1130 if (towrite > stream->chunk_size) in _php_stream_write_buffer()
1131 towrite = stream->chunk_size; in _php_stream_write_buffer()
1363 ret = stream->chunk_size; in _php_stream_set_option()
[all …]
H A Dfilter.c493 …= perealloc(stream->readbuf, stream->writepos + flushed_size + stream->chunk_size, stream->is_pers… in _php_stream_filter_flush()
/PHP-5.5/main/
H A Dphp_output.h121 …lias_ctor_t)(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags TSRML…
230 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags TSRMLS_DC);
231 …ame, size_t name_len, php_output_handler_func_t output_handler, size_t chunk_size, int flags TSRML…
233 PHPAPI php_output_handler *php_output_handler_create_user(zval *handler, size_t chunk_size, int fla…
234 …me, size_t name_len, php_output_handler_context_func_t handler, size_t chunk_size, int flags TSRML…
H A Dphp_streams.h221 size_t chunk_size; member
H A Doutput.c451 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags TSRMLS_DC) in php_output_start_user() argument
456 handler = php_output_handler_create_user(output_handler, chunk_size, flags TSRMLS_CC); in php_output_start_user()
486 PHPAPI php_output_handler *php_output_handler_create_user(zval *output_handler, size_t chunk_size, … in php_output_handler_create_user() argument
499 …handler = (*alias)(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags TSRML… in php_output_handler_create_user()
884 handler->size = chunk_size; in php_output_handler_init()
886 handler->buffer.size = PHP_OUTPUT_HANDLER_INITBUF_SIZE(chunk_size); in php_output_handler_init()
1322 long chunk_size = 0; in PHP_FUNCTION() local
1325 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z/ll", &output_handler, &chunk_size, &flags… in PHP_FUNCTION()
1329 if (chunk_size < 0) { in PHP_FUNCTION()
1330 chunk_size = 0; in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/zlib/
H A Dzlib.c270 …handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags TSRML… in php_zlib_output_handler_init() argument
275 ZLIBG(output_compression) = chunk_size ? chunk_size : PHP_OUTPUT_HANDLER_DEFAULT_SIZE; in php_zlib_output_handler_init()
280 …eate_internal(handler_name, handler_name_len, php_zlib_output_handler, chunk_size, flags TSRMLS_CC… in php_zlib_output_handler_init()
/PHP-5.5/ext/xml/tests/
H A Dbug32001.phpt15 private $chunk_size;
17 function testcase($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) {
19 $this->chunk_size = $chunk_size;
103 if ($this->chunk_size == 0) {
107 $offset += $this->chunk_size) {
108 $success = @xml_parse($parser, substr($data, $offset, $this->chunk_size), false);
120 echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n");
H A Dbug32001b.phpt18 private $chunk_size;
20 function testcase($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) {
22 $this->chunk_size = $chunk_size;
61 if ($this->chunk_size == 0) {
65 $offset += $this->chunk_size) {
66 $success = @xml_parse($parser, substr($data, $offset, $this->chunk_size), false);
78 echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n");
/PHP-5.5/ext/tidy/
H A Dtidy.c224 …handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags TSRML…
1164 …handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags TSRML… in php_tidy_output_handler_init() argument
1166 if (chunk_size) { in php_tidy_output_handler_init()
1173 …eate_internal(handler_name, handler_name_len, php_tidy_output_handler, chunk_size, flags TSRMLS_CC… in php_tidy_output_handler_init()
/PHP-5.5/ext/standard/tests/file/
H A Dfile.inc123 $chunk_size = 1024;
124 if ( $size > $chunk_size ) {
128 if ( $size <= $chunk_size ) {
129 $chunk_size = $size;
131 $num_values = str_repeat($data, ($chunk_size/$size_divider) + $add_value );
132 $bytes_written = fwrite($file_handle, $num_values, $chunk_size);
133 if ( $bytes_written != $chunk_size ) {
136 $size -= $chunk_size;
139 $num_values = str_repeat($data, ($chunk_size/$size_divider) + $add_value );
/PHP-5.5/ext/standard/
H A Dhttp_fopen_wrapper.c128 size_t chunk_size = 0, file_size = 0; in php_stream_url_wrap_http_ex() local
330 chunk_size = php_stream_set_chunk_size(stream, 1); in php_stream_url_wrap_http_ex()
910 php_stream_set_chunk_size(stream, chunk_size); in php_stream_url_wrap_http_ex()
H A Dfilters.c1951 size_t chunk_size; member
1965 data->chunk_size = 0; in php_dechunk()
1969 data->chunk_size = (data->chunk_size * 16) + (*p - '0'); in php_dechunk()
1971 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10); in php_dechunk()
1973 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10); in php_dechunk()
2008 if (data->chunk_size == 0) { in php_dechunk()
2025 out += data->chunk_size; in php_dechunk()
2026 out_len += data->chunk_size; in php_dechunk()
2027 p += data->chunk_size; in php_dechunk()
2036 data->chunk_size -= end - p; in php_dechunk()
[all …]
H A Dbasic_functions.c151 ZEND_ARG_INFO(0, chunk_size)
2133 ZEND_ARG_INFO(0, chunk_size)
/PHP-5.5/ext/pdo_firebird/
H A Dfirebird_statement.c274 unsigned short chunk_size = (*len-cur_len) > USHRT_MAX ? USHRT_MAX in firebird_fetch_blob() local
277 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, &(*ptr)[cur_len]); in firebird_fetch_blob()
417 unsigned short chunk_size; in firebird_bind_blob() local
429 for (rem_cnt = Z_STRLEN_P(param); rem_cnt > 0; rem_cnt -= chunk_size) { in firebird_bind_blob()
431 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in firebird_bind_blob()
433 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL_P(param)[put_cnt])) { in firebird_bind_blob()
438 put_cnt += chunk_size; in firebird_bind_blob()
/PHP-5.5/ext/pcre/pcrelib/sljit/
H A DsljitExecAllocator.c180 sljit_uw chunk_size; in sljit_malloc_exec() local
190 chunk_size = free_block->size; in sljit_malloc_exec()
191 if (chunk_size > size + 64) { in sljit_malloc_exec()
193 chunk_size -= size; in sljit_malloc_exec()
194 free_block->size = chunk_size; in sljit_malloc_exec()
202 size = chunk_size; in sljit_malloc_exec()
220 total_size += chunk_size; in sljit_malloc_exec()
223 if (chunk_size > size + 64) { in sljit_malloc_exec()
227 chunk_size -= size; in sljit_malloc_exec()
236 allocated_size += chunk_size; in sljit_malloc_exec()
[all …]
/PHP-5.5/ext/openssl/
H A Dxp_ssl.c960 php_stream_fill_read_buffer(stream, pending < stream->chunk_size in php_openssl_sockop_cast()
962 : stream->chunk_size); in php_openssl_sockop_cast()

Completed in 165 milliseconds

12