Home
last modified time | relevance | path

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

12

/PHP-7.4/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…
37 ----( chunk_size: -1, output append size: 1 )----
40 ----( chunk_size: 0, output append size: 1 )----
43 ----( chunk_size: 1, output append size: 1 )----
54 ----( chunk_size: 2, output append size: 1 )----
61 ----( chunk_size: 3, output append size: 1 )----
66 ----( chunk_size: 4, output append size: 1 )----
71 ----( chunk_size: 5, output append size: 1 )----
75 ----( chunk_size: 6, output append size: 1 )----
79 ----( 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_start_basic_001.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
H A Dob_get_status.phpt26 ["chunk_size"]=>
H A Dob_start_error_005.phpt7 * 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_basic_005.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_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_basic_006.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
/PHP-7.4/ext/pcre/pcre2lib/sljit/
H A DsljitExecAllocator.c254 sljit_uw chunk_size; in sljit_malloc_exec() local
264 chunk_size = free_block->size; in sljit_malloc_exec()
265 if (chunk_size > size + 64) { in sljit_malloc_exec()
267 chunk_size -= size; in sljit_malloc_exec()
268 free_block->size = chunk_size; in sljit_malloc_exec()
276 size = chunk_size; in sljit_malloc_exec()
294 total_size += chunk_size; in sljit_malloc_exec()
297 if (chunk_size > size + 64) { in sljit_malloc_exec()
301 chunk_size -= size; in sljit_malloc_exec()
310 allocated_size += chunk_size; in sljit_malloc_exec()
[all …]
H A DsljitProtExecAllocator.c318 sljit_uw chunk_size; in sljit_malloc_exec() local
329 chunk_size = free_block->size; in sljit_malloc_exec()
330 if (chunk_size > size + 64) { in sljit_malloc_exec()
332 chunk_size -= size; in sljit_malloc_exec()
342 size = chunk_size; in sljit_malloc_exec()
353 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
364 total_size += chunk_size; in sljit_malloc_exec()
370 if (chunk_size > size + 64) { in sljit_malloc_exec()
374 chunk_size -= size; in sljit_malloc_exec()
384 allocated_size += chunk_size; in sljit_malloc_exec()
[all …]
/PHP-7.4/ext/xml/tests/
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");
H A Dbug32001.phpt17 private $chunk_size;
19 function __construct($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) {
21 $this->chunk_size = $chunk_size;
105 if ($this->chunk_size == 0) {
109 $offset += $this->chunk_size) {
110 $success = @xml_parse($parser, substr($data, $offset, $this->chunk_size), false);
122 echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n");
/PHP-7.4/main/
H A Dphp_output.h114 …ler_alias_ctor_t)(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags);
224 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags);
225 …ar *name, size_t name_len, php_output_handler_func_t output_handler, size_t chunk_size, int flags);
227 PHPAPI php_output_handler *php_output_handler_create_user(zval *handler, size_t chunk_size, int fla…
228 …r *name, size_t name_len, php_output_handler_context_func_t handler, size_t chunk_size, int flags);
H A Doutput.c56 static inline php_output_handler *php_output_handler_init(zend_string *name, size_t chunk_size, int…
438 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags) in php_output_start_user() argument
443 handler = php_output_handler_create_user(output_handler, chunk_size, flags); in php_output_start_user()
487 handler = alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags); in php_output_handler_create_user()
519 handler = php_output_handler_init(str, chunk_size, (flags & ~0xf) | PHP_OUTPUT_HANDLER_INTERNAL); in php_output_handler_create_internal()
871 handler->size = chunk_size; in php_output_handler_init()
873 handler->buffer.size = PHP_OUTPUT_HANDLER_INITBUF_SIZE(chunk_size); in php_output_handler_init()
1300 zend_long chunk_size = 0; in PHP_FUNCTION() local
1307 if (chunk_size < 0) { in PHP_FUNCTION()
1308 chunk_size = 0; in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/gd/tests/
H A Dbug73157.phpt17 printf("chunk size: %d\n", $header['chunk_size']);
H A Dbug73155.phpt17 printf("chunk size: %d\n", $header['chunk_size']);
/PHP-7.4/ext/oci8/
H A Doci8_lob.c91 descriptor->chunk_size = 0; in php_oci_lob_create()
211 ub4 chunk_size; in php_oci_lob_calculate_buffer() local
218 if (!descriptor->chunk_size) { in php_oci_lob_calculate_buffer()
219 …atus, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->descriptor, &chunk_size)); in php_oci_lob_calculate_buffer()
226 descriptor->chunk_size = chunk_size; in php_oci_lob_calculate_buffer()
230 if ((read_length % descriptor->chunk_size) != 0) { in php_oci_lob_calculate_buffer()
231 return (int) descriptor->chunk_size * (((int) read_length / descriptor->chunk_size) + 1); in php_oci_lob_calculate_buffer()
/PHP-7.4/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-7.4/main/streams/
H A Dstreams.c296 ret->chunk_size = FG(def_chunk_size); in _php_stream_alloc()
551 chunk_buf = emalloc(stream->chunk_size); in _php_stream_fill_read_buffer()
663 stream->readbuflen += stream->chunk_size; in _php_stream_fill_read_buffer()
975 toread = stream->chunk_size; in _php_stream_get_line()
978 if (toread > stream->chunk_size) { in _php_stream_get_line()
979 toread = stream->chunk_size; in _php_stream_get_line()
1138 if (towrite > stream->chunk_size) in _php_stream_write_buffer()
1139 towrite = stream->chunk_size; in _php_stream_write_buffer()
1389 ret = stream->chunk_size > INT_MAX ? INT_MAX : (int)stream->chunk_size; in _php_stream_set_option()
1390 stream->chunk_size = value; in _php_stream_set_option()
[all …]
/PHP-7.4/ext/standard/
H A Dfilters.c1851 size_t chunk_size; member
1866 data->chunk_size = 0; in php_dechunk()
1870 data->chunk_size = (data->chunk_size * 16) + (*p - '0'); in php_dechunk()
1872 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10); in php_dechunk()
1874 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10); in php_dechunk()
1909 if (data->chunk_size == 0) { in php_dechunk()
1926 out += data->chunk_size; in php_dechunk()
1927 out_len += data->chunk_size; in php_dechunk()
1928 p += data->chunk_size; in php_dechunk()
1937 data->chunk_size -= end - p; in php_dechunk()
[all …]
/PHP-7.4/ext/pdo_firebird/
H A Dfirebird_statement.c321 unsigned short chunk_size = (*len-cur_len) > USHRT_MAX ? USHRT_MAX in firebird_fetch_blob() local
324 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, &(*ptr)[cur_len]); in firebird_fetch_blob()
482 unsigned short chunk_size; in firebird_bind_blob() local
496 for (rem_cnt = Z_STRLEN(data); rem_cnt > 0; rem_cnt -= chunk_size) { in firebird_bind_blob()
497 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in firebird_bind_blob()
498 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL(data)[put_cnt])) { in firebird_bind_blob()
503 put_cnt += chunk_size; in firebird_bind_blob()
/PHP-7.4/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 );

Completed in 54 milliseconds

12