/PHP-5.4/ext/standard/tests/file/ |
H A D | ftruncate_variation4.phpt | 2 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 D | ftruncate_variation4-win32.phpt | 2 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 D | ftruncate_variation5-win32.phpt | 2 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 D | ftruncate_variation5.phpt | 2 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 D | filesize_variation3-win32.phpt | 2 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 D | filesize_variation3.phpt | 2 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 D | symlink_link_linkinfo_is_link_variation3.phpt | 41 // 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 D | ftruncate_variation3.phpt | 2 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 D | ftruncate_variation3-win32.phpt | 2 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 D | mysqlnd_alloc.c | 97 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 D | tsrm_config_common.h | 58 # 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 D | reggnu.c | 44 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 D | regposerr.c | 66 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 D | gdhelpers.h | 15 #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 D | gd_webp.c | 37 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 D | shmop.c | 53 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 D | zend_static_allocator.c | 31 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 D | intl_common.h | 31 # 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 D | zip_source_crc.c | 45 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 D | spl_fixedarray.c | 46 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 D | array_chunk_variation7.phpt | 5 /* 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 D | crypt_blowfish.h | 22 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 D | ftp.c | 927 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 D | simplestring.c | 118 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 D | php_logos.c | 31 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()
|