/php-src/Zend/ |
H A D | zend_alloc.h | 42 size_t size; member 51 size_t size; member 100 ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \ 103 # define _emalloc(size) \ argument 105 ZEND_ALLOCATOR(size) \ 107 _emalloc(size) \ 123 if (size <= ZEND_MM_MAX_LARGE_SIZE) { _efree_large(ptr, size); } \ 134 efree_size(ptr, size) 189 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size ZEND_FILE_LINE_CC ZEND_FILE_LIN… argument 204 …fine perealloc_recoverable(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_re… 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 | 1135 heap->size = size; 1232 if (size <= 0x00ff) {n -= 8; size = size << 8;} 1233 if (size <= 0x0fff) {n -= 4; size = size << 4;} 1403 heap->size = size; 1480 size = MAX(size, 1); 1845 list->size = size; 1870 size = list->size; 1903 list->size = size; 1981 heap->size = size; 2001 heap->size -= size; [all …]
|
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/ |
H A D | sljitExecAllocatorCore.c | 95 sljit_uw size; member 106 sljit_uw size; member 125 free_block->size = size; in sljit_insert_free_block() 166 size = ALIGN_SIZE(size); in sljit_malloc_exec() 171 if (free_block->size >= size) { in sljit_malloc_exec() 183 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec() 190 header->size = size; in sljit_malloc_exec() 222 header->size = size; in sljit_malloc_exec() 267 free_block->size += header->size; in sljit_free_exec() 277 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec() [all …]
|
H A D | sljitProtExecAllocatorNetBSD.c | 38 static SLJIT_INLINE struct sljit_chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk() argument 42 retval = (struct sljit_chunk_header *)mmap(NULL, size, in alloc_chunk() 49 retval->executable = mremap(retval, size, NULL, size, MAP_REMAPDUP); in alloc_chunk() 51 munmap((void *)retval, size); in alloc_chunk() 55 if (mprotect(retval->executable, size, PROT_READ | PROT_EXEC) == -1) { in alloc_chunk() 56 munmap(retval->executable, size); in alloc_chunk() 57 munmap((void *)retval, size); in alloc_chunk() 64 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument 68 munmap(header->executable, size); in free_chunk() 69 munmap((void *)header, size); in free_chunk()
|
/php-src/main/streams/ |
H A D | php_streams_int.h | 21 #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-src/ext/dom/lexbor/lexbor/core/ |
H A D | print.c | 41 size_t size; in lexbor_vprintf_size() local 45 size = 0; in lexbor_vprintf_size() 68 size += (format - begin) + 1; in lexbor_vprintf_size() 79 return size + (format - begin); in lexbor_vprintf_size() 93 ret = lexbor_vsprintf(dst, size, format, va); in lexbor_sprintf() 109 end = dst + size; in lexbor_vsprintf() 119 size = (format - begin) + 1; in lexbor_vsprintf() 124 size = format - begin; in lexbor_vsprintf() 128 size = strlen(cdata); in lexbor_vsprintf() 133 size = format - begin; in lexbor_vsprintf() [all …]
|
H A D | mraw.c | 184 size = lexbor_mem_align(size); in lexbor_mraw_alloc() 222 lexbor_mraw_meta_set(data, &size); in lexbor_mraw_alloc() 284 if (size != 0) { in lexbor_mraw_realloc_tail() 295 chunk->size = new_chunk.size; in lexbor_mraw_realloc_tail() 306 size = lexbor_mem_align_floor(size + (chunk->size - chunk->length)); in lexbor_mraw_realloc_tail() 309 chunk->length = chunk->size; in lexbor_mraw_realloc_tail() 318 size_t size, begin_len; in lexbor_mraw_realloc() local 330 if (chunk->length >= size) { in lexbor_mraw_realloc() 344 if (new_size < size) { in lexbor_mraw_realloc() 382 if (size != 0) { in lexbor_mraw_realloc() [all …]
|
H A D | bst.c | 78 new_entry->size = size; in lexbor_bst_entry_make() 96 new_entry->size = size; in lexbor_bst_insert() 109 if (size == entry->size) { in lexbor_bst_insert() 119 else if (size > entry->size) { in lexbor_bst_insert() 159 if (size == entry->size) { in lexbor_bst_insert_not_exists() 162 else if (size > entry->size) { in lexbor_bst_insert_not_exists() 191 if (scope->size == size) { in lexbor_bst_search() 212 if (scope->size == size) { in lexbor_bst_search_close() 233 if (entry->size == size) { in lexbor_bst_remove() 255 if (entry->size == size) { in lexbor_bst_remove_close() [all …]
|
H A D | mem.h | 25 size_t size; member 93 return mem->chunk->size; in lexbor_mem_current_size() 103 lexbor_mem_align(size_t size) in lexbor_mem_align() argument 105 return ((size % LEXBOR_MEM_ALIGN_STEP) != 0) in lexbor_mem_align() 106 ? size + (LEXBOR_MEM_ALIGN_STEP - (size % LEXBOR_MEM_ALIGN_STEP)) in lexbor_mem_align() 107 : size; in lexbor_mem_align() 111 lexbor_mem_align_floor(size_t size) in lexbor_mem_align_floor() argument 114 ? size - (size % LEXBOR_MEM_ALIGN_STEP) in lexbor_mem_align_floor() 115 : size; in lexbor_mem_align_floor() 131 lexbor_mem_align_noi(size_t size); [all …]
|
/php-src/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 …]
|
/php-src/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-src/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-src/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-src/ext/random/ |
H A D | engine_user.c | 28 size_t size; in generate() local 35 .size = sizeof(uint64_t), in generate() 40 size = Z_STRLEN(retval); in generate() 43 if (size > sizeof(uint64_t)) { in generate() 44 size = sizeof(uint64_t); in generate() 47 if (size > 0) { in generate() 49 for (size_t i = 0; i < size; i++) { in generate() 55 .size = sizeof(uint64_t), in generate() 63 .size = size, in generate()
|
/php-src/ext/pdo_odbc/tests/ |
H A D | long_columns.phpt | 100 Passed on size 32 101 Passed on size 53 102 Passed on size 64 103 Passed on size 79 104 Passed on size 128 105 Passed on size 253 106 Passed on size 254 107 Passed on size 255 108 Passed on size 256 109 Passed on size 257 [all …]
|
/php-src/ext/standard/ |
H A D | pack.c | 790 size = -1; in PHP_FUNCTION() 798 size = 0; in PHP_FUNCTION() 818 size = 1; in PHP_FUNCTION() 826 size = 2; in PHP_FUNCTION() 840 size = 4; in PHP_FUNCTION() 849 size = 8; in PHP_FUNCTION() 879 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION() 908 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() 924 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() 953 if ((size >= 0) && (len > size)) { in PHP_FUNCTION() [all …]
|
/php-src/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-src/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-src/ext/spl/ |
H A D | spl_fixedarray.c | 40 zend_long size; member 102 array->size = size; in spl_fixedarray_init_non_empty_struct() 108 if (size > 0) { in spl_fixedarray_init() 132 zend_long size = from->size; in spl_fixedarray_copy_ctor() local 170 if (size == array->size) { in spl_fixedarray_resize() 194 } else if (size > array->size) { in spl_fixedarray_resize() 196 spl_fixedarray_init_elems(array, array->size, size); in spl_fixedarray_resize() 197 array->size = size; in spl_fixedarray_resize() 200 spl_fixedarray_dtor_range(array, size, array->size); in spl_fixedarray_resize() 235 const zend_long size = intern->array.size; in spl_fixedarray_object_get_properties_for() local [all …]
|
/php-src/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 …]
|