/PHP-7.0/ext/pcre/pcrelib/sljit/ |
H A D | sljitExecAllocator.c | 128 sljit_uw size; member 136 sljit_uw size; member 153 free_block->size = size; in sljit_insert_free_block() 185 size = ALIGN_SIZE(size); in sljit_malloc_exec() 189 if (free_block->size >= size) { in sljit_malloc_exec() 197 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec() 205 header->size = size; in sljit_malloc_exec() 226 header->size = size; in sljit_malloc_exec() 261 free_block->size += header->size; in sljit_free_exec() 272 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec() [all …]
|
/PHP-7.0/Zend/ |
H A D | zend_alloc.h | 50 size_t size; member 108 ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \ 115 _emalloc(size) \ 131 if (size <= ZEND_MM_MAX_LARGE_SIZE) { _efree_large(ptr, size); } \ 142 efree_size(ptr, size) 195 #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_arena.h | 34 static zend_always_inline zend_arena* zend_arena_create(size_t size) in zend_arena_create() argument 36 zend_arena *arena = (zend_arena*)emalloc(size); in zend_arena_create() 39 arena->end = (char*) arena + size; in zend_arena_create() 60 size = ZEND_MM_ALIGNED_SIZE(size); in zend_arena_alloc() 62 if (EXPECTED(size <= (size_t)(arena->end - ptr))) { in zend_arena_alloc() 63 arena->ptr = ptr + size; in zend_arena_alloc() 67 (size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) : in zend_arena_alloc() 84 size_t size; in zend_arena_calloc() local 87 size = zend_safe_address(unit_size, count, 0, &overflow); in zend_arena_calloc() 91 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc() [all …]
|
H A D | zend_alloc.c | 1115 heap->size = size; 1204 if (size <= 0x00ff) {n -= 8; size = size << 8;} 1205 if (size <= 0x0fff) {n -= 4; size = size << 4;} 1206 if (size <= 0x3fff) {n -= 2; size = size << 2;} 1311 heap->size = size; 1381 size = MAX(size, 1); 1690 list->size = size; 1715 size = list->size; 1748 list->size = size; 1821 heap->size = size; [all …]
|
H A D | zend_multiply.h | 130 "rm"(size), in zend_safe_address() 159 "rm"(size), in zend_safe_address() 181 "r"(size), in zend_safe_address() 203 "r"(size), in zend_safe_address() 227 "r"(size), in zend_safe_address() 242 uint64_t res = (uint64_t) nmemb * (uint64_t) size + (uint64_t) offset; in zend_safe_address() 256 size_t res = nmemb * size + offset; in zend_safe_address() 257 double _d = (double)nmemb * (double)size + (double)offset; in zend_safe_address() 269 static zend_always_inline size_t zend_safe_address_guarded(size_t nmemb, size_t size, size_t offset) in zend_safe_address_guarded() argument 272 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_address_guarded() [all …]
|
/PHP-7.0/main/streams/ |
H A D | php_streams_int.h | 24 #define emalloc_rel_orig(size) \ argument 26 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 27 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 29 #define erealloc_rel_orig(ptr, size) \ argument 31 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 32 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 34 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size… argument 35 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument 37 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument 38 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument [all …]
|
/PHP-7.0/ext/mysqlnd/ |
H A D | mysqlnd_block_alloc.c | 43 pool->free_size += chunk->size; in mysqlnd_mempool_free_chunk() 68 if ((chunk->size + pool->free_size) < size) { in mysqlnd_mempool_resize_chunk() 70 new_ptr = mnd_emalloc(size); in mysqlnd_mempool_resize_chunk() 77 chunk->size = size; in mysqlnd_mempool_resize_chunk() 82 pool->free_size += (chunk->size - size); in mysqlnd_mempool_resize_chunk() 86 if (chunk->size >= size) { in mysqlnd_mempool_resize_chunk() 90 new_ptr = mnd_emalloc(size); in mysqlnd_mempool_resize_chunk() 96 chunk->size = size; in mysqlnd_mempool_resize_chunk() 124 chunk->size = size; in mysqlnd_mempool_get_chunk() 131 if (size > pool->free_size) { in mysqlnd_mempool_get_chunk() [all …]
|
H A D | mysqlnd_alloc.h | 31 void * (*m_emalloc)(size_t size MYSQLND_MEM_D); 39 void * (*m_malloc)(size_t size MYSQLND_MEM_D); 52 PHPAPI void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D); 60 PHPAPI void * _mysqlnd_malloc(size_t size MYSQLND_MEM_D); 70 #define mnd_emalloc(size) mysqlnd_allocator.m_emalloc((size) MYSQLND_MEM_C) argument 71 #define mnd_pemalloc(size, pers) mysqlnd_allocator.m_pemalloc((size), (pers) MYSQLND_MEM_C) argument 72 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument 73 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument 78 #define mnd_malloc(size) mysqlnd_allocator.m_malloc((size) MYSQLND_MEM_C) argument 79 #define mnd_calloc(nmemb, size) mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C) argument [all …]
|
/PHP-7.0/ext/standard/tests/streams/ |
H A D | stream_set_chunk_size.phpt | 42 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"; 64 write with size: 1 65 write with size: 1 66 write with size: 1 70 should elicit one read of size 100 (chunk size) 71 read with size: 100 73 should elicit one read of size 100 (chunk size) 74 read with size: 100 [all …]
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | ftruncate_variation2-win32.phpt | 77 -- 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 D | ftruncate_variation2.phpt | 77 -- 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 D | ftruncate_variation6-win32.phpt | 2 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 D | ftruncate_variation6.phpt | 2 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 D | filesize_variation1-win32.phpt | 2 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.0/main/ |
H A D | mergesort.c | 173 if (i == size) in php_mergesort() 179 i = (((t - b) / size) >> 1) * size; in php_mergesort() 194 i = size; in php_mergesort() 242 i = size; \ 246 a -= size; \ 251 i = size; \ 270 size2 = size*2; in setup() 281 insertionsort(list1 + (n - i) * size, i, size, cmp); in setup() 326 swap(f1, f1 + size); in setup() 341 for (ai = a+size; --n >= 1; ai += size) in insertionsort() [all …]
|
/PHP-7.0/ext/standard/ |
H A D | pack.c | 747 int size=0; in PHP_FUNCTION() local 792 size = 0; in PHP_FUNCTION() 812 size = 1; in PHP_FUNCTION() 820 size = 2; in PHP_FUNCTION() 834 size = 4; in PHP_FUNCTION() 872 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION() 891 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION() 904 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() 919 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() 947 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() [all …]
|
/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_shm.c | 20 void *fpm_shm_alloc(size_t size) /* {{{ */ in fpm_shm_alloc() argument 24 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc() 28 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory: %s", size, strerror(errno)); in fpm_shm_alloc() 34 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory", size); in fpm_shm_alloc() 38 fpm_shm_size += size; in fpm_shm_alloc() 43 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument 50 if (munmap(mem, size) == -1) { in fpm_shm_free() 55 if (fpm_shm_size - size > 0) { in fpm_shm_free() 56 fpm_shm_size -= size; in fpm_shm_free()
|
/PHP-7.0/ext/pdo_odbc/tests/ |
H A D | long_columns.phpt | 95 Passed on size 32 96 Passed on size 53 97 Passed on size 64 98 Passed on size 79 99 Passed on size 128 100 Passed on size 253 101 Passed on size 254 102 Passed on size 255 103 Passed on size 256 104 Passed on size 257 [all …]
|
/PHP-7.0/tests/output/ |
H A D | ob_start_basic_004.phpt | 38 ----( chunk_size: -1, output append size: 1 )---- 41 ----( chunk_size: 0, output append size: 1 )---- 44 ----( chunk_size: 1, output append size: 1 )---- 55 ----( chunk_size: 2, output append size: 1 )---- 62 ----( chunk_size: 3, output append size: 1 )---- 67 ----( chunk_size: 4, output append size: 1 )---- 72 ----( chunk_size: 5, output append size: 1 )---- 76 ----( chunk_size: 6, output append size: 1 )---- 80 ----( chunk_size: 7, output append size: 1 )---- 84 ----( chunk_size: 8, output append size: 1 )---- [all …]
|
/PHP-7.0/ext/standard/tests/array/ |
H A D | array_chunk_variation5.phpt | 13 * 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 …]
|
/PHP-7.0/ext/mcrypt/tests/ |
H A D | mcrypt_decrypt_variation2.phpt | 127 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 131 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 135 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 139 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 143 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 147 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 151 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 155 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 159 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 179 Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… [all …]
|
H A D | mcrypt_decrypt_variation5.phpt | 127 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 131 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 135 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 139 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 143 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 147 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 151 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 155 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 159 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … 179 Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for … [all …]
|
H A D | mcrypt_encrypt_variation2.phpt | 127 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 131 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 135 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 139 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 143 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 147 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 151 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 155 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 159 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… 179 Error: 2 - mcrypt_encrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 s… [all …]
|
H A D | mcrypt_encrypt_variation5.phpt | 128 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 132 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 136 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 140 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 144 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 148 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 152 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 156 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 160 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … 180 Error: 2 - mcrypt_encrypt(): Received initialization vector of size %d, but size 8 is required for … [all …]
|