Home
last modified time | relevance | path

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

12345678910>>...23

/PHP-5.4/ext/pcre/pcrelib/sljit/
H A DsljitExecAllocator.c128 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-5.4/main/streams/
H A Dphp_streams_int.h24 #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-5.4/Zend/
H A Dzend_alloc.h46 size_t size; member
70 #define emalloc(size) _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) argument
122 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument
123 …efine safe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offse… argument
125 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument
126 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
128 …e perealloc_recoverable(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):ereallo… argument
132 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument
134 #define pecalloc_rel(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc_… argument
135 #define perealloc_rel(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_r… argument
[all …]
H A Dzend_alloc.c167 memcpy(ret, segment, size > segment->size ? segment->size : size); in zend_mm_mem_mmap_realloc()
351 size_t size; member
360 size_t size; member
1011 if (read(fd, buf, size) == size) { in zend_mm_random()
1296 leak.size = p->debug.size; in zend_mm_check_leaks()
1631 size = 0; in zend_mm_shutdown()
1778 size); in zend_mm_safe_error()
1789 size); in zend_mm_safe_error()
2097 heap->size -= size; in _zend_mm_free_int()
2247 heap->size = heap->size + true_size - orig_size; in _zend_mm_realloc_int()
[all …]
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_block_alloc.c43 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_malloc(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_malloc(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 Dmysqlnd_alloc.h34 void * (*m_emalloc)(size_t size MYSQLND_MEM_D);
42 void * (*m_malloc)(size_t size MYSQLND_MEM_D);
55 PHPAPI void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D);
63 PHPAPI void * _mysqlnd_malloc(size_t size MYSQLND_MEM_D);
73 #define mnd_emalloc(size) mysqlnd_allocator.m_emalloc((size) MYSQLND_MEM_C) argument
74 #define mnd_pemalloc(size, pers) mysqlnd_allocator.m_pemalloc((size), (pers) MYSQLND_MEM_C) argument
75 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument
76 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument
81 #define mnd_malloc(size) mysqlnd_allocator.m_malloc((size) MYSQLND_MEM_C) argument
82 #define mnd_calloc(nmemb, size) mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C) argument
[all …]
/PHP-5.4/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";
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-5.4/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_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.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_variation2-win32.phpt2 Test filesize() function: usage variations - size of dir/subdir
12 Description : Returns the size of the file in bytes, or FALSE
21 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n";
22 echo "-- Creating a base dir, and checking its size --\n";
37 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir
48 // size of base dir
51 // size of subdir
54 // size of file inside subdir
70 *** Testing size of a dir, sub-dir and file with filesize() ***
71 -- Creating a base dir, and checking its size --
[all …]
H A Dfilesize_variation2.phpt2 Test filesize() function: usage variations - size of dir/subdir
12 Description : Returns the size of the file in bytes, or FALSE
21 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n";
22 echo "-- Creating a base dir, and checking its size --\n";
37 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir
48 // size of base dir
51 // size of subdir
54 // size of file inside subdir
70 *** Testing size of a dir, sub-dir and file with filesize() ***
71 -- Creating a base dir, and checking its size --
[all …]
H A Dfilesize_variation1.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 Dftruncate_variation1-win32.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
53 /* truncate it to size 0 */
76 -- Testing ftruncate(): truncate file to size = 0 --
84 -- Testing ftruncate(): truncate file to size = 0 --
92 -- Testing ftruncate(): truncate file to size = 0 --
100 -- Testing ftruncate(): truncate file to size = 0 --
108 -- Testing ftruncate(): truncate file to size = 0 --
116 -- Testing ftruncate(): truncate file to size = 0 --
124 -- Testing ftruncate(): truncate file to size = 0 --
132 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation1.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
53 /* truncate it to size 0 */
76 -- Testing ftruncate(): truncate file to size = 0 --
84 -- Testing ftruncate(): truncate file to size = 0 --
92 -- Testing ftruncate(): truncate file to size = 0 --
100 -- Testing ftruncate(): truncate file to size = 0 --
108 -- Testing ftruncate(): truncate file to size = 0 --
116 -- Testing ftruncate(): truncate file to size = 0 --
124 -- Testing ftruncate(): truncate file to size = 0 --
132 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
/PHP-5.4/main/
H A Dmergesort.c173 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 TSRMLS_CC); in setup()
326 swap(f1, f1 + size); in setup()
341 for (ai = a+size; --n >= 1; ai += size) in insertionsort()
[all …]
H A Dalloca.c158 alloca (size) in alloca() argument
159 size_t size; in alloca()
199 if (size == 0)
347 long *block, size; in i00afunc() local
374 size = trailer->this_size; in i00afunc()
444 size = ssptr->sssize; in i00afunc()
446 this_segment = stkl - size; in i00afunc()
461 size = ssptr->sssize; in i00afunc()
463 this_segment = stkl - size; in i00afunc()
480 size = ssptr->sssize; in i00afunc()
[all …]
/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_shm.c20 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 memset(mem, 0, size); in fpm_shm_alloc()
39 fpm_shm_size += size; in fpm_shm_alloc()
44 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument
51 if (munmap(mem, size) == -1) { in fpm_shm_free()
56 if (fpm_shm_size - size > 0) { in fpm_shm_free()
57 fpm_shm_size -= size; in fpm_shm_free()
/PHP-5.4/ext/pdo_odbc/tests/
H A Dlong_columns.phpt95 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-5.4/ext/standard/
H A Dpack.c543 int size=0; in PHP_FUNCTION() local
580 size = -1; in PHP_FUNCTION()
584 size = 0; in PHP_FUNCTION()
589 size = arg; in PHP_FUNCTION()
603 size = 1; in PHP_FUNCTION()
611 size = 2; in PHP_FUNCTION()
625 size = 4; in PHP_FUNCTION()
645 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
664 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
678 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
[all …]
H A Dformatted_print.c57 if ((*pos + 1) >= *size) { in php_sprintf_appendchar()
58 *size <<= 1; in php_sprintf_appendchar()
60 *buffer = erealloc(*buffer, *size); in php_sprintf_appendchar()
95 if (req_size > *size) { in php_sprintf_appendstring()
96 while (req_size > *size) { in php_sprintf_appendstring()
97 if(*size > INT_MAX/2) { in php_sprintf_appendstring()
100 *size <<= 1; in php_sprintf_appendstring()
103 *buffer = erealloc(*buffer, *size); in php_sprintf_appendstring()
206 int *size, double number, in php_sprintf_appenddouble() argument
419 result = emalloc(size); in php_formatted_print()
[all …]
/PHP-5.4/tests/output/
H A Dob_start_basic_004.phpt36 ----( 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-5.4/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 43 milliseconds

12345678910>>...23