/PHP-8.1/ext/standard/tests/file/ |
H A D | filesize_variation1.phpt | 2 Test filesize() function: usage variations - size of files 15 echo "*** Checking filesize() with different size of files ***\n"; 16 for($size = 1; $size <10000; $size = $size+1000) 18 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation"); 28 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation2-win32.phpt | 2 Test filesize() function: usage variations - size of dir/subdir 15 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 16 echo "-- Creating a base dir, and checking its size --\n"; 21 echo "-- Creating a file inside base dir, and checking dir & file size --\n"; 31 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 42 // size of base dir 45 // size of subdir 48 // size of file inside subdir 64 *** Testing size of a dir, sub-dir and file with filesize() *** 65 -- Creating a base dir, and checking its size -- [all …]
|
H A D | filesize_variation2.phpt | 2 Test filesize() function: usage variations - size of dir/subdir 15 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 16 echo "-- Creating a base dir, and checking its size --\n"; 21 echo "-- Creating a file inside base dir, and checking dir & file size --\n"; 31 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 42 // size of base dir 45 // size of subdir 48 // size of file inside subdir 64 *** Testing size of a dir, sub-dir and file with filesize() *** 65 -- Creating a base dir, and checking its size -- [all …]
|
H A D | filesize_variation3.phpt | 2 Test filesize() function: usage variations - file size after truncate 10 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 14 // truncate the file created earlier in subdir, the size of the file is 12000bytes 15 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes, 16 // until -1200bytes size 17 for($size = filesize($filename); $size>=-1200; $size-=1200) { 20 var_dump( ftruncate($file_handle, $size) ); 60 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
|
H A D | ftruncate_variation1-win32-mb.phpt | 48 /* truncate it to size 0 */ 71 -- Testing ftruncate(): truncate file to size = 0 -- 79 -- Testing ftruncate(): truncate file to size = 0 -- 87 -- Testing ftruncate(): truncate file to size = 0 -- 95 -- Testing ftruncate(): truncate file to size = 0 -- 103 -- Testing ftruncate(): truncate file to size = 0 -- 111 -- Testing ftruncate(): truncate file to size = 0 -- 119 -- Testing ftruncate(): truncate file to size = 0 -- 127 -- Testing ftruncate(): truncate file to size = 0 -- 135 -- Testing ftruncate(): truncate file to size = 0 -- [all …]
|
H A D | ftruncate_variation1-win32.phpt | 48 /* truncate it to size 0 */ 71 -- Testing ftruncate(): truncate file to size = 0 -- 79 -- Testing ftruncate(): truncate file to size = 0 -- 87 -- Testing ftruncate(): truncate file to size = 0 -- 95 -- Testing ftruncate(): truncate file to size = 0 -- 103 -- Testing ftruncate(): truncate file to size = 0 -- 111 -- Testing ftruncate(): truncate file to size = 0 -- 119 -- Testing ftruncate(): truncate file to size = 0 -- 127 -- Testing ftruncate(): truncate file to size = 0 -- 135 -- Testing ftruncate(): truncate file to size = 0 -- [all …]
|
H A D | ftruncate_variation1.phpt | 48 /* truncate it to size 0 */ 71 -- Testing ftruncate(): truncate file to size = 0 -- 79 -- Testing ftruncate(): truncate file to size = 0 -- 87 -- Testing ftruncate(): truncate file to size = 0 -- 95 -- Testing ftruncate(): truncate file to size = 0 -- 103 -- Testing ftruncate(): truncate file to size = 0 -- 111 -- Testing ftruncate(): truncate file to size = 0 -- 119 -- Testing ftruncate(): truncate file to size = 0 -- 127 -- Testing ftruncate(): truncate file to size = 0 -- 135 -- Testing ftruncate(): truncate file to size = 0 -- [all …]
|
H A D | symlink_link_linkinfo_is_link_variation3.phpt | 29 // storing size of symlink in a local variable 47 // checking that size of symlink remains same 49 echo "\nSoft link size remains same \n"; 71 echo "\nSoft link size remains same \n"; 93 echo "\nSoft link size remains same \n"; 111 -- Check size of soft link and file -- 115 Soft link size remains same 120 -- Check size of soft link and file -- 124 Soft link size remains same 129 -- Check size of soft link and file -- [all …]
|
H A D | ftruncate_variation5-win32.phpt | 2 Test ftruncate() function : usage variations - truncate file to bigger size 49 /* try to truncate it to size bigger then current */ 58 clearstatcache(); // clear previous size value in cache 59 var_dump( filesize($filename) ); // new file size = actual size, no change 73 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 81 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 89 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 97 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 105 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 113 -- 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 49 /* try to truncate it to size bigger then current */ 58 clearstatcache(); // clear previous size value in cache 59 var_dump( filesize($filename) ); // new file size = actual size, no change 73 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 81 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 89 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 97 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 105 -- Testing ftruncate(): try truncating file to size, bigger than existing -- 113 -- Testing ftruncate(): try truncating file to size, bigger than existing -- [all …]
|
H A D | ftruncate_variation3-win32.phpt | 2 Test ftruncate() function : usage variations - truncate file to half size 49 /* truncate it to half of its current size */ 57 clearstatcache(); // clear previous size value in cache 58 var_dump( filesize($filename) ); // new file size = $new_size 71 -- Testing ftruncate(): truncate file to half of its current size -- 79 -- Testing ftruncate(): truncate file to half of its current size -- 87 -- Testing ftruncate(): truncate file to half of its current size -- 95 -- Testing ftruncate(): truncate file to half of its current size -- 103 -- Testing ftruncate(): truncate file to half of its current size -- 111 -- Testing ftruncate(): truncate file to half of its current size -- [all …]
|
H A D | ftruncate_variation3.phpt | 2 Test ftruncate() function : usage variations - truncate file to half size 49 /* truncate it to half of its current size */ 57 clearstatcache(); // clear previous size value in cache 58 var_dump( filesize($filename) ); // new file size = $new_size 71 -- Testing ftruncate(): truncate file to half of its current size -- 79 -- Testing ftruncate(): truncate file to half of its current size -- 87 -- Testing ftruncate(): truncate file to half of its current size -- 95 -- Testing ftruncate(): truncate file to half of its current size -- 103 -- Testing ftruncate(): truncate file to half of its current size -- 111 -- Testing ftruncate(): truncate file to half of its current size -- [all …]
|
/PHP-8.1/ext/fileinfo/tests/ |
H A D | bug78987.phpt | 23 for($size = $minSize; $size <= $maxSize; $size *= 2) { 24 $content = str_repeat('0', $size); 29 printf("%-8d => %s\n", $size, $m <= $map[$size] ? "ok" : "$m");
|
/PHP-8.1/ext/opcache/ |
H A D | zend_shared_alloc.h | 77 size_t size; member 133 void *zend_shared_alloc(size_t size); 136 void *zend_shared_memdup_get_put_free(void *source, size_t size); 137 void *zend_shared_memdup_put_free(void *source, size_t size); 138 void *zend_shared_memdup_free(void *source, size_t size); 139 void *zend_shared_memdup_get_put(void *source, size_t size); 140 void *zend_shared_memdup_put(void *source, size_t size); 141 void *zend_shared_memdup(void *source, size_t size); 143 int zend_shared_memdup_size(void *p, size_t size); 159 #define ZEND_ALIGNED_SIZE(size) \ argument [all …]
|
/PHP-8.1/main/ |
H A D | alloca.c | 152 alloca (size) in alloca() argument 153 size_t size; in alloca() 193 if (size == 0) 341 long *block, size; in i00afunc() local 368 size = trailer->this_size; in i00afunc() 438 size = ssptr->sssize; in i00afunc() 440 this_segment = stkl - size; in i00afunc() 455 size = ssptr->sssize; in i00afunc() 457 this_segment = stkl - size; in i00afunc() 474 size = ssptr->sssize; in i00afunc() [all …]
|
/PHP-8.1/Zend/ |
H A D | zend_multiply.h | 166 "rm"(size)); in zend_safe_address() 171 "rm"(size), in zend_safe_address() 201 "rm"(size)); in zend_safe_address() 208 "rm"(size), in zend_safe_address() 230 "r"(size), in zend_safe_address() 252 "r"(size), in zend_safe_address() 276 "r"(size), in zend_safe_address() 305 size_t res = nmemb * size + offset; in zend_safe_address() 306 double _d = (double)nmemb * (double)size + (double)offset; in zend_safe_address() 321 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_address_guarded() [all …]
|
/PHP-8.1/ext/mysqlnd/ |
H A D | mysqlnd_alloc.c | 75 ret = emalloc_rel(REAL_SIZE(size)); in _mysqlnd_emalloc() 80 *(size_t *) ret = size; in _mysqlnd_emalloc() 94 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc() 101 *(size_t *) ret = size; in _mysqlnd_pemalloc() 117 ret = ecalloc_rel(nmemb, REAL_SIZE(size)); in _mysqlnd_ecalloc() 122 *(size_t *) ret = size; in _mysqlnd_ecalloc() 143 *(size_t *) ret = size; in _mysqlnd_pecalloc() 368 return emalloc_rel(size); in mysqlnd_zend_mm_emalloc() 376 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc() 384 return ecalloc_rel(nmemb, size); in mysqlnd_zend_mm_ecalloc() [all …]
|
/PHP-8.1/ext/gd/tests/ |
H A D | bug73291.phpt | 20 printf("size: %d*%d\n", imagesx($dst), imagesy($dst)); 22 echo "cropped to zero size\n"; 28 size: 247*247 29 size: 237*237 30 size: 229*229 31 size: 175*175
|
/PHP-8.1/ext/pcre/pcre2lib/ |
H A D | pcre2_substring.c | 125 PCRE2_SIZE size; in pcre2_substring_copy_bynumber() local 130 CU2BYTES(size)); in pcre2_substring_copy_bynumber() 131 buffer[size] = 0; in pcre2_substring_copy_bynumber() 132 *sizeptr = size; in pcre2_substring_copy_bynumber() 213 PCRE2_SIZE size; in pcre2_substring_get_bynumber() local 222 CU2BYTES(size)); in pcre2_substring_get_bynumber() 223 yield[size] = 0; in pcre2_substring_get_bynumber() 225 *sizeptr = size; in pcre2_substring_get_bynumber() 376 PCRE2_SIZE size; in pcre2_substring_list_get() local 422 if (size != 0) memcpy(sp, match_data->subject + ovector[i], CU2BYTES(size)); in pcre2_substring_list_get() [all …]
|
/PHP-8.1/ext/opcache/jit/ |
H A D | zend_jit_perf_dump.c | 74 #define ALIGN8(size) (((size) + 7) & ~7) argument 75 #define PADDING8(size) (ALIGN8(size) - (size)) argument 80 uint32_t size; member 90 uint32_t size; member 188 jit_hdr.size = sizeof(jit_hdr); in zend_jit_perf_jitdump_open() 202 rec.size = sizeof(rec); in zend_jit_perf_jitdump_close() 242 rec.hdr.size = sizeof(rec) + len + 1 + size; in zend_jit_perf_jitdump_register() 248 rec.code_size = (uint64_t)size; in zend_jit_perf_jitdump_register() 253 zend_quiet_write(jitdump_fd, start, size); in zend_jit_perf_jitdump_register() 257 static void zend_jit_perf_map_register(const char *name, void *start, size_t size) in zend_jit_perf_map_register() argument [all …]
|
/PHP-8.1/ext/spl/tests/ |
H A D | bug81992b.phpt | 14 echo "Destroyed, size is now still ", $this->obj->getSize(), "\n"; 38 echo "--- Smaller size test ---\n"; 40 echo "--- Equal size test ---\n"; 42 echo "--- Larger size test ---\n"; 46 --- Smaller size test --- 48 Destroyed, size is now still 2 53 --- Equal size test --- 55 Destroyed, size is now still 2 60 --- Larger size test --- 62 Destroyed, size is now still 2
|
/PHP-8.1/ext/shmop/ |
H A D | shmop.c | 67 zend_long size; member 136 zend_long key, mode, size; in PHP_FUNCTION() local 163 shmop->size = size; in PHP_FUNCTION() 167 shmop->size = size; in PHP_FUNCTION() 180 if (shmop->shmflg & IPC_CREAT && shmop->size < 1) { in PHP_FUNCTION() 208 shmop->size = shm.shm_segsz; in PHP_FUNCTION() 233 if (start < 0 || start > shmop->size) { in PHP_FUNCTION() 244 bytes = count ? count : shmop->size - start; in PHP_FUNCTION() 275 RETURN_LONG(shmop->size); in PHP_FUNCTION() 299 if (offset < 0 || offset > shmop->size) { in PHP_FUNCTION() [all …]
|
/PHP-8.1/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
|
/PHP-8.1/ext/opcache/jit/libudis86/ |
H A D | decode.c | 385 op->size = 32; in decode_a() 391 op->size = 48; in decode_a() 432 int size) in decode_reg() argument 435 size = resolve_operand_size(u, size); in decode_reg() 462 opr->size = size; in decode_reg() 474 op->size = resolve_operand_size(u, size); in decode_imm() 495 switch (size) { in decode_mem_disp() 568 op->size = resolve_operand_size(u, size); in decode_modrm_rm() 690 opr->size = resolve_operand_size(u, size); in decode_moffset() 743 Mx_reg_size(size) : Mx_mem_size(size)); in decode_operand() [all …]
|
/PHP-8.1/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
|