/PHP-8.1/Zend/ |
H A D | zend_string.c | 138 if ((p->h == h) && (ZSTR_LEN(p->key) == size)) { in zend_interned_string_ht_lookup_ex() 139 if (!memcmp(ZSTR_VAL(p->key), str, size)) { in zend_interned_string_ht_lookup_ex() 263 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_interned_permanent() 271 ret = zend_string_init(str, size, permanent); in zend_string_init_interned_permanent() 278 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_existing_interned_permanent() 285 ret = zend_string_init(str, size, permanent); in zend_string_init_existing_interned_permanent() 293 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_interned_request() 301 ret = zend_interned_string_ht_lookup_ex(h, str, size, &CG(interned_strings)); in zend_string_init_interned_request() 313 ret = zend_string_init(str, size, permanent); in zend_string_init_interned_request() 322 zend_ulong h = zend_inline_hash_func(str, size); in zend_string_init_existing_interned_request() [all …]
|
H A D | zend_stream.c | 163 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 D | zend_extensions.c | 299 size_t size; member 306 data->size += extension->op_array_persist_calc(data->op_array); in zend_extension_op_array_persist_calc_handler() 313 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler() local 314 if (size) { in zend_extension_op_array_persist_handler() 315 data->mem = (void*)((char*)data->mem + size); in zend_extension_op_array_persist_handler() 316 data->size += size; in zend_extension_op_array_persist_handler() 327 data.size = 0; in zend_extensions_op_array_persist_calc() 330 return data.size; in zend_extensions_op_array_persist_calc() 341 data.size = 0; in zend_extensions_op_array_persist() 344 return data.size; in zend_extensions_op_array_persist()
|
H A D | zend_stack.c | 23 #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-8.1/ext/gd/libgd/ |
H A D | gd_webp.c | 27 gdImagePtr gdImageCreateFromWebpPtr (int size, void *data) in gdImageCreateFromWebpPtr() argument 30 gdIOCtx *in = gdNewDynamicCtxEx(size, data, 0); in gdImageCreateFromWebpPtr() 43 size_t size = 0, n; in gdImageCreateFromWebpCtx() local 51 temp = gdRealloc(filedata, size+GD_WEBP_ALLOC_STEP); in gdImageCreateFromWebpCtx() 54 read = temp + size; in gdImageCreateFromWebpCtx() 65 size += n; in gdImageCreateFromWebpCtx() 69 if (WebPGetInfo(filedata,size, &width, &height) == 0) { in gdImageCreateFromWebpCtx() 80 argb = WebPDecodeARGB(filedata, size, &width, &height); in gdImageCreateFromWebpCtx() 186 void * gdImageWebpPtr (gdImagePtr im, int *size) in gdImageWebpPtr() argument 191 rv = gdDPExtractData(out, size); in gdImageWebpPtr() [all …]
|
H A D | gd_avif.c | 183 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 D | gd_io_dp.c | 49 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 D | gd_io_ss.c | 45 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-8.1/ext/opcache/ |
H A D | zend_shared_alloc.c | 338 void *zend_shared_alloc(size_t size) in zend_shared_alloc() argument 341 unsigned int block_size = ZEND_ALIGNED_SIZE(size); in zend_shared_alloc() 377 return ZEND_ALIGNED_SIZE(size); in zend_shared_memdup_size() 395 memcpy(retval, source, size); in _zend_shared_memdup() 411 return _zend_shared_memdup(source, size, 1, 1, 1); in zend_shared_memdup_get_put_free() 416 return _zend_shared_memdup(source, size, 0, 1, 1); in zend_shared_memdup_put_free() 421 return _zend_shared_memdup(source, size, 0, 0, 1); in zend_shared_memdup_free() 426 return _zend_shared_memdup(source, size, 1, 1, 0); in zend_shared_memdup_get_put() 431 return _zend_shared_memdup(source, size, 0, 1, 0); in zend_shared_memdup_put() 434 void *zend_shared_memdup(void *source, size_t size) in zend_shared_memdup() argument [all …]
|
/PHP-8.1/Zend/Optimizer/ |
H A D | escape_analysis.c | 40 size[i] = 1; in union_find_init() 65 if (size[r1] < size[r2]) { in union_find_unite() 67 size[r2] += size[r1]; in union_find_unite() 70 size[r1] += size[r2]; in union_find_unite() 82 int *size; in zend_build_equi_escape_sets() local 85 size = do_alloca(sizeof(int) * ssa_vars_count, use_heap); in zend_build_equi_escape_sets() 86 if (!size) { in zend_build_equi_escape_sets() 89 union_find_init(parent, size, ssa_vars_count); in zend_build_equi_escape_sets() 95 union_find_unite(parent, size, i, p->sources[0]); in zend_build_equi_escape_sets() 98 union_find_unite(parent, size, i, p->sources[j]); in zend_build_equi_escape_sets() [all …]
|
/PHP-8.1/ext/standard/tests/streams/ |
H A D | bug78902.phpt | 11 $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-8.1/ext/standard/tests/file/ |
H A D | userstreams_005.phpt | 39 test("stream_truncate size 0", $fd, 0); 40 test("stream_truncate size 10", $fd, 10); 42 test("stream_truncate negative size", $fd, -1); 56 ------ stream_truncate size 0: ------- 59 ------ stream_truncate size 10: ------- 62 ------ stream_truncate negative size: ------- 63 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
|
H A D | bug37158.phpt | 27 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 D | filesize_variation4-win32.phpt | 18 echo "-- opening the file in 'w' mode and get the size --\n"; 23 var_dump( filesize($filename) ); //size of the file = strlen of string 26 echo "-- opening the file in 'wt' mode and get the size --\n"; 31 var_dump( filesize($filename) ); //size of the file = 192 bytes != strlen of string 48 echo "-- creating a hole and checking the size --\n"; 55 echo "-- writing data after hole and checking the size --\n"; 84 -- opening the file in 'w' mode and get the size -- 87 -- opening the file in 'wt' mode and get the size -- 94 -- creating a hole and checking the size -- 97 -- writing data after hole and checking the size --
|
H A D | fread_variation1.phpt | 5 /* 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 …]
|
/PHP-8.1/ext/dba/ |
H A D | dba_db1.c | 35 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen 100 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC() 101 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC() 113 gval.size = vallen; in DBA_UPDATE_FUNC() 145 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC() 146 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC() 161 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC() 162 return estrndup(gkey.data, gkey.size); in DBA_NEXTKEY_FUNC()
|
/PHP-8.1/ext/oci8/tests/ |
H A D | imp_res_field.phpt | 63 $size = oci_field_size($s, $i); 66 …echo "$name\t: is_null $is_null, precision $precision, scale $scale, size $size, typeraw $typeraw,… 158 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER 161 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2 163 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER 168 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER 178 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2 185 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER 204 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER 219 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER [all …]
|
H A D | bug70700.phpt | 62 echo 'size of string1 is ', strlen($string1), ' bytes, ', mb_strlen($string1), ' chars.', PHP_EOL; 93 echo 'size of string2 is ', strlen($string2), ' bytes, ', mb_strlen($string2), ' chars.', PHP_EOL; 124 echo 'size of string3 is ', strlen($string3), ' bytes, ', mb_strlen($string3), ' chars.', PHP_EOL; 162 size of string1 is 1000006 bytes, 1000006 chars. 163 size of stream1a is 1000006 bytes, 1000006 chars. 168 size of string2 is 8194 bytes, 4100 chars. 169 size of stream2a is 8194 bytes, 4100 chars. 174 size of string3 is 8194 bytes, 4100 chars. 175 size of stream3a is 8194 bytes, 4100 chars. 180 size of string4 is 8193 bytes, 2735 chars. [all …]
|
/PHP-8.1/ext/ftp/ |
H A D | ftp.c | 1004 size = 0; in ftp_put() 1018 size++; in ftp_put() 1022 size++; in ftp_put() 1025 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_put() 1071 size = 0; in ftp_append() 1085 size++; in ftp_append() 1089 size++; in ftp_append() 1092 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_append() 1269 if (my_send(ftp, ftp->fd, data, size) != size) { in ftp_putcmd() 2259 size++; in ftp_nb_continue_write() [all …]
|
/PHP-8.1/ext/gd/tests/ |
H A D | bug73155.phpt | 21 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-8.1/ext/xml/tests/ |
H A D | bug32001.phpt | 171 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-8.1/ext/spl/tests/ |
H A D | bug67247.phpt | 6 echo "size: ".$ar->getSize()."\n"; 8 echo "size: ".$ar->getSize()."\n"; 11 size: 1
|
/PHP-8.1/ext/pdo_oci/tests/ |
H A D | bug60994.phpt | 44 echo 'size of string1 is ', strlen($string1), ' bytes, ', mb_strlen($string1), ' chars.', PHP_EOL; 45 echo 'size of stream1 is ', strlen($stream1), ' bytes, ', mb_strlen($stream1), ' chars.', PHP_EOL; 64 echo 'size of string2 is ', strlen($string2), ' bytes, ', mb_strlen($string2), ' chars.', PHP_EOL; 114 size of string1 is 8193 bytes, 8193 chars. 115 size of stream1 is 8193 bytes, 8193 chars. 120 size of string2 is 16380 bytes, 8193 chars. 121 size of stream2 is 16380 bytes, 8193 chars. 126 size of string3 is 16380 bytes, 8193 chars. 127 size of stream3 is 16380 bytes, 8193 chars. 132 size of string4 is 24567 bytes, 8193 chars. [all …]
|
/PHP-8.1/ext/standard/tests/array/ |
H A D | array_chunk_variation7.phpt | 12 $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-8.1/ext/sysvshm/tests/ |
H A D | 002.phpt | 60 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
|