Home
last modified time | relevance | path

Searched refs:chunk_size (Results 1 – 25 of 35) sorted by relevance

12

/PHP-8.1/tests/output/
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…
36 ----( chunk_size: -1, output append size: 1 )----
39 ----( chunk_size: 0, output append size: 1 )----
42 ----( chunk_size: 1, output append size: 1 )----
53 ----( chunk_size: 2, output append size: 1 )----
60 ----( chunk_size: 3, output append size: 1 )----
65 ----( chunk_size: 4, output append size: 1 )----
70 ----( chunk_size: 5, output append size: 1 )----
74 ----( chunk_size: 6, output append size: 1 )----
78 ----( chunk_size: 7, output append size: 1 )----
[all …]
H A Dob_013.phpt44 [chunk_size] => %d
56 [chunk_size] => %d
67 [chunk_size] => %d
78 [chunk_size] => %d
89 [chunk_size] => %d
100 [chunk_size] => %d
H A Dob_get_status.phpt26 ["chunk_size"]=>
/PHP-8.1/ext/pcre/pcre2lib/sljit/
H A DsljitExecAllocator.c269 sljit_uw chunk_size; in sljit_malloc_exec() local
279 chunk_size = free_block->size; in sljit_malloc_exec()
281 if (chunk_size > size + 64) { in sljit_malloc_exec()
283 chunk_size -= size; in sljit_malloc_exec()
284 free_block->size = chunk_size; in sljit_malloc_exec()
292 size = chunk_size; in sljit_malloc_exec()
310 total_size += chunk_size; in sljit_malloc_exec()
313 if (chunk_size > size + 64) { in sljit_malloc_exec()
317 chunk_size -= size; in sljit_malloc_exec()
326 allocated_size += chunk_size; in sljit_malloc_exec()
[all …]
H A DsljitProtExecAllocator.c321 sljit_uw chunk_size; in sljit_malloc_exec() local
332 chunk_size = free_block->size; in sljit_malloc_exec()
333 if (chunk_size > size + 64) { in sljit_malloc_exec()
335 chunk_size -= size; in sljit_malloc_exec()
345 size = chunk_size; in sljit_malloc_exec()
356 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
367 total_size += chunk_size; in sljit_malloc_exec()
373 if (chunk_size > size + 64) { in sljit_malloc_exec()
377 chunk_size -= size; in sljit_malloc_exec()
387 allocated_size += chunk_size; in sljit_malloc_exec()
[all …]
/PHP-8.1/ext/xml/tests/
H A Dbug32001b.phpt23 private $chunk_size;
25 function testcase($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) {
27 $this->chunk_size = $chunk_size;
66 if ($this->chunk_size == 0) {
70 $offset += $this->chunk_size) {
71 $success = @xml_parse($parser, substr($data, $offset, $this->chunk_size), false);
83 … echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n");
H A Dbug32001.phpt18 private $chunk_size;
20 function __construct($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) {
22 $this->chunk_size = $chunk_size;
106 if ($this->chunk_size == 0) {
110 $offset += $this->chunk_size) {
111 $success = @xml_parse($parser, substr($data, $offset, $this->chunk_size), false);
123 … echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n");
/PHP-8.1/main/
H A Dphp_output.h112 …ler_alias_ctor_t)(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags);
222 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags);
223 …ar *name, size_t name_len, php_output_handler_func_t output_handler, size_t chunk_size, int flags);
225 PHPAPI php_output_handler *php_output_handler_create_user(zval *handler, size_t chunk_size, int fla…
226 …r *name, size_t name_len, php_output_handler_context_func_t handler, size_t chunk_size, int flags);
H A Doutput.c54 static inline php_output_handler *php_output_handler_init(zend_string *name, size_t chunk_size, int…
445 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags) in php_output_start_user() argument
450 handler = php_output_handler_create_user(output_handler, chunk_size, flags); in php_output_start_user()
494 handler = alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags); in php_output_handler_create_user()
527 handler = php_output_handler_init(str, chunk_size, (flags & ~0xf) | PHP_OUTPUT_HANDLER_INTERNAL); in php_output_handler_create_internal()
879 handler->size = chunk_size; in php_output_handler_init()
881 handler->buffer.size = PHP_OUTPUT_HANDLER_INITBUF_SIZE(chunk_size); in php_output_handler_init()
1307 zend_long chunk_size = 0; in PHP_FUNCTION() local
1314 if (chunk_size < 0) { in PHP_FUNCTION()
1315 chunk_size = 0; in PHP_FUNCTION()
[all …]
/PHP-8.1/ext/gd/tests/
H A Dbug73157.phpt21 printf("chunk size: %d\n", $header['chunk_size']);
H A Dbug73155.phpt21 printf("chunk size: %d\n", $header['chunk_size']);
/PHP-8.1/ext/oci8/
H A Doci8_lob.c89 descriptor->chunk_size = 0; in php_oci_lob_create()
209 ub4 chunk_size; in php_oci_lob_calculate_buffer() local
216 if (!descriptor->chunk_size) { in php_oci_lob_calculate_buffer()
217 …atus, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->descriptor, &chunk_size)); in php_oci_lob_calculate_buffer()
224 descriptor->chunk_size = chunk_size; in php_oci_lob_calculate_buffer()
228 if ((read_length % descriptor->chunk_size) != 0) { in php_oci_lob_calculate_buffer()
229 return (int) descriptor->chunk_size * (((int) read_length / descriptor->chunk_size) + 1); in php_oci_lob_calculate_buffer()
H A Dphp_oci8_int.h180 ub4 chunk_size; /* chunk size of the LOB. 0 - unknown */ member
291 ub4 chunk_size; /* LOB chunk size */ member
H A Doci8.c1721 if (column->chunk_size) in php_oci_column_to_zval()
1722 descriptor->chunk_size = column->chunk_size; in php_oci_column_to_zval()
1724 if (descriptor->chunk_size) /* Cache the chunk_size to avoid recalling OCILobGetChunkSize */ in php_oci_column_to_zval()
1725 column->chunk_size = descriptor->chunk_size; in php_oci_column_to_zval()
/PHP-8.1/docs/
H A Doutput-api.md15 // php_start_ob_buffer(zhandler, chunk_size, erase);
16 php_output_start_user(zhandler, chunk_size, flags);
20 …ut_start_internal(handler_name, handler_name_len, my_php_output_handler_func_t, chunk_size, flags);
25 …_internal(handler_name, handler_name_len, my_php_output_handler_context_func_t, chunk_size, flags);
/PHP-8.1/ext/standard/
H A Dfilters.c1720 size_t chunk_size; member
1735 data->chunk_size = 0; in php_dechunk()
1739 data->chunk_size = (data->chunk_size * 16) + (*p - '0'); in php_dechunk()
1741 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10); in php_dechunk()
1743 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10); in php_dechunk()
1782 if (data->chunk_size == 0) { in php_dechunk()
1801 out += data->chunk_size; in php_dechunk()
1802 out_len += data->chunk_size; in php_dechunk()
1803 p += data->chunk_size; in php_dechunk()
1812 data->chunk_size -= end - p; in php_dechunk()
[all …]
H A Dhttp_fopen_wrapper.c134 size_t chunk_size = 0, file_size = 0; in php_stream_url_wrap_http_ex() local
361 chunk_size = php_stream_set_chunk_size(stream, 1); in php_stream_url_wrap_http_ex()
958 php_stream_set_chunk_size(stream, (int)chunk_size); in php_stream_url_wrap_http_ex()
/PHP-8.1/main/streams/
H A Dstreams.c294 ret->chunk_size = FG(def_chunk_size); in _php_stream_alloc()
543 size_t to_read_now = MIN(size, stream->chunk_size); in _php_stream_fill_read_buffer()
549 chunk_buf = emalloc(stream->chunk_size); in _php_stream_fill_read_buffer()
661 stream->readbuflen += stream->chunk_size; in _php_stream_fill_read_buffer()
973 toread = stream->chunk_size; in _php_stream_get_line()
976 if (toread > stream->chunk_size) { in _php_stream_get_line()
977 toread = stream->chunk_size; in _php_stream_get_line()
1054 to_read_now = MIN(maxlen - buffered_len, stream->chunk_size); in php_stream_get_record()
1387 ret = stream->chunk_size > INT_MAX ? INT_MAX : (int)stream->chunk_size; in _php_stream_set_option()
1388 stream->chunk_size = value; in _php_stream_set_option()
[all …]
H A Dfilter.c460 …= perealloc(stream->readbuf, stream->writepos + flushed_size + stream->chunk_size, stream->is_pers… in _php_stream_filter_flush()
/PHP-8.1/ext/pdo_firebird/
H A Dfirebird_statement.c351 unsigned short chunk_size = (len - cur_len) > USHRT_MAX ? USHRT_MAX in firebird_fetch_blob() local
354 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, ZSTR_VAL(str) + cur_len); in firebird_fetch_blob()
507 unsigned short chunk_size; in firebird_bind_blob() local
521 for (rem_cnt = Z_STRLEN(data); rem_cnt > 0; rem_cnt -= chunk_size) { in firebird_bind_blob()
522 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in firebird_bind_blob()
523 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL(data)[put_cnt])) { in firebird_bind_blob()
528 put_cnt += chunk_size; in firebird_bind_blob()
/PHP-8.1/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, (int) (($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, (int) (($chunk_size/$size_divider) + $add_value) );
/PHP-8.1/ext/zlib/
H A Dzlib.c340 …utput_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags) in php_zlib_output_handler_init() argument
345 ZLIBG(output_compression) = chunk_size ? chunk_size : PHP_OUTPUT_HANDLER_DEFAULT_SIZE; in php_zlib_output_handler_init()
350 …ler_create_internal(handler_name, handler_name_len, php_zlib_output_handler, chunk_size, flags))) { in php_zlib_output_handler_init()
/PHP-8.1/ext/tidy/
H A Dtidy.c198 …tput_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags);
930 …utput_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags) in php_tidy_output_handler_init() argument
932 if (chunk_size) { in php_tidy_output_handler_init()
939 …andler_create_internal(handler_name, handler_name_len, php_tidy_output_handler, chunk_size, flags); in php_tidy_output_handler_init()
/PHP-8.1/ext/gd/
H A Dgd.stub.php168 function imagegd2(GdImage $image, ?string $file = null, int $chunk_size = UNKNOWN, int $mode = UNKN… argument
/PHP-8.1/ext/iconv/
H A Diconv.c136 …er *php_iconv_output_handler_init(const char *name, size_t name_len, size_t chunk_size, int flags);
295 …utput_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags) in php_iconv_output_handler_init() argument
297 …ndler_create_internal(handler_name, handler_name_len, php_iconv_output_handler, chunk_size, flags); in php_iconv_output_handler_init()

Completed in 123 milliseconds

12