/PHP-8.2/Zend/ |
H A D | zend_alloc.h | 42 size_t size; member 100 ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \ 107 _emalloc(size) \ 123 if (size <= ZEND_MM_MAX_LARGE_SIZE) { _efree_large(ptr, size); } \ 134 efree_size(ptr, size) 188 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument 199 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument 200 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument 208 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument 210 #define pecalloc_rel(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc_… argument [all …]
|
H A D | zend_range_check.h | 54 #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 D | zend_alloc.c | 1097 heap->size = size; 1198 if (size <= 0x00ff) {n -= 8; size = size << 8;} 1199 if (size <= 0x0fff) {n -= 4; size = size << 4;} 1306 heap->size = size; 1376 size = MAX(size, 1); 1736 list->size = size; 1761 size = list->size; 1794 list->size = size; 1872 heap->size = size; 1892 heap->size -= size; [all …]
|
H A D | zend_arena.h | 36 zend_arena *arena = (zend_arena*)emalloc(size); in zend_arena_create() 39 arena->end = (char*) arena + size; in zend_arena_create() 58 size = ZEND_MM_ALIGNED_SIZE(size); in zend_arena_alloc() 61 arena->ptr = ptr + size; in zend_arena_alloc() 82 size_t size; in zend_arena_calloc() local 89 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc() 90 memset(ret, 0, size); in zend_arena_calloc() 172 return *arena->ptr++ = emalloc(size); in zend_arena_alloc() 178 size_t size; in zend_arena_calloc() local 185 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc() [all …]
|
/PHP-8.2/ext/pcre/pcre2lib/sljit/ |
H A D | sljitExecAllocator.c | 222 sljit_uw size; member 230 sljit_uw size; member 247 free_block->size = size; in sljit_insert_free_block() 279 size = ALIGN_SIZE(size); in sljit_malloc_exec() 283 if (free_block->size >= size) { in sljit_malloc_exec() 292 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec() 300 header->size = size; in sljit_malloc_exec() 321 header->size = size; in sljit_malloc_exec() 357 free_block->size += header->size; in sljit_free_exec() 368 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec() [all …]
|
H A D | sljitProtExecAllocator.c | 267 sljit_uw size; member 276 sljit_uw size; member 293 free_block->size = size; in sljit_insert_free_block() 327 size = ALIGN_SIZE(size); in sljit_malloc_exec() 331 if (free_block->size >= size) { in sljit_malloc_exec() 340 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec() 348 header->size = size; in sljit_malloc_exec() 376 header->size = size; in sljit_malloc_exec() 414 free_block->size += header->size; in sljit_free_exec() 425 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec() [all …]
|
H A D | sljitWXExecAllocator.c | 63 #define check_se_protected(ptr, size) (0) argument 94 #define check_se_protected(ptr, size) generic_se_protected(ptr, size) argument 98 if (SLJIT_LIKELY(!mprotect(ptr, size, PROT_EXEC))) in generic_se_protected() 99 return mprotect(ptr, size, PROT_READ | PROT_WRITE); in generic_se_protected() 134 size += sizeof(sljit_uw); in sljit_malloc_exec() 142 se_protected = check_se_protected(ptr, size); in sljit_malloc_exec() 145 munmap((void *)ptr, size); in sljit_malloc_exec() 150 *ptr++ = size; in sljit_malloc_exec() 185 size += sizeof(sljit_uw); in sljit_malloc_exec() 186 ptr = (sljit_uw*)VirtualAlloc(NULL, size, in sljit_malloc_exec() [all …]
|
/PHP-8.2/main/streams/ |
H A D | php_streams_int.h | 19 #define emalloc_rel_orig(size) \ argument 21 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 22 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 24 #define erealloc_rel_orig(ptr, size) \ argument 26 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 27 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 29 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size… argument 30 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument 32 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument 33 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument [all …]
|
/PHP-8.2/ext/standard/tests/file/ |
H A D | ftruncate_variation2-win32.phpt | 72 -- Testing ftruncate(): truncate file to size = current size -- 80 -- Testing ftruncate(): truncate file to size = current size -- 88 -- Testing ftruncate(): truncate file to size = current size -- 96 -- Testing ftruncate(): truncate file to size = current size -- 104 -- Testing ftruncate(): truncate file to size = current size -- 112 -- Testing ftruncate(): truncate file to size = current size -- 120 -- Testing ftruncate(): truncate file to size = current size -- 128 -- Testing ftruncate(): truncate file to size = current size -- 136 -- Testing ftruncate(): truncate file to size = current size -- 144 -- Testing ftruncate(): truncate file to size = current size -- [all …]
|
H A D | ftruncate_variation2.phpt | 72 -- Testing ftruncate(): truncate file to size = current size -- 80 -- Testing ftruncate(): truncate file to size = current size -- 88 -- Testing ftruncate(): truncate file to size = current size -- 96 -- Testing ftruncate(): truncate file to size = current size -- 104 -- Testing ftruncate(): truncate file to size = current size -- 112 -- Testing ftruncate(): truncate file to size = current size -- 120 -- Testing ftruncate(): truncate file to size = current size -- 128 -- Testing ftruncate(): truncate file to size = current size -- 136 -- Testing ftruncate(): truncate file to size = current size -- 144 -- Testing ftruncate(): truncate file to size = current size -- [all …]
|
H A D | ftruncate_variation4.phpt | 2 Test ftruncate() function : usage variations - truncate file to negative size 43 /* try to truncate it to a negative size, size should not change*/ 57 clearstatcache(); // clear previous size value in cache 58 $file_size = filesize($filename); // new file size = actual size, no change 72 -- Testing ftruncate(): try truncating file to a negative size -- 80 -- Testing ftruncate(): try truncating file to a negative size -- 88 -- Testing ftruncate(): try truncating file to a negative size -- 96 -- Testing ftruncate(): try truncating file to a negative size -- 104 -- Testing ftruncate(): try truncating file to a negative size -- 112 -- Testing ftruncate(): try truncating file to a negative size -- [all …]
|
H A D | ftruncate_variation6-win32.phpt | 2 Test ftruncate() function : usage variations - truncate file to smaller size 11 /* truncate the file to smaller size and display the content */ 63 clearstatcache(); // clear previous size value in cache 292 File content after truncating file to 15 size : string(15) "line 301 File content after truncating file to 15 size : string(15) "line 310 File content after truncating file to 15 size : string(15) "line 319 File content after truncating file to 15 size : string(15) "line 328 File content after truncating file to 15 size : string(15) "line 337 File content after truncating file to 15 size : string(15) "line 346 File content after truncating file to 15 size : string(15) "line [all …]
|
H A D | ftruncate_variation6.phpt | 2 Test ftruncate() function : usage variations - truncate file to smaller size 11 /* truncate the file to smaller size and display the content */ 63 clearstatcache(); // clear previous size value in cache 292 File content after truncating file to 15 size : string(15) "line 301 File content after truncating file to 15 size : string(15) "line 310 File content after truncating file to 15 size : string(15) "line 319 File content after truncating file to 15 size : string(15) "line 328 File content after truncating file to 15 size : string(15) "line 337 File content after truncating file to 15 size : string(15) "line 346 File content after truncating file to 15 size : string(15) "line [all …]
|
H A D | filesize_variation1-win32-mb.phpt | 2 Test filesize() function: usage variations - size of files 15 echo "*** Checking filesize() with different size of files ***\n"; 16 for($size = 1; $size <10000; $size = $size+1000) 18 create_files($file_path, 1, "numeric", 0755, $size, "w", "私はガラスを食べられますfilesize_variation"); 28 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation1-win32.phpt | 2 Test filesize() function: usage variations - size of files 15 echo "*** Checking filesize() with different size of files ***\n"; 16 for($size = 1; $size <10000; $size = $size+1000) 18 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation"); 28 *** Checking filesize() with different size of files ***
|
/PHP-8.2/ext/standard/tests/streams/ |
H A D | stream_set_chunk_size.phpt | 43 echo "should elicit one read of size 100 (chunk size)\n"; 45 echo "should elicit one read of size 100 (chunk size)\n"; 72 write with size: 1 73 write with size: 1 74 write with size: 1 78 should elicit one read of size 100 (chunk size) 79 read with size: 100 81 should elicit one read of size 100 (chunk size) 82 read with size: 100 87 write with size: 100 [all …]
|
/PHP-8.2/ext/gd/tests/ |
H A D | bug79676.phpt | 14 $size = 32; 15 $src = imagecreatetruecolor($size, $size); 16 imagefilledrectangle($src, 0, 0, $size - 1 , $size - 1, 0xff00ff); 19 test(imagescale($src, $size * 2, $size * 2), 'Scale 200%, default mode'); 20 test(imagescale($src, $size / 2, $size / 2), 'Scale 50%, default mode'); 21 test(imagescale($src, $size * 2, $size * 2, IMG_BICUBIC), 'Scale 200%, IMG_BICUBIC mode'); 22 test(imagescale($src, $size / 2, $size / 2, IMG_BICUBIC), 'Scale 50%, IMG_BICUBIC mode');
|
/PHP-8.2/sapi/fpm/fpm/ |
H A D | fpm_shm.c | 18 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) { in fpm_shm_free() 54 fpm_shm_size -= size; in fpm_shm_free()
|
/PHP-8.2/ext/pdo_odbc/tests/ |
H A D | long_columns.phpt | 96 Passed on size 32 97 Passed on size 53 98 Passed on size 64 99 Passed on size 79 100 Passed on size 128 101 Passed on size 253 102 Passed on size 254 103 Passed on size 255 104 Passed on size 256 105 Passed on size 257 [all …]
|
/PHP-8.2/ext/standard/ |
H A D | pack.c | 792 size = -1; in PHP_FUNCTION() 800 size = 0; in PHP_FUNCTION() 820 size = 1; in PHP_FUNCTION() 828 size = 2; in PHP_FUNCTION() 842 size = 4; in PHP_FUNCTION() 851 size = 8; in PHP_FUNCTION() 881 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION() 910 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() 926 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() 955 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() [all …]
|
/PHP-8.2/tests/output/ |
H A D | ob_start_basic_004.phpt | 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 )---- 82 ----( chunk_size: 8, output append size: 1 )---- [all …]
|
/PHP-8.2/ext/standard/tests/array/ |
H A D | array_chunk_variation5.phpt | 7 * 1. -ve size value 9 * 3. size value is zero 10 * 4. Decimal size value 21 // loop through the array for size argument 22 foreach ($sizes as $size){ 23 echo "\n-- Testing array_chunk() when size = $size --\n"; 25 var_dump( array_chunk($input_array, $size) ); 44 -- Testing array_chunk() when size = -1 -- 49 -- Testing array_chunk() when size = 4 -- 84 -- Testing array_chunk() when size = 0 -- [all …]
|
/PHP-8.2/ext/mysqlnd/ |
H A D | mysqlnd_alloc.h | 28 void * (*m_emalloc)(size_t size MYSQLND_MEM_D); 29 void * (*m_pemalloc)(size_t size, bool persistent MYSQLND_MEM_D); 30 void * (*m_ecalloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D); 31 void * (*m_pecalloc)(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM_D); 36 char * (*m_pememdup)(const char * const ptr, size_t size, bool persistent MYSQLND_MEM_D); 43 #define mnd_emalloc(size) mysqlnd_allocator.m_emalloc((size) MYSQLND_MEM_C) argument 44 #define mnd_pemalloc(size, pers) mysqlnd_allocator.m_pemalloc((size), (pers) MYSQLND_MEM_C) argument 45 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument 46 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument 51 #define mnd_pememdup(ptr, size, pers) mysqlnd_allocator.m_pememdup((ptr), (size), (pers) MYSQLND_ME… argument [all …]
|
/PHP-8.2/ext/spl/ |
H A D | spl_fixedarray.c | 48 zend_long size; member 112 array->size = size; in spl_fixedarray_init_non_empty_struct() 119 if (size > 0) { in spl_fixedarray_init() 143 zend_long size = from->size; in spl_fixedarray_copy_ctor() local 181 if (size == array->size) { in spl_fixedarray_resize() 206 } else if (size > array->size) { in spl_fixedarray_resize() 208 spl_fixedarray_init_elems(array, array->size, size); in spl_fixedarray_resize() 209 array->size = size; in spl_fixedarray_resize() 212 spl_fixedarray_dtor_range(array, size, array->size); in spl_fixedarray_resize() 661 if (!size) { in PHP_METHOD() [all …]
|
/PHP-8.2/ext/opcache/ |
H A D | zend_shared_alloc.h | 77 size_t size; member 134 void *zend_shared_alloc(size_t size); 140 static inline void *zend_shared_alloc_aligned(size_t size) { in zend_shared_alloc_aligned() argument 143 void *p = zend_shared_alloc(size + 64); in zend_shared_alloc_aligned() 146 return zend_shared_alloc(size); in zend_shared_alloc_aligned() 153 void *zend_shared_memdup_free(void *source, size_t size); 155 void *zend_shared_memdup_put(void *source, size_t size); 156 void *zend_shared_memdup(void *source, size_t size); 158 int zend_shared_memdup_size(void *p, size_t size); 174 #define ZEND_ALIGNED_SIZE(size) \ argument [all …]
|