Home
last modified time | relevance | path

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

12

/PHP-5.3/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 )----
45 ----( chunk_size: 2, output append size: 1 )----
52 ----( chunk_size: 3, output append size: 1 )----
57 ----( chunk_size: 4, output append size: 1 )----
62 ----( chunk_size: 5, output append size: 1 )----
66 ----( chunk_size: 6, output append size: 1 )----
70 ----( chunk_size: 7, output append size: 1 )----
[all …]
H A Dob_013.phpt50 [chunk_size] => 0
61 [chunk_size] => 0
72 [chunk_size] => 0
83 [chunk_size] => 0
94 [chunk_size] => 0
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.phpt18 ["chunk_size"]=>
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]]])
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_002.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_basic_006.phpt6 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
/PHP-5.3/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.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");
/PHP-5.3/main/
H A Doutput.c151 if (chunk_size > 0) { in php_start_ob_buffer()
152 if (chunk_size==1) { in php_start_ob_buffer()
153 chunk_size = 4096; in php_start_ob_buffer()
155 initial_size = (chunk_size*3/2); in php_start_ob_buffer()
156 block_size = chunk_size/2; in php_start_ob_buffer()
450 tmp_buf.chunk_size = chunk_size; in php_ob_init_named()
620 if (OG(active_ob_buffer).chunk_size in php_ob_append()
744 if (!ob_buffer->chunk_size) { in php_ob_buffer_status()
772 long chunk_size = 0; in PHP_FUNCTION() local
779 if (chunk_size < 0) { in PHP_FUNCTION()
[all …]
H A Dphp_output.h36 PHPAPI int php_start_ob_buffer(zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC);
37 PHPAPI int php_start_ob_buffer_named(const char *output_handler_name, uint chunk_size, zend_bool er…
72 uint chunk_size; member
/PHP-5.3/ext/interbase/
H A Dibase_blobs.c111 unsigned short chunk_size = (max_len-cur_len) > USHRT_MAX ? USHRT_MAX in _php_ibase_blob_get() local
114 stat = isc_get_segment(IB_STATUS, &ib_blob->bl_handle, &seg_len, chunk_size, &bl_data[cur_len]); in _php_ibase_blob_get()
134 unsigned short chunk_size; in _php_ibase_blob_add() local
138 for (rem_cnt = Z_STRLEN_PP(string_arg); rem_cnt > 0; rem_cnt -= chunk_size) { in _php_ibase_blob_add()
140 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in _php_ibase_blob_add()
142 …if (isc_put_segment(IB_STATUS, &ib_blob->bl_handle, chunk_size, &Z_STRVAL_PP(string_arg)[put_cnt] … in _php_ibase_blob_add()
146 put_cnt += chunk_size; in _php_ibase_blob_add()
/PHP-5.3/ext/pdo_firebird/
H A Dfirebird_statement.c276 unsigned short chunk_size = (*len-cur_len) > USHRT_MAX ? USHRT_MAX in firebird_fetch_blob() local
279 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, &(*ptr)[cur_len]); in firebird_fetch_blob()
419 unsigned short chunk_size; in firebird_bind_blob() local
431 for (rem_cnt = Z_STRLEN_P(param); rem_cnt > 0; rem_cnt -= chunk_size) { in firebird_bind_blob()
433 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in firebird_bind_blob()
435 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL_P(param)[put_cnt])) { in firebird_bind_blob()
440 put_cnt += chunk_size; in firebird_bind_blob()
/PHP-5.3/ext/oci8/
H A Doci8_lob.c210 ub4 chunk_size; in php_oci_lob_calculate_buffer() local
216 if (!descriptor->chunk_size) { in php_oci_lob_calculate_buffer()
217 …code, 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()
227 if ((read_length % descriptor->chunk_size) != 0) { in php_oci_lob_calculate_buffer()
228 return descriptor->chunk_size * ((read_length / descriptor->chunk_size) + 1); in php_oci_lob_calculate_buffer()
H A Dphp_oci8_int.h157 ub4 chunk_size; /* chunk size of the LOB. 0 - unknown */ member
/PHP-5.3/ext/standard/
H A Dfilters.c1912 size_t chunk_size; member
1926 data->chunk_size = 0; in php_dechunk()
1930 data->chunk_size = (data->chunk_size * 16) + (*p - '0'); in php_dechunk()
1932 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10); in php_dechunk()
1934 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10); in php_dechunk()
1969 if (data->chunk_size == 0) { in php_dechunk()
1986 out += data->chunk_size; in php_dechunk()
1987 out_len += data->chunk_size; in php_dechunk()
1988 p += data->chunk_size; in php_dechunk()
1997 data->chunk_size -= end - p; in php_dechunk()
[all …]
H A Dhttp_fopen_wrapper.c104 size_t chunk_size = 0, file_size = 0; in php_stream_url_wrap_http_ex() local
305 chunk_size = php_stream_set_chunk_size(stream, 1); in php_stream_url_wrap_http_ex()
899 php_stream_set_chunk_size(stream, chunk_size); in php_stream_url_wrap_http_ex()
/PHP-5.3/main/streams/
H A Dstreams.c297 ret->chunk_size = FG(def_chunk_size); in _php_stream_alloc()
520 chunk_buf = emalloc(stream->chunk_size); in php_stream_fill_read_buffer()
621 stream->readbuflen += stream->chunk_size; in php_stream_fill_read_buffer()
897 toread = stream->chunk_size; in _php_stream_get_line()
900 if (toread > stream->chunk_size) { in _php_stream_get_line()
901 toread = stream->chunk_size; in _php_stream_get_line()
978 to_read_now = MIN(maxlen - buffered_len, stream->chunk_size); in php_stream_get_record()
1060 if (towrite > stream->chunk_size) in _php_stream_write_buffer()
1061 towrite = stream->chunk_size; in _php_stream_write_buffer()
1293 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.3/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.3/ext/mysqlnd/
H A Dmysqlnd_net.c68 size_t old_chunk_size = conn->net->stream->chunk_size; in MYSQLND_METHOD()
71 conn->net->stream->chunk_size = MIN(to_read, conn->net->options.net_read_buffer_size); in MYSQLND_METHOD()
82 conn->net->stream->chunk_size = old_chunk_size; in MYSQLND_METHOD()
238 size_t old_chunk_size = net->stream->chunk_size; in MYSQLND_METHOD()
248 net->stream->chunk_size = MYSQLND_MAX_PACKET_SIZE; in MYSQLND_METHOD()
345 net->stream->chunk_size = old_chunk_size; in MYSQLND_METHOD()

Completed in 123 milliseconds

12