Home
last modified time | relevance | path

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

12

/PHP-8.2/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.2/ext/pcre/pcre2lib/sljit/
H A DsljitExecAllocator.c274 sljit_uw chunk_size; in sljit_malloc_exec() local
284 chunk_size = free_block->size; in sljit_malloc_exec()
286 if (chunk_size > size + 64) { in sljit_malloc_exec()
288 chunk_size -= size; in sljit_malloc_exec()
289 free_block->size = chunk_size; in sljit_malloc_exec()
297 size = chunk_size; in sljit_malloc_exec()
315 total_size += chunk_size; in sljit_malloc_exec()
318 if (chunk_size > size + 64) { in sljit_malloc_exec()
322 chunk_size -= size; in sljit_malloc_exec()
331 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.2/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.2/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…
449 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags) in php_output_start_user() argument
454 handler = php_output_handler_create_user(output_handler, chunk_size, flags); in php_output_start_user()
498 handler = alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags); in php_output_handler_create_user()
531 handler = php_output_handler_init(str, chunk_size, (flags & ~0xf) | PHP_OUTPUT_HANDLER_INTERNAL); in php_output_handler_create_internal()
883 handler->size = chunk_size; in php_output_handler_init()
885 handler->buffer.size = PHP_OUTPUT_HANDLER_INITBUF_SIZE(chunk_size); in php_output_handler_init()
1311 zend_long chunk_size = 0; in PHP_FUNCTION() local
1318 if (chunk_size < 0) { in PHP_FUNCTION()
1319 chunk_size = 0; in PHP_FUNCTION()
[all …]
/PHP-8.2/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.2/main/streams/
H A Dstreams.c296 ret->chunk_size = FG(def_chunk_size); in _php_stream_alloc()
987 toread = stream->chunk_size; in _php_stream_get_line()
990 if (toread > stream->chunk_size) { in _php_stream_get_line()
991 toread = stream->chunk_size; in _php_stream_get_line()
1148 size_t chunk_size = count; in _php_stream_write_buffer() local
1151 chunk_size = stream->chunk_size; in _php_stream_write_buffer()
1413 ret = stream->chunk_size > INT_MAX ? INT_MAX : (int)stream->chunk_size; in _php_stream_set_option()
1414 stream->chunk_size = value; in _php_stream_set_option()
1680 chunk_size = PHP_STREAM_MMAP_MAX; in _php_stream_copy_to_stream_ex()
1684 chunk_size = must_read; in _php_stream_copy_to_stream_ex()
[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.2/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.h184 ub4 chunk_size; /* chunk size of the LOB. 0 - unknown */ member
296 ub4 chunk_size; /* LOB chunk size */ member
H A Doci8.c1574 if (column->chunk_size) in php_oci_column_to_zval()
1575 descriptor->chunk_size = column->chunk_size; in php_oci_column_to_zval()
1577 if (descriptor->chunk_size) /* Cache the chunk_size to avoid recalling OCILobGetChunkSize */ in php_oci_column_to_zval()
1578 column->chunk_size = descriptor->chunk_size; in php_oci_column_to_zval()
/PHP-8.2/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.2/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()
969 php_stream_set_chunk_size(stream, (int)chunk_size); in php_stream_url_wrap_http_ex()
/PHP-8.2/ext/pdo_firebird/
H A Dfirebird_statement.c359 unsigned short chunk_size = (len - cur_len) > USHRT_MAX ? USHRT_MAX in firebird_fetch_blob() local
362 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, ZSTR_VAL(str) + cur_len); in firebird_fetch_blob()
515 unsigned short chunk_size; in firebird_bind_blob() local
529 for (rem_cnt = Z_STRLEN(data); rem_cnt > 0; rem_cnt -= chunk_size) { in firebird_bind_blob()
530 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in firebird_bind_blob()
531 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL(data)[put_cnt])) { in firebird_bind_blob()
536 put_cnt += chunk_size; in firebird_bind_blob()
/PHP-8.2/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.2/ext/tidy/
H A Dtidy.c136 …tput_handler_init(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags);
949 …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
951 if (chunk_size) { in php_tidy_output_handler_init()
958 …andler_create_internal(handler_name, handler_name_len, php_tidy_output_handler, chunk_size, flags); in php_tidy_output_handler_init()
/PHP-8.2/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.2/ext/gd/
H A Dgd.stub.php632 function imagegd2(GdImage $image, ?string $file = null, int $chunk_size = UNKNOWN, int $mode = UNKN… argument
/PHP-8.2/ext/iconv/
H A Diconv.c159 …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 89 milliseconds

12