/PHP-7.3/ext/reflection/tests/ |
H A D | ReflectionClass_getDefaultProperties_001.phpt | 80 [statPubC] => stat pubC in A 83 [statPubA] => stat pubA in A 92 [statPubC] => stat pubC in A 95 [statPubA] => stat pubA in A 110 [statPubC] => stat pubC in B 113 [statPubB] => stat pubB in B 116 [statPubA] => stat pubA in A 124 [statPubC] => stat pubC in B 127 [statPubB] => stat pubB in B 130 [statPubA] => stat pubA in A [all …]
|
/PHP-7.3/ext/standard/tests/file/ |
H A D | stat_error-win32.phpt | 2 Test stat() function: error conditions 12 Prototype: array stat ( string $filename ); 19 echo "\n*** Testing stat() for error conditions ***\n"; 20 var_dump( stat() ); // args < expected 21 var_dump( stat(__FILE__, 2) ); // file, args > expected 26 var_dump( stat(22) ); // scalar argument 27 var_dump( stat($arr) ); // array argument 32 *** Testing stat() for error conditions *** 43 Warning: stat(): stat failed for %s in %s on line %d 46 Warning: stat(): stat failed for %s in %s on line %d [all …]
|
H A D | lstat_stat_error.phpt | 2 Test lstat() and stat() functions: error conditions 14 Prototype: array stat ( string $filename ); 27 echo "\n*** Testing stat() for error conditions ***\n"; 28 var_dump( stat() ); // args < expected 29 var_dump( stat(__FILE__, 2) ); // file, args > expected 34 var_dump( stat(22) ); // scalar argument 35 var_dump( stat($arr) ); // array argument 57 *** Testing stat() for error conditions *** 68 Warning: stat(): stat failed for %s in %s on line %d 71 Warning: stat(): stat failed for %s in %s on line %d [all …]
|
H A D | stat_variation6-win32.phpt | 33 // checking stat() on file 35 $old_stat = stat($filename); 37 // clear the stat 40 $new_stat = stat($filename); 44 // compare the stat 47 // clear the stat 52 $old_stat = stat($dirname); 54 // clear the stat 57 $new_stat = stat($dirname); 61 // compare the stat [all …]
|
H A D | lstat_stat_variation22.phpt | 2 Test lstat() and stat() functions: usage variations - invalid filenames 15 Prototype: array stat ( string $filename ); 18 echo "*** testing stat ***\n"; 19 var_dump(stat(NULL)); 20 var_dump(stat(false)); 21 var_dump(stat('')); 22 var_dump(stat(' ')); 23 var_dump(stat('|')); 34 *** testing stat *** 39 Warning: stat(): stat failed for in %s on line %d [all …]
|
H A D | stat_basic-win32-mb.phpt | 2 Test stat() function: basic functionality 12 Prototype: array stat ( string $filename ); 26 // stat of the dir created 27 $dir_stat = stat($dirname); 35 // stat of the file created 36 $file_stat = stat($filename); 40 $new_dir_stat = stat($dirname); 45 echo "*** Testing stat(): validating the values stored in stat ***\n"; 46 // Initial stat values 53 // compare the two stat values, initial stat and stat recorded after [all …]
|
H A D | stat_basic-win32.phpt | 2 Test stat() function: basic functionality 12 Prototype: array stat ( string $filename ); 26 // stat of the dir created 27 $dir_stat = stat($dirname); 35 // stat of the file created 36 $file_stat = stat($filename); 40 $new_dir_stat = stat($dirname); 45 echo "*** Testing stat(): validating the values stored in stat ***\n"; 46 // Initial stat values 53 // compare the two stat values, initial stat and stat recorded after [all …]
|
H A D | stat_variation1-win32-mb.phpt | 2 Test stat() functions: usage variations - effects of rename() 13 * Prototype: array stat ( string $filename ); 33 echo "-- Testing stat() for files after being renamed --\n"; 36 $old_stat = stat($old_filename); 40 $new_stat = stat($new_filename); 42 // compare the self stat 52 echo "-- Testing stat() for directory after being renamed --\n"; 55 $old_stat = stat($old_dirname); 59 $new_stat = stat($new_dirname); 81 -- Testing stat() for files after being renamed -- [all …]
|
H A D | stat_variation1-win32.phpt | 2 Test stat() functions: usage variations - effects of rename() 13 * Prototype: array stat ( string $filename ); 33 echo "-- Testing stat() for files after being renamed --\n"; 36 $old_stat = stat($old_filename); 40 $new_stat = stat($new_filename); 42 // compare the self stat 52 echo "-- Testing stat() for directory after being renamed --\n"; 55 $old_stat = stat($old_dirname); 59 $new_stat = stat($new_dirname); 81 -- Testing stat() for files after being renamed -- [all …]
|
H A D | stat_variation4-win32.phpt | 2 Test stat() functions: usage variations - effects of is_dir() & is_file() 13 * Prototype: array stat ( string $filename ); 36 $old_stat = stat($old_dirname); 41 $new_stat = stat($old_dirname); 46 // compare the stat 48 // clear the stat 55 $old_stat = stat($old_filename); 56 // clear the stat 60 $new_stat = stat($old_filename); 64 // compare the stat [all …]
|
H A D | stat_variation5-win32.phpt | 2 Test stat() functions: usage variations - file opened in read/write mode 13 * Prototype: array stat ( string $filename ); 27 echo "\n*** Testing stat(): on a file with read/write permission ***\n"; 32 $old_stat = stat($filename); 33 // clear the stat 39 $new_stat = stat($filename); 43 // compare the stat 46 // clear the stat 58 *** Testing stat(): on a file with read/write permission ***
|
H A D | lstat_stat_variation11.phpt | 2 Test lstat() and stat() functions: usage variations - effect of is_file() 15 Prototype: array stat ( string $filename ); 30 echo "*** Testing stat() on a file after using is_file() on it ***\n"; 31 $old_stat = stat($filename); 32 // clear the stat 36 $new_stat = stat($filename); 40 // compare the stat 42 // clear the stat 53 *** Testing stat() on a file after using is_file() on it ***
|
H A D | lstat_stat_variation13.phpt | 2 Test lstat() and stat() functions: usage variations - file opened using w and r mode 15 Prototype: array stat ( string $filename ); 19 /* use stat on file created using "w" and "r" mode of fopen */ 27 echo "*** Checking stat() on a file opened using read/write mode ***\n"; 30 $old_stat = stat($filename); 31 // clear the stat 37 $new_stat = stat($filename); 41 // compare the stat 52 *** Checking stat() on a file opened using read/write mode ***
|
H A D | lstat_stat_basic.phpt | 30 // stat of the dir created 31 $dir_stat = stat($dirname); 39 // stat of the file created 40 $file_stat = stat($filename); 44 $new_dir_stat = stat($dirname); 50 // stat of the link created 54 $new_file_stat = stat($filename); 59 echo "*** Testing stat() and lstat() : validating the values stored in stat ***\n"; 60 // Initial stat values 69 // compare the two stat values, initial stat and stat recorded after [all …]
|
H A D | stat_variation3-win32.phpt | 2 Test stat() functions: usage variations - effects of creating/deleting the dir/file 13 * Prototype: array stat ( string $filename ); 26 echo "*** Testing stat(): with creating & deleting subdir/file ***\n"; 29 echo "-- Testing stat() on dir after subdir and file is created in it --\n"; 31 $old_stat = stat($dirname); 37 $new_stat = stat($dirname); 52 echo "-- Testing stat() for comparing stats after the deletion of subdir and file --\n"; 53 $new_stat1 = stat($dirname); 68 *** Testing stat(): with creating & deleting subdir/file *** 69 -- Testing stat() on dir after subdir and file is created in it -- [all …]
|
H A D | stat_variation2-win32.phpt | 2 Test stat() functions: usage variations - effects of writing to file 13 * Prototype: array stat ( string $filename ); 29 echo "*** Testing stat(): writing to a file ***\n"; 32 echo "-- Testing stat() on file after data is written in it --\n"; 33 $old_stat = stat($filename); 39 $new_stat = stat($filename); 57 *** Testing stat(): writing to a file *** 58 -- Testing stat() on file after data is written in it --
|
H A D | lstat_stat_variation1.phpt | 2 Test lstat() and stat() functions: usage variations - effects of rename() on file 14 Prototype: array stat ( string $filename ); 27 // renaming a file and check stat 28 echo "*** Testing stat() for files after being renamed ***\n"; 32 $old_stat = stat($old_filename); 35 $new_stat = stat($new_filename); 37 // compare the self stat 54 *** Testing stat() for files after being renamed ***
|
H A D | lstat_stat_variation4.phpt | 2 Test lstat() and stat() functions: usage variations - effects of touch() on file 15 Prototype: array stat ( string $filename ); 31 // touch a file check stat, there should be difference in atime 32 echo "*** Testing stat() for file after using touch() on the file ***\n"; 33 $old_stat = stat($file_name); 38 $new_stat = stat($file_name); 44 // compare the stat 58 *** Testing stat() for file after using touch() on the file ***
|
H A D | stat_variation8-win32.phpt | 2 Test stat() functions: usage variations - effects of truncate() 13 * Prototype: array stat ( string $filename ); 31 echo "\n*** Testing stat(): on file by truncating it to given size ***\n"; 38 $old_stat = stat($filename); 48 $new_stat = stat($filename); 54 // compare the stat 58 // clear the stat 69 *** Testing stat(): on file by truncating it to given size ***
|
H A D | lstat_stat_variation21.phpt | 2 Test lstat() and stat() functions: usage variations - effects of truncate() 15 Prototype: array stat ( string $filename ); 30 /* ftruncate the current file and check stat() on the file */ 32 echo "*** Testing stat() on file by truncating it to given size ***\n"; 33 $old_stat = stat($filename); 42 $new_stat = stat($filename); 46 // compare the stat 58 *** Testing stat() on file by truncating it to given size ***
|
H A D | lstat_stat_variation5.phpt | 2 Test lstat() and stat() functions: usage variations - effects of touch() on dir 16 Prototype: array stat ( string $filename ); 32 // touch a directory and check stat, there should be difference in atime 33 echo "*** Testing stat() for directory after using touch() on the directory ***\n"; 34 $old_stat = stat($dir_name); 39 $new_stat = stat($dir_name); 45 // compare the stat 59 *** Testing stat() for directory after using touch() on the directory ***
|
H A D | lstat_stat_variation10.phpt | 2 Test lstat() and stat() functions: usage variations - effects of is_dir() 15 Prototype: array stat ( string $filename ); 30 echo "*** Testing stat() on directory after using is_dir() on it ***\n"; 31 $old_stat = stat($dirname); 36 $new_stat = stat($dirname); 41 // compare the stat 52 *** Testing stat() on directory after using is_dir() on it ***
|
/PHP-7.3/tests/security/ |
H A D | open_basedir_stat.phpt | 8 test_open_basedir_array("stat"); 16 *** Testing open_basedir configuration [stat] *** 23 Warning: stat(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s)… 26 Warning: stat(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed… 29 Warning: stat(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.… 32 Warning: stat(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (… 35 Warning: stat(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.)… 38 Warning: stat(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(… 41 Warning: stat(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the al… 47 Warning: stat(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s)… [all …]
|
/PHP-7.3/ext/phar/tests/tar/files/ |
H A D | corrupt_tarmaker.php.inc | 44 if ($stat === null) { 46 $stat = fstat($fileOrStream); 48 $stat = array( 62 $stat['size'] = 0; 64 } else if ($stat['mode'] & 0xA000) { 67 $stat['size'] = 0; 69 } else if ($stat['mode'] & 0x4000) { 71 } else if ($stat['mode'] & 0x8000) { 89 decoct($stat['mode']), 90 sprintf('%6s ',decoct($stat['uid'])), [all …]
|
H A D | tarmaker.php.inc | 41 function addFile($path, $fileOrStream, $stat = null) 44 if ($stat === null) { 46 $stat = fstat($fileOrStream); 48 $stat = array( 59 if ($stat['mode'] & 0x4000) { 61 } else if ($stat['mode'] & 0x8000) { 63 } else if ($stat['mode'] & 0xA000) { 82 decoct($stat['mode']), 83 sprintf('%6s ',decoct($stat['uid'])), 84 sprintf('%6s ',decoct($stat['gid'])), [all …]
|