Home
last modified time | relevance | path

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

12

/PHP-7.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…
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.2/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-7.2/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.2/main/
H A Dphp_output.h116 …ler_alias_ctor_t)(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags);
226 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags);
227 …ar *name, size_t name_len, php_output_handler_func_t output_handler, size_t chunk_size, int flags);
229 PHPAPI php_output_handler *php_output_handler_create_user(zval *handler, size_t chunk_size, int fla…
230 …r *name, size_t name_len, php_output_handler_context_func_t handler, size_t chunk_size, int flags);
H A Doutput.c58 static inline php_output_handler *php_output_handler_init(zend_string *name, size_t chunk_size, int…
441 PHPAPI int php_output_start_user(zval *output_handler, size_t chunk_size, int flags) in php_output_start_user() argument
446 handler = php_output_handler_create_user(output_handler, chunk_size, flags); in php_output_start_user()
490 handler = alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags); in php_output_handler_create_user()
522 handler = php_output_handler_init(str, chunk_size, (flags & ~0xf) | PHP_OUTPUT_HANDLER_INTERNAL); in php_output_handler_create_internal()
869 handler->size = chunk_size; in php_output_handler_init()
871 handler->buffer.size = PHP_OUTPUT_HANDLER_INITBUF_SIZE(chunk_size); in php_output_handler_init()
1298 zend_long chunk_size = 0; in PHP_FUNCTION() local
1305 if (chunk_size < 0) { in PHP_FUNCTION()
1306 chunk_size = 0; in PHP_FUNCTION()
[all …]
/PHP-7.2/ext/interbase/
H A Dibase_blobs.c106 unsigned short chunk_size = (max_len-cur_len) > USHRT_MAX ? USHRT_MAX in _php_ibase_blob_get() local
109 …stat = isc_get_segment(IB_STATUS, &ib_blob->bl_handle, &seg_len, chunk_size, &ZSTR_VAL(bl_data)[cu… in _php_ibase_blob_get()
130 unsigned short chunk_size; in _php_ibase_blob_add() local
134 for (rem_cnt = Z_STRLEN_P(string_arg); rem_cnt > 0; rem_cnt -= chunk_size) { in _php_ibase_blob_add()
136 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in _php_ibase_blob_add()
138 …if (isc_put_segment(IB_STATUS, &ib_blob->bl_handle, chunk_size, &Z_STRVAL_P(string_arg)[put_cnt] )… in _php_ibase_blob_add()
142 put_cnt += chunk_size; in _php_ibase_blob_add()
/PHP-7.2/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.2/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.2/
H A DREADME.NEW-OUTPUT-API18 // php_start_ob_buffer(zhandler, chunk_size, erase);
19 php_output_start_user(zhandler, chunk_size, flags);
23 …ut_start_internal(handler_name, handler_name_len, my_php_output_handler_func_t, chunk_size, flags);
28 …_internal(handler_name, handler_name_len, my_php_output_handler_context_func_t, chunk_size, flags);
/PHP-7.2/ext/standard/
H A Dfilters.c1844 size_t chunk_size; member
1859 data->chunk_size = 0; in php_dechunk()
1863 data->chunk_size = (data->chunk_size * 16) + (*p - '0'); in php_dechunk()
1865 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10); in php_dechunk()
1867 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10); in php_dechunk()
1902 if (data->chunk_size == 0) { in php_dechunk()
1919 out += data->chunk_size; in php_dechunk()
1920 out_len += data->chunk_size; in php_dechunk()
1921 p += data->chunk_size; in php_dechunk()
1930 data->chunk_size -= end - p; in php_dechunk()
[all …]
/PHP-7.2/ext/pdo_firebird/
H A Dfirebird_statement.c301 unsigned short chunk_size = (*len-cur_len) > USHRT_MAX ? USHRT_MAX in firebird_fetch_blob() local
304 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, &(*ptr)[cur_len]); in firebird_fetch_blob()
453 unsigned short chunk_size; in firebird_bind_blob() local
468 for (rem_cnt = Z_STRLEN(data); rem_cnt > 0; rem_cnt -= chunk_size) { in firebird_bind_blob()
469 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in firebird_bind_blob()
470 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL(data)[put_cnt])) { in firebird_bind_blob()
475 put_cnt += chunk_size; in firebird_bind_blob()
/PHP-7.2/main/streams/
H A Dstreams.c288 ret->chunk_size = FG(def_chunk_size); in _php_stream_alloc()
541 chunk_buf = emalloc(stream->chunk_size); in _php_stream_fill_read_buffer()
642 stream->readbuflen += stream->chunk_size; in _php_stream_fill_read_buffer()
924 toread = stream->chunk_size; in _php_stream_get_line()
927 if (toread > stream->chunk_size) { in _php_stream_get_line()
928 toread = stream->chunk_size; in _php_stream_get_line()
1005 to_read_now = MIN(maxlen - buffered_len, stream->chunk_size); in php_stream_get_record()
1087 if (towrite > stream->chunk_size) in _php_stream_write_buffer()
1088 towrite = stream->chunk_size; in _php_stream_write_buffer()
1331 ret = stream->chunk_size > INT_MAX ? INT_MAX : (int)stream->chunk_size; in _php_stream_set_option()
[all …]
/PHP-7.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, ($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 58 milliseconds

12