Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 662) sorted by relevance

12345678910>>...27

/PHP-7.3/Zend/
H A Dzend_alloc.h48 size_t size; member
106 ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \
113 _emalloc(size) \
129 if (size <= ZEND_MM_MAX_LARGE_SIZE) { _efree_large(ptr, size); } \
140 efree_size(ptr, size)
193 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument
204 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument
205 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
213 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument
215 #define pecalloc_rel(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc_… argument
[all …]
H A Dzend_range_check.h54 #define ZEND_SIZE_T_INT_OVFL(size) UNEXPECTED((size) > (size_t)INT_MAX) argument
56 # define ZEND_SIZE_T_UINT_OVFL(size) UNEXPECTED((size) > (size_t)UINT_MAX) argument
58 # define ZEND_SIZE_T_UINT_OVFL(size) (0) argument
62 #define ZEND_SIZE_T_GT_ZEND_LONG(size, zlong) ((zlong) < 0 || (size) > (size_t)(zlong)) argument
63 #define ZEND_SIZE_T_GTE_ZEND_LONG(size, zlong) ((zlong) < 0 || (size) >= (size_t)(zlong)) argument
64 #define ZEND_SIZE_T_LT_ZEND_LONG(size, zlong) ((zlong) >= 0 && (size) < (size_t)(zlong)) argument
65 #define ZEND_SIZE_T_LTE_ZEND_LONG(size, zlong) ((zlong) >= 0 && (size) <= (size_t)(zlong)) argument
H A Dzend_arena.h32 static zend_always_inline zend_arena* zend_arena_create(size_t size) in zend_arena_create() argument
34 zend_arena *arena = (zend_arena*)emalloc(size); in zend_arena_create()
37 arena->end = (char*) arena + size; in zend_arena_create()
58 size = ZEND_MM_ALIGNED_SIZE(size); in zend_arena_alloc()
60 if (EXPECTED(size <= (size_t)(arena->end - ptr))) { in zend_arena_alloc()
61 arena->ptr = ptr + size; in zend_arena_alloc()
65 (size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) : in zend_arena_alloc()
82 size_t size; in zend_arena_calloc() local
85 size = zend_safe_address(unit_size, count, 0, &overflow); in zend_arena_calloc()
89 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc()
[all …]
H A Dzend_alloc.c1073 heap->size = size;
1174 if (size <= 0x00ff) {n -= 8; size = size << 8;}
1175 if (size <= 0x0fff) {n -= 4; size = size << 4;}
1176 if (size <= 0x3fff) {n -= 2; size = size << 2;}
1282 heap->size = size;
1352 size = MAX(size, 1);
1716 list->size = size;
1741 size = list->size;
1774 list->size = size;
1852 heap->size = size;
[all …]
/PHP-7.3/ext/pcre/pcre2lib/sljit/
H A DsljitExecAllocator.c188 sljit_uw size; member
196 sljit_uw size; member
213 free_block->size = size; in sljit_insert_free_block()
245 size = ALIGN_SIZE(size); in sljit_malloc_exec()
249 if (free_block->size >= size) { in sljit_malloc_exec()
257 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec()
265 header->size = size; in sljit_malloc_exec()
286 header->size = size; in sljit_malloc_exec()
321 free_block->size += header->size; in sljit_free_exec()
332 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec()
[all …]
H A DsljitProtExecAllocator.c218 sljit_uw size; member
227 sljit_uw size; member
244 free_block->size = size; in sljit_insert_free_block()
278 size = ALIGN_SIZE(size); in sljit_malloc_exec()
282 if (free_block->size >= size) { in sljit_malloc_exec()
291 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec()
299 header->size = size; in sljit_malloc_exec()
327 header->size = size; in sljit_malloc_exec()
365 free_block->size += header->size; in sljit_free_exec()
376 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec()
[all …]
/PHP-7.3/main/streams/
H A Dphp_streams_int.h21 #define emalloc_rel_orig(size) \ argument
23 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
24 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
26 #define erealloc_rel_orig(ptr, size) \ argument
28 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
29 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
31 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size argument
32 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument
34 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument
35 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
[all …]
/PHP-7.3/ext/standard/tests/streams/
H A Dstream_set_chunk_size.phpt42 echo "should elicit one read of size 100 (chunk size)\n";
44 echo "should elicit one read of size 100 (chunk size)\n";
48 echo "should elicit 2 writes of size 100 and one of size 50\n";
63 write with size: 1
64 write with size: 1
65 write with size: 1
69 should elicit one read of size 100 (chunk size)
70 read with size: 100
72 should elicit one read of size 100 (chunk size)
73 read with size: 100
[all …]
/PHP-7.3/ext/standard/tests/file/
H A Dftruncate_variation2-win32.phpt77 -- Testing ftruncate(): truncate file to size = current size --
85 -- Testing ftruncate(): truncate file to size = current size --
93 -- Testing ftruncate(): truncate file to size = current size --
101 -- Testing ftruncate(): truncate file to size = current size --
109 -- Testing ftruncate(): truncate file to size = current size --
117 -- Testing ftruncate(): truncate file to size = current size --
125 -- Testing ftruncate(): truncate file to size = current size --
133 -- Testing ftruncate(): truncate file to size = current size --
141 -- Testing ftruncate(): truncate file to size = current size --
149 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation2.phpt77 -- Testing ftruncate(): truncate file to size = current size --
85 -- Testing ftruncate(): truncate file to size = current size --
93 -- Testing ftruncate(): truncate file to size = current size --
101 -- Testing ftruncate(): truncate file to size = current size --
109 -- Testing ftruncate(): truncate file to size = current size --
117 -- Testing ftruncate(): truncate file to size = current size --
125 -- Testing ftruncate(): truncate file to size = current size --
133 -- Testing ftruncate(): truncate file to size = current size --
141 -- Testing ftruncate(): truncate file to size = current size --
149 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation4-win32.phpt2 Test ftruncate() function : usage variations - truncate file to negative size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* try to truncate it to a negative size, size should not change*/
63 clearstatcache(); // clear previous size value in cache
64 var_dump( filesize($filename) ); // new file size = actual size, no change
77 -- Testing ftruncate(): try truncating file to a negative size --
87 -- Testing ftruncate(): try truncating file to a negative size --
97 -- Testing ftruncate(): try truncating file to a negative size --
107 -- Testing ftruncate(): try truncating file to a negative size --
117 -- Testing ftruncate(): try truncating file to a negative size --
[all …]
H A Dftruncate_variation4.phpt2 Test ftruncate() function : usage variations - truncate file to negative size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* try to truncate it to a negative size, size should not change*/
63 clearstatcache(); // clear previous size value in cache
64 var_dump( filesize($filename) ); // new file size = actual size, no change
77 -- Testing ftruncate(): try truncating file to a negative size --
87 -- Testing ftruncate(): try truncating file to a negative size --
97 -- Testing ftruncate(): try truncating file to a negative size --
107 -- Testing ftruncate(): try truncating file to a negative size --
117 -- Testing ftruncate(): try truncating file to a negative size --
[all …]
H A Dftruncate_variation6-win32.phpt2 Test ftruncate() function : usage variations - truncate file to smaller size
12 Prototype: bool ftruncate ( resource $handle, int $size );
16 /* truncate the file to smaller size and display the content */
68 clearstatcache(); // clear previous size value in cache
297 File content after truncating file to 15 size : string(15) "line
306 File content after truncating file to 15 size : string(15) "line
315 File content after truncating file to 15 size : string(15) "line
324 File content after truncating file to 15 size : string(15) "line
333 File content after truncating file to 15 size : string(15) "line
342 File content after truncating file to 15 size : string(15) "line
[all …]
H A Dftruncate_variation6.phpt2 Test ftruncate() function : usage variations - truncate file to smaller size
12 Prototype: bool ftruncate ( resource $handle, int $size );
16 /* truncate the file to smaller size and display the content */
68 clearstatcache(); // clear previous size value in cache
297 File content after truncating file to 15 size : string(15) "line
306 File content after truncating file to 15 size : string(15) "line
315 File content after truncating file to 15 size : string(15) "line
324 File content after truncating file to 15 size : string(15) "line
333 File content after truncating file to 15 size : string(15) "line
342 File content after truncating file to 15 size : string(15) "line
[all …]
H A Dfilesize_variation1-win32-mb.phpt2 Test filesize() function: usage variations - size of files
12 Description : Returns the size of the file in bytes, or FALSE
21 echo "*** Checking filesize() with different size of files ***\n";
22 for($size = 1; $size <10000; $size = $size+1000)
24 create_files($file_path, 1, "numeric", 0755, $size, "w", "私はガラスを食べられますfilesize_variation");
34 *** Checking filesize() with different size of files ***
H A Dfilesize_variation1-win32.phpt2 Test filesize() function: usage variations - size of files
12 Description : Returns the size of the file in bytes, or FALSE
21 echo "*** Checking filesize() with different size of files ***\n";
22 for($size = 1; $size <10000; $size = $size+1000)
24 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
34 *** Checking filesize() with different size of files ***
/PHP-7.3/main/
H A Dmergesort.c171 if (i == size) in php_mergesort()
177 i = (((t - b) / size) >> 1) * size; in php_mergesort()
192 i = size; in php_mergesort()
240 i = size; \
244 a -= size; \
249 i = size; \
268 size2 = size*2; in setup()
279 insertionsort(list1 + (n - i) * size, i, size, cmp); in setup()
324 swap(f1, f1 + size); in setup()
339 for (ai = a+size; --n >= 1; ai += size) in insertionsort()
[all …]
/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_alloc.h30 void * (*m_emalloc)(size_t size MYSQLND_MEM_D);
38 void * (*m_malloc)(size_t size MYSQLND_MEM_D);
39 void * (*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
52 #define mnd_emalloc(size) mysqlnd_allocator.m_emalloc((size) MYSQLND_MEM_C) argument
53 #define mnd_pemalloc(size, pers) mysqlnd_allocator.m_pemalloc((size), (pers) MYSQLND_MEM_C) argument
54 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument
55 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument
60 #define mnd_malloc(size) mysqlnd_allocator.m_malloc((size) MYSQLND_MEM_C) argument
61 #define mnd_calloc(nmemb, size) mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C) argument
64 #define mnd_pememdup(ptr, size, pers) mysqlnd_allocator.m_pememdup((ptr), (size), (pers) MYSQLND_ME… argument
[all …]
H A Dmysqlnd_block_alloc.c31 zend_arena *arena = (zend_arena*)mnd_emalloc(size); in mysqlnd_arena_create()
34 arena->end = (char*) arena + size; in mysqlnd_arena_create()
57 size = ZEND_MM_ALIGNED_SIZE(size); in mysqlnd_arena_alloc()
59 if (EXPECTED(size <= (size_t)(arena->end - ptr))) { in mysqlnd_arena_alloc()
60 arena->ptr = ptr + size; in mysqlnd_arena_alloc()
64 (size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) : in mysqlnd_arena_alloc()
130 pool->arena->ptr = (char*)ptr + ZEND_MM_ALIGNED_SIZE(size); in mysqlnd_mempool_resize_chunk()
132 void *new_ptr = mysqlnd_arena_alloc(&pool->arena, size); in mysqlnd_mempool_resize_chunk()
133 memcpy(new_ptr, ptr, MIN(old_size, size)); in mysqlnd_mempool_resize_chunk()
143 mysqlnd_mempool_get_chunk(MYSQLND_MEMORY_POOL * pool, size_t size) in mysqlnd_mempool_get_chunk() argument
[all …]
/PHP-7.3/ext/gd/tests/
H A Dbug79676.phpt16 $size = 32;
17 $src = imagecreatetruecolor($size, $size);
18 imagefilledrectangle($src, 0, 0, $size - 1 , $size - 1, 0xff00ff);
21 test(imagescale($src, $size * 2, $size * 2), 'Scale 200%, default mode');
22 test(imagescale($src, $size / 2, $size / 2), 'Scale 50%, default mode');
23 test(imagescale($src, $size * 2, $size * 2, IMG_BICUBIC), 'Scale 200%, IMG_BICUBIC mode');
24 test(imagescale($src, $size / 2, $size / 2, IMG_BICUBIC), 'Scale 50%, IMG_BICUBIC mode');
/PHP-7.3/ext/standard/
H A Dpack.c755 int size=0; in PHP_FUNCTION() local
800 size = 0; in PHP_FUNCTION()
820 size = 1; in PHP_FUNCTION()
828 size = 2; in PHP_FUNCTION()
842 size = 4; in PHP_FUNCTION()
880 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
899 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
912 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
927 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
955 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
[all …]
/PHP-7.3/sapi/fpm/fpm/
H A Dfpm_shm.c18 void *fpm_shm_alloc(size_t size) /* {{{ */ in fpm_shm_alloc() argument
22 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
26 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory: %s", size, strerror(errno)); in fpm_shm_alloc()
32 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory", size); in fpm_shm_alloc()
36 fpm_shm_size += size; in fpm_shm_alloc()
41 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument
48 if (munmap(mem, size) == -1) { in fpm_shm_free()
53 if (fpm_shm_size - size > 0) { in fpm_shm_free()
54 fpm_shm_size -= size; in fpm_shm_free()
/PHP-7.3/ext/pdo_odbc/tests/
H A Dlong_columns.phpt94 Passed on size 32
95 Passed on size 53
96 Passed on size 64
97 Passed on size 79
98 Passed on size 128
99 Passed on size 253
100 Passed on size 254
101 Passed on size 255
102 Passed on size 256
103 Passed on size 257
[all …]
/PHP-7.3/tests/output/
H A Dob_start_basic_004.phpt37 ----( 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 )----
83 ----( chunk_size: 8, output append size: 1 )----
[all …]
/PHP-7.3/ext/standard/tests/array/
H A Darray_chunk_variation5.phpt13 * 1. -ve size value
15 * 3. size value is zero
16 * 4. Decimal size value
27 // loop through the array for size argument
28 foreach ($sizes as $size){
29 echo "\n-- Testing array_chunk() when size = $size --\n";
30 var_dump( array_chunk($input_array, $size) );
39 -- Testing array_chunk() when size = -1 --
50 -- Testing array_chunk() when size = 4 --
85 -- Testing array_chunk() when size = 0 --
[all …]

Completed in 158 milliseconds

12345678910>>...27