Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-5.3/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.3/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
989 if (read(fd, buf, size) == size) { in zend_mm_random()
1273 leak.size = p->debug.size; in zend_mm_check_leaks()
1601 size = 0; in zend_mm_shutdown()
1712 size); in zend_mm_safe_error()
1723 size); in zend_mm_safe_error()
2025 heap->size -= size; in _zend_mm_free_int()
2171 heap->size = heap->size + true_size - orig_size; in _zend_mm_realloc_int()
[all …]
/PHP-5.3/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_debug.h181 void * (*m_emalloc)(size_t size MYSQLND_MEM_D);
189 void * (*m_malloc)(size_t size MYSQLND_MEM_D);
200 PHPAPI void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D);
208 PHPAPI void * _mysqlnd_malloc(size_t size MYSQLND_MEM_D);
216 #define mnd_emalloc(size) mysqlnd_allocator.m_emalloc((size) MYSQLND_MEM_C) argument
217 #define mnd_pemalloc(size, pers) mysqlnd_allocator.m_pemalloc((size), (pers) MYSQLND_MEM_C) argument
218 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument
219 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument
224 #define mnd_malloc(size) mysqlnd_allocator.m_malloc((size) MYSQLND_MEM_C) argument
225 #define mnd_calloc(nmemb, size) mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C) argument
[all …]
/PHP-5.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_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.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-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_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 --
85 -- Testing ftruncate(): try truncating file to a negative size --
93 -- Testing ftruncate(): try truncating file to a negative size --
101 -- Testing ftruncate(): try truncating file to a negative size --
109 -- 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 --
85 -- Testing ftruncate(): try truncating file to a negative size --
93 -- Testing ftruncate(): try truncating file to a negative size --
101 -- Testing ftruncate(): try truncating file to a negative size --
109 -- Testing ftruncate(): try truncating file to a negative size --
[all …]
/PHP-5.3/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.3/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.3/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 )----
45 ----( chunk_size: 2, output append size: 1 )----
52 ----( chunk_size: 3, output append size: 1 )----
57 ----( chunk_size: 4, output append size: 1 )----
62 ----( chunk_size: 5, output append size: 1 )----
66 ----( chunk_size: 6, output append size: 1 )----
70 ----( chunk_size: 7, output append size: 1 )----
74 ----( chunk_size: 8, output append size: 1 )----
[all …]
/PHP-5.3/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.3/ext/standard/
H A Dpack.c544 int size=0; in PHP_FUNCTION() local
581 size = -1; in PHP_FUNCTION()
585 size = 0; in PHP_FUNCTION()
590 size = arg; in PHP_FUNCTION()
604 size = 1; in PHP_FUNCTION()
612 size = 2; in PHP_FUNCTION()
626 size = 4; in PHP_FUNCTION()
659 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
672 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
676 size = len; in PHP_FUNCTION()
[all …]
/PHP-5.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 …]
/PHP-5.3/ext/fileinfo/libmagic/
H A Dreadelf.c320 off += size; in dophn_core()
380 return (offset >= size) ? offset : size; in donote()
411 return (offset >= size) ? offset : size; in donote()
424 return size; in donote()
454 return size; in donote()
513 return size; in donote()
591 return size; in donote()
600 return size; in donote()
614 return size; in donote()
648 return size; in donote()
[all …]

Completed in 86 milliseconds

12345678910>>...22