/php-src/tests/output/ |
H A D | ob_start_basic_004.phpt | 2 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 D | ob_013.phpt | 68 [chunk_size] => 0 80 [chunk_size] => 0 91 [chunk_size] => 0 102 [chunk_size] => 0 113 [chunk_size] => 0 124 [chunk_size] => 0 135 [chunk_size] => 0 146 [chunk_size] => 0 157 [chunk_size] => 0 168 [chunk_size] => 0
|
H A D | ob_get_status.phpt | 34 ["chunk_size"]=> 50 ["chunk_size"]=> 68 ["chunk_size"]=>
|
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/ |
H A D | sljitExecAllocatorCore.c | 152 sljit_uw chunk_size; in sljit_malloc_exec() local 172 chunk_size = free_block->size; in sljit_malloc_exec() 174 if (chunk_size > size + 64) { in sljit_malloc_exec() 176 chunk_size -= size; in sljit_malloc_exec() 187 size = chunk_size; in sljit_malloc_exec() 209 chunk_size -= CHUNK_EXTRA_SIZE; in sljit_malloc_exec() 210 total_size += chunk_size; in sljit_malloc_exec() 219 if (chunk_size > size + 64) { in sljit_malloc_exec() 223 chunk_size -= size; in sljit_malloc_exec() 234 allocated_size += chunk_size; in sljit_malloc_exec() [all …]
|
/php-src/ext/xml/tests/ |
H A D | bug32001b.phpt | 23 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 D | bug32001.phpt | 18 private $chunk_size; 20 function __construct($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) { 22 $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-src/ext/random/ |
H A D | zend_utils.c | 60 size_t chunk_size = MIN(size, 8); in php_random_bytes_insecure_for_zend() local 61 bytes = zend_mempcpy(bytes, &result.result, chunk_size); in php_random_bytes_insecure_for_zend() 62 size -= chunk_size; in php_random_bytes_insecure_for_zend()
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | dobject.c | 23 size_t chunk_size, size_t struct_size) in lexbor_dobject_init() argument 31 if (chunk_size == 0 || struct_size == 0) { in lexbor_dobject_init() 43 lexbor_mem_align(chunk_size * dobject->struct_size)); in lexbor_dobject_init() 56 status = lexbor_array_init(dobject->cache, chunk_size); in lexbor_dobject_init()
|
H A D | in.c | 18 lexbor_in_init(lexbor_in_t *incoming, size_t chunk_size) in lexbor_in_init() argument 24 if (chunk_size == 0) { in lexbor_in_init() 30 return lexbor_dobject_init(incoming->nodes, chunk_size, in lexbor_in_init()
|
H A D | dobject.h | 34 size_t chunk_size, size_t struct_size);
|
H A D | hash.c | 123 size_t chunk_size; in lexbor_hash_init() local 133 chunk_size = table_size / 2; in lexbor_hash_init() 138 status = lexbor_dobject_init(hash->entries, chunk_size, struct_size); in lexbor_hash_init() 144 status = lexbor_mraw_init(hash->mraw, chunk_size * 12); in lexbor_hash_init()
|
H A D | mraw.h | 40 lexbor_mraw_init(lexbor_mraw_t *mraw, size_t chunk_size);
|
H A D | mraw.c | 38 lexbor_mraw_init(lexbor_mraw_t *mraw, size_t chunk_size) in lexbor_mraw_init() argument 46 if (chunk_size == 0) { in lexbor_mraw_init() 53 status = lexbor_mem_init(mraw->mem, chunk_size + lexbor_mraw_meta_size()); in lexbor_mraw_init()
|
H A D | in.h | 53 lexbor_in_init(lexbor_in_t *incoming, size_t chunk_size);
|
/php-src/main/ |
H A D | php_output.h | 114 …ler_alias_ctor_t)(const char *handler_name, size_t handler_name_len, size_t chunk_size, int flags); 222 PHPAPI zend_result 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 D | output.c | 54 static inline php_output_handler *php_output_handler_init(zend_string *name, size_t chunk_size, int… 428 PHPAPI zend_result php_output_start_user(zval *output_handler, size_t chunk_size, int flags) in php_output_start_user() argument 433 handler = php_output_handler_create_user(output_handler, chunk_size, flags); in php_output_start_user() 477 handler = alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags); in php_output_handler_create_user() 862 handler->size = chunk_size; in php_output_handler_init() 864 handler->buffer.size = PHP_OUTPUT_HANDLER_INITBUF_SIZE(chunk_size); in php_output_handler_init() 1302 zend_long chunk_size = 0; in PHP_FUNCTION() local 1305 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "|zll", &output_handler, &chunk_size, &flags) == FAILUR… in PHP_FUNCTION() 1309 if (chunk_size < 0) { in PHP_FUNCTION() 1310 chunk_size = 0; in PHP_FUNCTION() [all …]
|
/php-src/Zend/tests/exit/ |
H A D | exit_string_with_buffer_output.phpt | 9 }, chunk_size: 10);
|
/php-src/ext/gd/tests/ |
H A D | bug73157.phpt | 21 printf("chunk size: %d\n", $header['chunk_size']);
|
H A D | bug73155.phpt | 21 printf("chunk size: %d\n", $header['chunk_size']);
|
/php-src/main/streams/ |
H A D | streams.c | 296 ret->chunk_size = FG(def_chunk_size); in _php_stream_alloc() 1004 toread = stream->chunk_size; in _php_stream_get_line() 1007 if (toread > stream->chunk_size) { in _php_stream_get_line() 1008 toread = stream->chunk_size; in _php_stream_get_line() 1168 size_t chunk_size = count; in _php_stream_write_buffer() local 1171 chunk_size = stream->chunk_size; in _php_stream_write_buffer() 1441 ret = stream->chunk_size > INT_MAX ? INT_MAX : (int)stream->chunk_size; in _php_stream_set_option() 1442 stream->chunk_size = value; in _php_stream_set_option() 1716 chunk_size = PHP_STREAM_MMAP_MAX; in _php_stream_copy_to_stream_ex() 1720 chunk_size = must_read; in _php_stream_copy_to_stream_ex() [all …]
|
/php-src/docs-old/ |
H A D | output-api.md | 15 // 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-src/ext/standard/ |
H A D | filters.c | 1700 size_t chunk_size; member 1715 data->chunk_size = 0; in php_dechunk() 1719 data->chunk_size = (data->chunk_size * 16) + (*p - '0'); in php_dechunk() 1721 data->chunk_size = (data->chunk_size * 16) + (*p - 'A' + 10); in php_dechunk() 1723 data->chunk_size = (data->chunk_size * 16) + (*p - 'a' + 10); in php_dechunk() 1762 if (data->chunk_size == 0) { in php_dechunk() 1781 out += data->chunk_size; in php_dechunk() 1782 out_len += data->chunk_size; in php_dechunk() 1783 p += data->chunk_size; in php_dechunk() 1792 data->chunk_size -= end - p; in php_dechunk() [all …]
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_statement.c | 428 unsigned short chunk_size = (len - cur_len) > USHRT_MAX ? USHRT_MAX in php_firebird_fetch_blob() local 431 stat = isc_get_segment(H->isc_status, &blobh, &seg_len, chunk_size, ZSTR_VAL(str) + cur_len); in php_firebird_fetch_blob() 593 unsigned short chunk_size; in php_firebird_bind_blob() local 607 for (rem_cnt = Z_STRLEN(data); rem_cnt > 0; rem_cnt -= chunk_size) { in php_firebird_bind_blob() 608 chunk_size = rem_cnt > USHRT_MAX ? USHRT_MAX : (unsigned short)rem_cnt; in php_firebird_bind_blob() 609 if (isc_put_segment(H->isc_status, &h, chunk_size, &Z_STRVAL(data)[put_cnt])) { in php_firebird_bind_blob() 614 put_cnt += chunk_size; in php_firebird_bind_blob()
|
/php-src/ext/standard/tests/file/ |
H A D | file.inc | 123 $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-src/ext/dom/ |
H A D | html_document.c | 886 size_t chunk_size = source_len; in PHP_METHOD() local 888 if (chunk_size > MAX_CHUNK_SIZE) { in PHP_METHOD() 889 chunk_size = MAX_CHUNK_SIZE; in PHP_METHOD() 891 source_len -= chunk_size; in PHP_METHOD() 893 const lxb_char_t *buf_end = buf_ref + chunk_size; in PHP_METHOD()
|