Home
last modified time | relevance | path

Searched refs:size (Results 26 – 50 of 567) sorted by relevance

12345678910>>...23

/PHP-5.4/ext/standard/tests/file/
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 …]
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_variation5-win32.phpt2 Test ftruncate() function : usage variations - truncate file to bigger size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* try to truncate it to size bigger then current */
63 clearstatcache(); // clear previous size value in cache
64 var_dump( filesize($filename) ); // new file size = actual size, no change
78 -- Testing ftruncate(): try truncating file to size, bigger than existing --
86 -- Testing ftruncate(): try truncating file to size, bigger than existing --
94 -- Testing ftruncate(): try truncating file to size, bigger than existing --
102 -- Testing ftruncate(): try truncating file to size, bigger than existing --
110 -- Testing ftruncate(): try truncating file to size, bigger than existing --
[all …]
H A Dftruncate_variation5.phpt2 Test ftruncate() function : usage variations - truncate file to bigger size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* try to truncate it to size bigger then current */
63 clearstatcache(); // clear previous size value in cache
64 var_dump( filesize($filename) ); // new file size = actual size, no change
78 -- Testing ftruncate(): try truncating file to size, bigger than existing --
86 -- Testing ftruncate(): try truncating file to size, bigger than existing --
94 -- Testing ftruncate(): try truncating file to size, bigger than existing --
102 -- Testing ftruncate(): try truncating file to size, bigger than existing --
110 -- Testing ftruncate(): try truncating file to size, bigger than existing --
[all …]
H A Dfilesize_variation3-win32.phpt2 Test filesize() function: usage variations - file size after truncate
12 Description : Returns the size of the file in bytes, or FALSE
21 fwrite($file_handle, (binary)str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes
25 // truncate the file created earlier in subdir, the size of the file is 12000bytes
26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes,
27 // until -1200bytes size
28 for($size = filesize($filename); $size>=-1200; $size-=1200) {
30 var_dump( ftruncate($file_handle, $size) );
H A Dfilesize_variation3.phpt2 Test filesize() function: usage variations - file size after truncate
12 Description : Returns the size of the file in bytes, or FALSE
21 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes
25 // truncate the file created earlier in subdir, the size of the file is 12000bytes
26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes,
27 // until -1200bytes size
28 for($size = filesize($filename); $size>=-1200; $size-=1200) {
30 var_dump( ftruncate($file_handle, $size) );
H A Dsymlink_link_linkinfo_is_link_variation3.phpt41 // storing size of symlink in a local variable
59 // checking that size of symlink remains same
61 echo "\nSoft link size remains same \n";
83 echo "\nSoft link size remains same \n";
105 echo "\nSoft link size remains same \n";
123 -- Check size of soft link and file --
127 Soft link size remains same
132 -- Check size of soft link and file --
136 Soft link size remains same
141 -- Check size of soft link and file --
[all …]
H A Dftruncate_variation3.phpt2 Test ftruncate() function : usage variations - truncate file to half size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* truncate it to half of its current size */
62 clearstatcache(); // clear previous size value in cache
63 var_dump( filesize($filename) ); // new file size = $new_size
76 -- Testing ftruncate(): truncate file to half of its current size --
84 -- Testing ftruncate(): truncate file to half of its current size --
92 -- Testing ftruncate(): truncate file to half of its current size --
100 -- Testing ftruncate(): truncate file to half of its current size --
108 -- Testing ftruncate(): truncate file to half of its current size --
[all …]
H A Dftruncate_variation3-win32.phpt2 Test ftruncate() function : usage variations - truncate file to half size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* truncate it to half of its current size */
62 clearstatcache(); // clear previous size value in cache
63 var_dump( filesize($filename) ); // new file size = $new_size
76 -- Testing ftruncate(): truncate file to half of its current size --
84 -- Testing ftruncate(): truncate file to half of its current size --
92 -- Testing ftruncate(): truncate file to half of its current size --
100 -- Testing ftruncate(): truncate file to half of its current size --
108 -- Testing ftruncate(): truncate file to half of its current size --
[all …]
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_alloc.c97 ret = emalloc(REAL_SIZE(size)); in _mysqlnd_emalloc()
108 *(size_t *) ret = size; in _mysqlnd_emalloc()
149 *(size_t *) ret = size; in _mysqlnd_pemalloc()
190 *(size_t *) ret = size; in _mysqlnd_ecalloc()
231 *(size_t *) ret = size; in _mysqlnd_pecalloc()
413 *(size_t *) ret = size; in _mysqlnd_malloc()
451 *(size_t *) ret = size; in _mysqlnd_calloc()
637 return emalloc(size); in mysqlnd_zend_mm_emalloc()
653 return ecalloc(nmemb, size); in mysqlnd_zend_mm_ecalloc()
701 return malloc(size); in mysqlnd_zend_mm_malloc()
[all …]
/PHP-5.4/TSRM/
H A Dtsrm_config_common.h58 # define tsrm_do_alloca_ex(size, limit, use_heap) \ argument
59 ((use_heap = ((size) > (limit))) ? malloc(size) : alloca(size))
60 # define tsrm_do_alloca(size, use_heap) \ argument
61 tsrm_do_alloca_ex(size, TSRM_ALLOCA_MAX_SIZE, use_heap)
/PHP-5.4/ext/mbstring/oniguruma/
H A Dreggnu.c44 re_adjust_startpos(regex_t* reg, const char* string, int size, in re_adjust_startpos() argument
47 if (startpos > 0 && ONIGENC_MBC_MAXLEN(reg->enc) != 1 && startpos < size) { in re_adjust_startpos()
64 re_match(regex_t* reg, const char* str, int size, int pos, in re_match() argument
67 return onig_match(reg, (UChar* )str, (UChar* )(str + size), in re_match()
72 re_search(regex_t* bufp, const char* string, int size, int startpos, int range, in re_search() argument
75 return onig_search(bufp, (UChar* )string, (UChar* )(string + size), in re_search()
82 re_compile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_compile_pattern() argument
87 r = onig_compile(reg, (UChar* )pattern, (UChar* )(pattern + size), &einfo); in re_compile_pattern()
98 re_recompile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_recompile_pattern() argument
109 r = onig_recompile(reg, (UChar* )pattern, (UChar* )(pattern + size), in re_recompile_pattern()
H A Dregposerr.c66 regerror(int posix_ecode, const regex_t* reg, char* buf, size_t size) in regerror() argument
85 if (buf != NULL && size > 0) { in regerror()
86 strncpy(buf, s, size - 1); in regerror()
87 buf[size - 1] = '\0'; in regerror()
/PHP-5.4/ext/gd/libgd/
H A Dgdhelpers.h15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size) argument
16 #define gdMalloc(size) emalloc(size) argument
17 #define gdRealloc(ptr, size) erealloc(ptr, size) argument
H A Dgd_webp.c37 gdImagePtr gdImageCreateFromWebpPtr (int size, void *data) in gdImageCreateFromWebpPtr() argument
45 ret = WebPDecode(data, size, &Y, &U, &V, &width, &height); in gdImageCreateFromWebpPtr()
69 size_t size = 0, n; in gdImageCreateFromWebpCtx() local
74 size += n; in gdImageCreateFromWebpCtx()
77 filedata = gdMalloc(size); in gdImageCreateFromWebpCtx()
82 gdGetBuf(filedata, size, infile); in gdImageCreateFromWebpCtx()
83 ret = WebPDecode(filedata, size, &Y, &U, &V, &width, &height); in gdImageCreateFromWebpCtx()
111 void * gdImageWebpPtr (gdImagePtr im, int *size) in gdImageWebpPtr() argument
116 rv = gdDPExtractData(out, size); in gdImageWebpPtr()
122 void * gdImageWebpPtrEx (gdImagePtr im, int *size, int quantization) in gdImageWebpPtrEx() argument
[all …]
/PHP-5.4/ext/shmop/
H A Dshmop.c53 ZEND_ARG_INFO(0, size)
159 long key, mode, size; in PHP_FUNCTION() local
188 shmop->size = size; in PHP_FUNCTION()
192 shmop->size = size; in PHP_FUNCTION()
205 if (shmop->shmflg & IPC_CREAT && shmop->size < 1) { in PHP_FUNCTION()
227 shmop->size = shm.shm_segsz; in PHP_FUNCTION()
254 if (start < 0 || start > shmop->size) { in PHP_FUNCTION()
265 bytes = count ? count : shmop->size - start; in PHP_FUNCTION()
307 RETURN_LONG(shmop->size); in PHP_FUNCTION()
333 if (offset < 0 || offset > shmop->size) { in PHP_FUNCTION()
[all …]
/PHP-5.4/Zend/
H A Dzend_static_allocator.c31 inline static char *block_allocate(Block *block, zend_uint size) in block_allocate() argument
34 if ((block->pos += size) >= block->end) { in block_allocate()
53 char *static_allocator_allocate(StaticAllocator *sa, zend_uint size) in static_allocator_allocate() argument
57 retval = block_allocate(&sa->Blocks[sa->current_block], size); in static_allocator_allocate()
63 …block_init(&sa->Blocks[sa->current_block], (size > ALLOCATOR_BLOCK_SIZE) ? size : ALLOCATOR_BLOCK_… in static_allocator_allocate()
64 retval = block_allocate(&sa->Blocks[sa->current_block], size); in static_allocator_allocate()
/PHP-5.4/ext/intl/
H A Dintl_common.h31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0) argument
35 # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar)) argument
/PHP-5.4/ext/zip/lib/
H A Dzip_source_crc.c45 zip_uint64_t size; member
89 ctx->size = 0; in crc_read()
114 if ((st.valid & ZIP_STAT_SIZE) && st.size != ctx->size) { in crc_read()
123 ctx->size += n; in crc_read()
140 st->size = ctx->size; in crc_read()
/PHP-5.4/ext/spl/
H A Dspl_fixedarray.c46 long size; member
80 if (size > 0) { in spl_fixedarray_init()
83 array->size = size; in spl_fixedarray_init()
93 if (size == array->size) { in spl_fixedarray_resize()
105 if (size == 0) { in spl_fixedarray_resize()
118 } else if (size > array->size) { in spl_fixedarray_resize()
120 memset(array->elements + array->size, '\0', sizeof(zval *) * (size - array->size)); in spl_fixedarray_resize()
124 for (i = size; i < array->size; i++) { in spl_fixedarray_resize()
132 array->size = size; in spl_fixedarray_resize()
584 long size = 0; in SPL_METHOD() local
[all …]
/PHP-5.4/ext/standard/tests/array/
H A Darray_chunk_variation7.phpt5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
7 * : Chunks an array into size large chunks
18 $size = 2;
31 var_dump( array_chunk($input_array, $size) );
32 var_dump( array_chunk($input_array, $size, true) );
33 var_dump( array_chunk($input_array, $size, false) );
/PHP-5.4/ext/standard/
H A Dcrypt_blowfish.h22 extern int _crypt_output_magic(const char *setting, char *output, int size);
25 char *output, int size);
29 const char *input, int size, char *output, int output_size);
/PHP-5.4/ext/ftp/
H A Dftp.c927 size = 0; in ftp_put()
941 size++; in ftp_put()
945 size++; in ftp_put()
948 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_put()
1101 int size; in ftp_putcmd() local
1130 if (my_send(ftp, ftp->fd, data, size) != size) { in ftp_putcmd()
1657 size = 0; in ftp_genlist()
1895 size = 0; in ftp_nb_continue_write()
1901 size++; in ftp_nb_continue_write()
1905 size++; in ftp_nb_continue_write()
[all …]
/PHP-5.4/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c118 string->size = SIMPLESTRING_INCR; in simplestring_init_str()
121 string->size = 0; in simplestring_init_str()
198 if(target->len + add_len + 1 > target->size) { in simplestring_addn()
201 int incr = target->size * 2; in simplestring_addn()
207 target->size = target->str ? newsize : 0; in simplestring_addn()
/PHP-5.4/main/
H A Dphp_logos.c31 int size; member
36 …hp_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *data, int size) in php_register_info_logo() argument
43 info_logo.size = size; in php_register_info_logo()
88 PHPWRITE((char*)logo_image->data, logo_image->size); in php_info_logos()

Completed in 52 milliseconds

12345678910>>...23