Home
last modified time | relevance | path

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

12345678910>>...23

/PHP-5.4/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.4/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.4/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.4/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.4/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.4/ext/spl/tests/
H A Dbug67247.phpt6 echo "size: ".$ar->getSize()."\n";
8 echo "size: ".$ar->getSize()."\n";
11 size: 1
/PHP-5.4/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.4/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()
/PHP-5.4/ext/mbstring/oniguruma/
H A Dst.c120 new_size(size) in new_size() argument
121 int size; in new_size()
127 if ((1<<i) > size) return 1<<i;
158 st_init_table_with_size(type, size) in st_init_table_with_size() argument
160 int size;
171 size = new_size(size); /* round up to prime number */
176 tbl->num_bins = size;
196 st_init_numtable_with_size(size) in st_init_numtable_with_size() argument
197 int size; in st_init_numtable_with_size()
209 st_init_strtable_with_size(size) in st_init_strtable_with_size() argument
[all …]
/PHP-5.4/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.4/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.4/ext/pcre/pcrelib/sljit/
H A DsljitNativeX86_64.c111 INC_SIZE(size); in sljit_emit_enter()
121 INC_SIZE(size); in sljit_emit_enter()
128 size = args * 3; in sljit_emit_enter()
132 INC_SIZE(size); in sljit_emit_enter()
258 sljit_si i, tmp, size; in sljit_emit_return() local
303 INC_SIZE(size); in sljit_emit_return()
314 INC_SIZE(size); in sljit_emit_return()
355 sljit_si flags = size & ~0xf; in emit_x86_instruction()
372 size &= 0xf; in emit_x86_instruction()
373 inst_size = size; in emit_x86_instruction()
[all …]
H A DsljitNativeX86_32.c70 sljit_si size; in sljit_emit_enter() local
84 size += (args > 0 ? (2 + args * 3) : 0); in sljit_emit_enter()
89 INC_SIZE(size); in sljit_emit_enter()
210 sljit_si size; in sljit_emit_return() local
240 size += 2; in sljit_emit_return()
243 size += 2; in sljit_emit_return()
248 INC_SIZE(size); in sljit_emit_return()
282 sljit_si flags = size & ~0xf; in emit_x86_instruction()
297 size &= 0xf; in emit_x86_instruction()
298 inst_size = size; in emit_x86_instruction()
[all …]
/PHP-5.4/ext/sockets/
H A Dmulticast.c329 ULONG size; in php_if_index_to_addr4() local
340 size = 4 * (sizeof *addr_table); in php_if_index_to_addr4()
341 addr_table = emalloc(size); in php_if_index_to_addr4()
346 addr_table = emalloc(size); in php_if_index_to_addr4()
369 ULONG size; in php_add4_to_if_index() local
380 size = 4 * (sizeof *addr_table); in php_add4_to_if_index()
381 addr_table = emalloc(size); in php_add4_to_if_index()
386 addr_table = emalloc(size); in php_add4_to_if_index()
455 int size = 0, local
466 buf = ecalloc(size, 1);
[all …]
/PHP-5.4/ext/bcmath/libbcmath/src/
H A Ddiv.c48 _one_mult (num, size, digit, result) in _one_mult() argument
50 int size, digit;
57 memset (result, 0, size);
61 memcpy (result, num, size);
65 nptr = (unsigned char *) (num+size-1);
66 rptr = (unsigned char *) (result+size-1);
69 while (size-- > 0)

Completed in 63 milliseconds

12345678910>>...23