Home
last modified time | relevance | path

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

12345678910>>...24

/PHP-5.5/ext/standard/tests/file/
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 …]
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.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 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 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-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 …]
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 …]
/PHP-5.5/ext/standard/
H A Dformatted_print.c62 if ((*pos + 1) >= *size) { in php_sprintf_appendchar()
63 *size <<= 1; in php_sprintf_appendchar()
65 *buffer = erealloc(*buffer, *size); in php_sprintf_appendchar()
100 if (req_size > *size) { in php_sprintf_appendstring()
101 while (req_size > *size) { in php_sprintf_appendstring()
102 if(*size > INT_MAX/2) { in php_sprintf_appendstring()
105 *size <<= 1; in php_sprintf_appendstring()
108 *buffer = erealloc(*buffer, *size); in php_sprintf_appendstring()
211 int *size, double number, in php_sprintf_appenddouble() argument
436 result = emalloc(size); in php_formatted_print()
[all …]
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.5/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.5/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()
71 size_t size = 0, n; in gdImageCreateFromWebpCtx() local
75 temp = gdRealloc(filedata, size+GD_WEBP_ALLOC_STEP); in gdImageCreateFromWebpCtx()
78 read = temp + size; in gdImageCreateFromWebpCtx()
90 size += n; in gdImageCreateFromWebpCtx()
94 ret = WebPDecode(filedata, size, &Y, &U, &V, &width, &height); in gdImageCreateFromWebpCtx()
122 void * gdImageWebpPtr (gdImagePtr im, int *size) in gdImageWebpPtr() argument
127 rv = gdDPExtractData(out, size); in gdImageWebpPtr()
133 void * gdImageWebpPtrEx (gdImagePtr im, int *size, int quantization) in gdImageWebpPtrEx() argument
[all …]
/PHP-5.5/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.5/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.c73 size_t size) in regerror() argument
93 if (buf != NULL && size > 0) { in regerror()
94 strncpy(buf, s, size - 1); in regerror()
95 buf[size - 1] = '\0'; in regerror()
/PHP-5.5/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.5/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.5/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.5/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.5/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.5/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.c118 string->size = SIMPLESTRING_INCR; in simplestring_init_str()
121 string->size = 0; in simplestring_init_str()
197 size_t newsize = target->size, incr = 0; in simplestring_addn()
208 if(target->len + add_len + 1 > target->size) { in simplestring_addn()
211 incr = target->size * 2; in simplestring_addn()
223 target->size = target->str ? newsize : 0; in simplestring_addn()
/PHP-5.5/ext/ftp/
H A Dftp.c925 size = 0; in ftp_put()
939 size++; in ftp_put()
943 size++; in ftp_put()
946 if (size && my_send(ftp, data->fd, data->buf, size) != size) { in ftp_put()
1099 int size; in ftp_putcmd() local
1128 if (my_send(ftp, ftp->fd, data, size) != size) { in ftp_putcmd()
1652 size = 0; in ftp_genlist()
1890 size = 0; in ftp_nb_continue_write()
1896 size++; in ftp_nb_continue_write()
1900 size++; in ftp_nb_continue_write()
[all …]
/PHP-5.5/ext/opcache/
H A Dzend_shared_alloc.h73 size_t size; member
124 void *zend_shared_alloc(size_t size);
127 void *_zend_shared_memdup(void *p, size_t size, zend_bool free_source TSRMLS_DC);
128 int zend_shared_memdup_size(void *p, size_t size);
142 #define ZEND_ALIGNED_SIZE(size) \ argument
143 ((size + PLATFORM_ALIGNMENT - 1) & ~(PLATFORM_ALIGNMENT - 1))

Completed in 57 milliseconds

12345678910>>...24