Home
last modified time | relevance | path

Searched refs:size (Results 76 – 100 of 764) sorted by relevance

12345678910>>...31

/php-src/ext/standard/tests/file/
H A Duserstreams_005.phpt40 test("stream_truncate size 0", $fd, 0);
41 test("stream_truncate size 10", $fd, 10);
43 test("stream_truncate negative size", $fd, -1);
57 ------ stream_truncate size 0: -------
60 ------ stream_truncate size 10: -------
63 ------ stream_truncate negative size: -------
64 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
H A Dbug37158.phpt27 var_dump('size of contents 1 = ' . strlen($outsidecontents));
29 var_dump('size of contents 2 = ' . strlen($outsidecontents));
36 string(26) "size of contents 1 = 20000"
37 string(26) "size of contents 2 = 40960"
H A Dfread_variation1.phpt5 /* Read content less than file size &
25 // read the data of size $read_size
29 // check if data read is of expected size
75 // read from file, by giving the file actual size,
81 // reading file by giving less than its size
111 -- Reading file content less than max. file size, expected : 1000 bytes --
126 -- Reading file content less than max. file size, expected : 1000 bytes --
141 -- Reading file content less than max. file size, expected : 1000 bytes --
156 -- Reading file content less than max. file size, expected : 1000 bytes --
171 -- Reading file content less than max. file size, expected : 1000 bytes --
[all …]
H A Dfilesize_variation4-win32.phpt19 echo "-- opening the file in 'w' mode and get the size --\n";
24 var_dump( filesize($filename) ); //size of the file = strlen of string
27 echo "-- opening the file in 'wt' mode and get the size --\n";
32 var_dump( filesize($filename) ); //size of the file = 192 bytes != strlen of string
49 echo "-- creating a hole and checking the size --\n";
56 echo "-- writing data after hole and checking the size --\n";
85 -- opening the file in 'w' mode and get the size --
88 -- opening the file in 'wt' mode and get the size --
95 -- creating a hole and checking the size --
98 -- writing data after hole and checking the size --
/php-src/ext/standard/tests/streams/
H A Dbug78902.phpt11 $size = 1024 * 1024 * 2; // 2mb, larger than the memory limit
13 while ($size > 0) {
14 fputs($fp, str_pad('', min($chunk,$size)));
15 $size -= $chunk;
/php-src/ext/dom/lexbor/lexbor/html/
H A Dtokenizer.h142 const lxb_char_t *data, size_t size);
254 lxb_html_tokenizer_temp_realloc(lxb_html_tokenizer_t *tkz, size_t size) in lxb_html_tokenizer_temp_realloc() argument
257 size_t new_size = (tkz->end - tkz->start) + size + 4096; in lxb_html_tokenizer_temp_realloc()
275 size_t size = data - tkz->begin; in lxb_html_tokenizer_temp_append_data() local
277 if ((tkz->pos + size) > tkz->end) { in lxb_html_tokenizer_temp_append_data()
278 if(lxb_html_tokenizer_temp_realloc(tkz, size)) { in lxb_html_tokenizer_temp_append_data()
283 tkz->pos = (lxb_char_t *) memcpy(tkz->pos, tkz->begin, size) + size; in lxb_html_tokenizer_temp_append_data()
290 const lxb_char_t *data, size_t size) in lxb_html_tokenizer_temp_append() argument
292 if ((tkz->pos + size) > tkz->end) { in lxb_html_tokenizer_temp_append()
293 if(lxb_html_tokenizer_temp_realloc(tkz, size)) { in lxb_html_tokenizer_temp_append()
[all …]
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/
H A DsljitExecAllocatorApple.c114 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument
123 retval = mmap(NULL, size, prot, flags, fd, 0); in alloc_chunk()
127 SLJIT_UPDATE_WX_FLAGS(retval, (uint8_t *)retval + size, 0); in alloc_chunk()
132 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument
134 munmap(chunk, size); in free_chunk()
H A DsljitWXExecAllocatorWindows.c56 SLJIT_API_FUNC_ATTRIBUTE void* sljit_malloc_exec(sljit_uw size) in sljit_malloc_exec() argument
60 size += sizeof(sljit_uw); in sljit_malloc_exec()
61 ptr = (sljit_uw*)VirtualAlloc(NULL, size, in sljit_malloc_exec()
67 *ptr++ = size; in sljit_malloc_exec()
/php-src/ext/opcache/jit/ir/
H A Dir_patch.c148 static int ir_patch_code(const void *code, size_t size, const void *from_addr, const void *to_addr) in ir_patch_code() argument
154 end = p + size - 4; in ir_patch_code()
166 ir_mem_flush((void*)code, size); in ir_patch_code()
173 static int ir_patch_code(const void *code, size_t size, const void *from_addr, const void *to_addr) in ir_patch_code() argument
181 p = end + size; in ir_patch_code()
244 ir_mem_flush((void*)code, size); in ir_patch_code()
251 int ir_patch(const void *code, size_t size, uint32_t jmp_table_size, const void *from_addr, const v… in ir_patch() argument
256 const void **jmp_slot = (const void **)((char*)code + IR_ALIGNED_SIZE(size, sizeof(void*))); in ir_patch()
267 ret += ir_patch_code(code, size, from_addr, to_addr); in ir_patch()
/php-src/ext/dom/lexbor/lexbor/core/
H A Dmem.c105 chunk->size = length; in lexbor_mem_chunk_init()
108 chunk->size = length + mem->chunk_min_size; in lexbor_mem_chunk_init()
112 chunk->size = mem->chunk_min_size; in lexbor_mem_chunk_init()
116 chunk->data = lexbor_malloc(chunk->size * sizeof(uint8_t)); in lexbor_mem_chunk_init()
165 if ((mem->chunk->length + length) > mem->chunk->size) { in lexbor_mem_alloc()
219 lexbor_mem_align_noi(size_t size) in lexbor_mem_align_noi() argument
221 return lexbor_mem_align(size); in lexbor_mem_align_noi()
225 lexbor_mem_align_floor_noi(size_t size) in lexbor_mem_align_floor_noi() argument
227 return lexbor_mem_align_floor(size); in lexbor_mem_align_floor_noi()
H A Dstr.c408 while (size != 0) { in lexbor_str_data_ncasecmp_end()
409 size--; in lexbor_str_data_ncasecmp_end()
436 size_t size) in lexbor_str_data_ncasecmp() argument
438 for (size_t i = 0; i < size; i++) { in lexbor_str_data_ncasecmp()
453 for (size_t i = 0; i < size; i++) { in lexbor_str_data_nlocmp_right()
466 for (size_t i = 0; i < size; i++) { in lexbor_str_data_nupcmp_right()
496 size_t size) in lexbor_str_data_ncmp_end() argument
498 while (size != 0) { in lexbor_str_data_ncmp_end()
499 size--; in lexbor_str_data_ncmp_end()
501 if (first[size] != sec[size]) { in lexbor_str_data_ncmp_end()
[all …]
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c132 size_t size; member
156 sqlite3_stream->position = sqlite3_stream->size; in php_pdosqlite3_stream_write()
170 count = sqlite3_stream->size - sqlite3_stream->position; in php_pdosqlite3_stream_read()
220 sqlite3_stream->position = sqlite3_stream->size; in php_pdosqlite3_stream_seek()
231 if (sqlite3_stream->size < (size_t)(offset)) { in php_pdosqlite3_stream_seek()
232 sqlite3_stream->position = sqlite3_stream->size; in php_pdosqlite3_stream_seek()
243 sqlite3_stream->position = sqlite3_stream->size; in php_pdosqlite3_stream_seek()
246 } else if (sqlite3_stream->size < (size_t)(-offset)) { in php_pdosqlite3_stream_seek()
251 sqlite3_stream->position = sqlite3_stream->size + offset; in php_pdosqlite3_stream_seek()
270 ssb->sb.st_size = sqlite3_stream->size; in php_pdosqlite3_stream_stat()
[all …]
/php-src/Zend/
H A Dzend_stream.c163 size_t size = 0; in zend_stream_fixup() local
165 while ((read = zend_stream_read(file_handle, *buf + size, file_size - size)) > 0) { in zend_stream_fixup()
166 size += read; in zend_stream_fixup()
173 file_handle->len = size; in zend_stream_fixup()
175 size_t size = 0, remain = 4*1024; in zend_stream_fixup() local
180 size += read; in zend_stream_fixup()
184 *buf = safe_erealloc(*buf, size, 2, 0); in zend_stream_fixup()
185 remain = size; in zend_stream_fixup()
193 file_handle->len = size; in zend_stream_fixup()
194 if (size && remain < ZEND_MMAP_AHEAD) { in zend_stream_fixup()
[all …]
H A Dzend_stack.c23 #define ZEND_STACK_ELEMENT(stack, n) ((void *)((char *) (stack)->elements + (stack)->size * (n)))
25 ZEND_API void zend_stack_init(zend_stack *stack, int size) in zend_stack_init() argument
27 stack->size = size; in zend_stack_init()
38 stack->elements = safe_erealloc(stack->elements, stack->size, stack->max, 0); in zend_stack_push()
40 memcpy(ZEND_STACK_ELEMENT(stack, stack->top), element, stack->size); in zend_stack_push()
/php-src/ext/gd/libgd/
H A Dgd_avif.c183 if (offset > INT_MAX || size > INT_MAX) in readFromCtx()
190 if (size > reader->rodata.size) { in readFromCtx()
191 reader->rodata.data = gdRealloc((void *) reader->rodata.data, size); in readFromCtx()
192 reader->rodata.size = size; in readFromCtx()
207 out->size = charsRead; in readFromCtx()
245 reader->rodata.size = 0; in createAvifIOFromCtx()
311 gdImagePtr gdImageCreateFromAvifPtr(int size, void *data) in gdImageCreateFromAvifPtr() argument
314 gdIOCtx *ctx = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromAvifPtr()
581 gdPutBuf(avifOutput.data, avifOutput.size, outfile); in gdImageAvifCtx()
622 rv = gdDPExtractData(out, size); in gdImageAvifPtrEx()
[all …]
H A Dgd_io_dp.c49 static int appendDynamic (dynamicPtr * dp, const void *src, int size);
95 void * gdDPExtractData (struct gdIOCtx *ctx, int *size) in gdDPExtractData() argument
107 *size = dp->logicalSize; in gdDPExtractData()
110 *size = 0; in gdDPExtractData()
201 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument
206 appendDynamic (dctx->dp, buf, size); in dynamicPutbuf()
210 return size; in dynamicPutbuf()
296 static int appendDynamic (dynamicPtr * dp, const void *src, int size) in appendDynamic() argument
306 bytesNeeded = dp->pos + size; in appendDynamic()
320 memcpy((void *) (tmp + (dp->pos)), src, size); in appendDynamic()
[all …]
H A Dgd_io_ss.c45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
79 static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size) in sourceGetbuf() argument
86 res = ((lctx->src->source) (lctx->src->context, buf, size)); in sourceGetbuf()
116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) in sinkPutbuf() argument
123 res = (lctx->snk->sink) (lctx->snk->context, buf, size); in sinkPutbuf()
/php-src/ext/dba/
H A Ddba_db1.c92 gkey.size = ZSTR_LEN(key); in DBA_FETCH_FUNC()
96 return zend_string_init(gval.data, gval.size, /* persistent */ false); in DBA_FETCH_FUNC()
108 gkey.size = ZSTR_LEN(key); in DBA_UPDATE_FUNC()
111 gval.size = ZSTR_LEN(val); in DBA_UPDATE_FUNC()
123 gkey.size = ZSTR_LEN(key); in DBA_EXISTS_FUNC()
134 gkey.size = ZSTR_LEN(key); in DBA_DELETE_FUNC()
149 return zend_string_init(gkey.data, gkey.size, /* persistent */ false); in DBA_FIRSTKEY_FUNC()
164 return zend_string_init(gkey.data, gkey.size, /* persistent */ false); in DBA_NEXTKEY_FUNC()
/php-src/ext/gd/tests/
H A Dbug73155.phpt21 printf("chunk size: %d\n", $header['chunk_size']);
24 printf("file size: %d\n", strlen($buffer));
27 chunk size: 64
30 file size: 5145
/php-src/ext/xml/tests/
H A Dbug32001.phpt171 Chunk size: all data at once
291 Chunk size: 1 byte(s)
303 Chunk size: 1 byte(s)
315 Chunk size: 1 byte(s)
327 Chunk size: 1 byte(s)
339 Chunk size: 1 byte(s)
351 Chunk size: 1 byte(s)
363 Chunk size: 1 byte(s)
375 Chunk size: 1 byte(s)
387 Chunk size: 1 byte(s)
[all …]
/php-src/ext/spl/tests/
H A Dbug67247.phpt6 echo "size: ".$ar->getSize()."\n";
8 echo "size: ".$ar->getSize()."\n";
11 size: 1
/php-src/ext/sysvshm/tests/
H A D002.phpt60 shm_attach(): Argument #2 ($size) must be greater than 0
61 shm_attach(): Argument #2 ($size) must be greater than 0
62 shm_attach(): Argument #2 ($size) must be greater than 0
63 shm_attach(): Argument #2 ($size) must be greater than 0
64 shm_attach(): Argument #2 ($size) must be greater than 0
/php-src/ext/standard/tests/array/
H A Darray_chunk_variation7.phpt12 $size = 2;
25 var_dump( array_chunk($input_array, $size) );
26 var_dump( array_chunk($input_array, $size, true) );
27 var_dump( array_chunk($input_array, $size, false) );
/php-src/ext/standard/tests/array/range/
H A Drange_inputs_float_small_step_exhaustion.phpt2 Creating a range that exceeds the maximum array size
17 The supplied range exceeds the maximum array size: start=0.0 end=100000000000.0 step=0.1
18 The supplied range exceeds the maximum array size: start=-%d end=%d step=1
/php-src/ext/pcre/pcre2lib/sljit/
H A DsljitSerialize.c60 sljit_uw size; member
94 sljit_uw size; member
136 if (size != NULL) in sljit_serialize_compiler()
137 *size = 0; in sljit_serialize_compiler()
175 if (size != NULL) in sljit_serialize_compiler()
176 *size = serialized_size; in sljit_serialize_compiler()
192 serialized_compiler->size = compiler->size; in sljit_serialize_compiler()
234 serialized_label->size = label->size; in sljit_serialize_compiler()
310 sljit_u8 *end = ptr + size; in sljit_deserialize_compiler()
332 compiler->size = serialized_compiler->size; in sljit_deserialize_compiler()
[all …]

Completed in 42 milliseconds

12345678910>>...31