Home
last modified time | relevance | path

Searched refs:size (Results 51 – 75 of 592) sorted by relevance

12345678910>>...24

/PHP-5.5/Zend/
H A Dzend_stream.c183 size_t size; local
223 if (size == (size_t)-1) {
235 size != 0 &&
245 size -= offset;
248 file_handle->handle.stream.mmap.len = size;
260 size = 0;
263 size += read;
267 *buf = safe_erealloc(*buf, size, 2, 0);
268 remain = size;
272 file_handle->handle.stream.mmap.len = size;
[all …]
H A Dzend_dynamic_array.c31 …ND_API int zend_dynamic_array_init(dynamic_array *da, unsigned int element_size, unsigned int size) in zend_dynamic_array_init() argument
34 da->allocated = size; in zend_dynamic_array_init()
36 da->array = (char *) emalloc(size*element_size); in zend_dynamic_array_init()
/PHP-5.5/ext/dba/
H A Ddba_db1.c39 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
105 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC()
106 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
118 gval.size = vallen; in DBA_UPDATE_FUNC()
150 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC()
151 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC()
166 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC()
167 return estrndup(gkey.data, gkey.size); in DBA_NEXTKEY_FUNC()
/PHP-5.5/ext/standard/tests/file/
H A Duserstreams_005.phpt39 test("stream_truncate size 0", $fd, 0);
40 test("stream_truncate size 10", $fd, 10);
41 test("stream_truncate negative size", $fd, -1);
51 ------ stream_truncate size 0: -------
54 ------ stream_truncate size 10: -------
57 ------ stream_truncate negative size: -------
H A Dbug37158.phpt28 var_dump('size of contents 1 = ' . strlen($outsidecontents));
30 var_dump('size of contents 2 = ' . strlen($outsidecontents));
37 string(26) "size of contents 1 = 20000"
38 string(26) "size of contents 2 = 40960"
H A Dfilesize_variation4-win32.phpt12 Description : Returns the size of the file in bytes, or FALSE
24 echo "-- opening the file in 'w' mode and get the size --\n";
29 var_dump( filesize($filename) ); //size of the file = strlen of string
32 echo "-- opening the file in 'wt' mode and get the size --\n";
37 var_dump( filesize($filename) ); //size of the file = 192 bytes != strlen of string
54 echo "-- creating a hole and checking the size --\n";
61 echo "-- writing data after hole and checking the size --\n";
90 -- opening the file in 'w' mode and get the size --
93 -- opening the file in 'wt' mode and get the size --
100 -- creating a hole and checking the size --
[all …]
H A Dfread_variation2.phpt31 // read the data of size $read_size
35 // check if data read is of expected size
82 // read from file, by giving the file actual size,
88 // reading file by giving less than its size
118 -- Reading file content less than max. file size, expeceted : 0 bytes --
133 -- Reading file content less than max. file size, expeceted : 0 bytes --
148 -- Reading file content less than max. file size, expeceted : 0 bytes --
163 -- Reading file content less than max. file size, expeceted : 0 bytes --
178 -- Reading file content less than max. file size, expeceted : 0 bytes --
193 -- Reading file content less than max. file size, expeceted : 0 bytes --
[all …]
H A Dfilesize_variation4.phpt12 Description : Returns the size of the file in bytes, or FALSE
26 echo "-- opening the file in 'w' mode and get the size --\n";
31 var_dump( filesize($filename) ); //size of the file = strlen of string
34 echo "-- opening the file in 'wt' mode and get the size --\n";
39 var_dump( filesize($filename) ); //size of the file = strlen of string = 191 bytes
56 echo "-- creating a hole and checking the size --\n";
63 echo "-- writing data after hole and checking the size --\n";
92 -- opening the file in 'w' mode and get the size --
95 -- opening the file in 'wt' mode and get the size --
102 -- creating a hole and checking the size --
[all …]
H A Dfread_variation1.phpt13 /* Read content less than file size &
33 // read the data of size $read_size
37 // check if data read is of expected size
83 // read from file, by giving the file actual size,
89 // reading file by giving less than its size
119 -- Reading file content less than max. file size, expeceted : 1000 bytes --
134 -- Reading file content less than max. file size, expeceted : 1000 bytes --
149 -- Reading file content less than max. file size, expeceted : 1000 bytes --
164 -- Reading file content less than max. file size, expeceted : 1000 bytes --
179 -- Reading file content less than max. file size, expeceted : 1000 bytes --
[all …]
H A Duserstreams_006.phpt13 echo "size: ", strlen($data), "\n";
36 size: 42
37 size: 28
H A Dfile.inc122 $size = $file_size;
124 if ( $size > $chunk_size ) {
129 $chunk_size = $size;
136 $size -= $chunk_size;
137 } while ( $size > 0 );
219 $size = size of the fill in terms of kilobyte, i.e size of the file.
237 $size = 1,
252 // check for proper size
253 if ( $size == 0 )
257 $file_size = $size;
[all …]
/PHP-5.5/ext/xml/tests/
H A Dbug32001.phpt169 Chunk size: all data at once
289 Chunk size: 1 byte(s)
301 Chunk size: 1 byte(s)
313 Chunk size: 1 byte(s)
325 Chunk size: 1 byte(s)
337 Chunk size: 1 byte(s)
349 Chunk size: 1 byte(s)
361 Chunk size: 1 byte(s)
373 Chunk size: 1 byte(s)
385 Chunk size: 1 byte(s)
[all …]
/PHP-5.5/ext/standard/tests/array/
H A Darray_chunk_variation6.phpt5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
7 * : Chunks an array into size large chunks
34 $size = 2;
42 var_dump( array_chunk($input_array, $size) );
43 var_dump( array_chunk($input_array, $size, true) );
44 var_dump( array_chunk($input_array, $size, false) );
H A Darray_chunk_variation4.phpt5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
7 * : Chunks an array into size large chunks
17 $size = 2;
27 var_dump( array_chunk($input_array, $size) );
30 var_dump( array_chunk($input_array, $size, true) );
33 var_dump( array_chunk($input_array, $size, false) );
/PHP-5.5/ext/spl/tests/
H A Dbug67247.phpt6 echo "size: ".$ar->getSize()."\n";
8 echo "size: ".$ar->getSize()."\n";
11 size: 1
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dqueue.c136 q->size = 0; in Q_Init()
301 if(q->size == 0) { in Q_PushHead()
311 q->size++; in Q_PushHead()
351 if(q->size == 0) { in Q_PushTail()
364 q->size++; in Q_PushTail()
402 q->size--; in Q_PopHead()
404 if(q->size == 0) in Q_PopHead()
444 q->size--; in Q_PopTail()
446 if(q->size == 0) in Q_PopTail()
560 q->size--; in Q_Iter_Del()
[all …]
/PHP-5.5/ext/gd/libgd/
H A Dgd_io_dp.c49 static int appendDynamic (dynamicPtr * dp, const void *src, int size);
95 void * gdDPExtractData (struct gdIOCtx *ctx, int *size) in gdDPExtractData() argument
107 *size = dp->logicalSize; in gdDPExtractData()
110 *size = 0; in gdDPExtractData()
198 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument
203 appendDynamic (dctx->dp, buf, size); in dynamicPutbuf()
207 return size; in dynamicPutbuf()
293 static int appendDynamic (dynamicPtr * dp, const void *src, int size) in appendDynamic() argument
303 bytesNeeded = dp->pos + size; in appendDynamic()
317 memcpy((void *) (tmp + (dp->pos)), src, size); in appendDynamic()
[all …]
H A Dgd_io_ss.c45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
79 static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size) in sourceGetbuf() argument
86 res = ((lctx->src->source) (lctx->src->context, buf, size)); in sourceGetbuf()
116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) in sinkPutbuf() argument
123 res = (lctx->snk->sink) (lctx->snk->context, buf, size); in sinkPutbuf()
H A Dgd_io_file.c77 static int filePutbuf (gdIOCtx * ctx, const void *buf, int size) in filePutbuf() argument
82 return fwrite(buf, 1, size, fctx->f); in filePutbuf()
86 static int fileGetbuf (gdIOCtx * ctx, void *buf, int size) in fileGetbuf() argument
91 return fread(buf, 1, size, fctx->f); in fileGetbuf()
/PHP-5.5/ext/opcache/
H A Dzend_shared_alloc.c107 static void copy_shared_segments(void *to, void *from, int count, int size) in copy_shared_segments() argument
116 memcpy(shared_segments_to_p, shared_segments_from_p, size); in copy_shared_segments()
117 shared_segments_to_p = ((char *)shared_segments_to_p + size); in copy_shared_segments()
118 shared_segments_from_p = ((char *)shared_segments_from_p + size); in copy_shared_segments()
297 void *zend_shared_alloc(size_t size) in zend_shared_alloc() argument
300 unsigned int block_size = ZEND_ALIGNED_SIZE(size); in zend_shared_alloc()
326 int zend_shared_memdup_size(void *source, size_t size) in zend_shared_memdup_size() argument
335 return ZEND_ALIGNED_SIZE(size); in zend_shared_memdup_size()
347 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
348 memcpy(retval, source, size); in _zend_shared_memdup()
[all …]
/PHP-5.5/ext/mbstring/oniguruma/
H A Dst.c104 new_size(size) in new_size() argument
105 int size; in new_size()
111 if ((1<<i) > size) return 1<<i;
142 st_init_table_with_size(type, size) in st_init_table_with_size() argument
144 int size;
155 size = new_size(size); /* round up to prime number */
160 tbl->num_bins = size;
180 st_init_numtable_with_size(size) in st_init_numtable_with_size() argument
181 int size; in st_init_numtable_with_size()
193 st_init_strtable_with_size(size) in st_init_strtable_with_size() argument
[all …]
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_shm.h8 void *fpm_shm_alloc(size_t size);
9 int fpm_shm_free(void *mem, size_t size);
/PHP-5.5/tests/basic/
H A Drfc1867_max_file_uploads_empty_files_debug.phpt45 Warning: Uploaded file size 0 - file [file4=file4.txt] not saved in Unknown on line 0
57 ["size"]=>
70 ["size"]=>
83 ["size"]=>
96 ["size"]=>
/PHP-5.5/win32/
H A Dsockets.c35 int size = sizeof(address); in socketpair() local
58 if(getsockname(sock[0], (struct sockaddr *)&address, &size) != 0) { in socketpair()
76 redirect = accept(sock[0],(struct sockaddr*)&address, &size); in socketpair()
/PHP-5.5/ext/oci8/tests/
H A Dlob_007.phpt2 oci_lob_write()/size()/load()
28 var_dump($blob->size());
30 var_dump($blob->size());
39 var_dump($row[0]->size());

Completed in 48 milliseconds

12345678910>>...24