Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 169) sorted by relevance

1234567

/PHP-8.0/ext/reflection/tests/
H A DReflectionClass_getDefaultProperties_001.phpt80 [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-8.0/ext/standard/tests/file/
H A Dstat_error-win32.phpt2 Test stat() function: error conditions
14 echo "\n*** Testing stat() for error conditions ***\n";
16 var_dump( stat("$file_path/temp.tmp") ); // non existing file
17 var_dump( stat("$file_path/temp/") ); // non existing dir
18 var_dump( stat(22) ); // scalar argument
23 *** Testing stat() for error conditions ***
25 Warning: stat(): stat failed for %s in %s on line %d
28 Warning: stat(): stat failed for %s in %s on line %d
31 Warning: stat(): stat failed for 22 in %s on line %d
H A Dlstat_stat_variation22.phpt2 Test lstat() and stat() functions: usage variations - invalid filenames
15 echo "*** testing stat ***\n";
16 var_dump(stat(NULL));
17 var_dump(stat(false));
18 var_dump(stat(''));
19 var_dump(stat(' '));
20 var_dump(stat('|'));
30 *** testing stat ***
35 Warning: stat(): stat failed for in %s on line %d
38 Warning: stat(): stat failed for | in %s on line %d
H A Dlstat_stat_error.phpt2 Test lstat() and stat() functions: error conditions
10 echo "\n*** Testing stat() for error conditions ***\n";
12 var_dump( stat("$file_path/temp.tmp") ); // non existing file
13 var_dump( stat("$file_path/temp/") ); // non existing dir
14 var_dump( stat(22) ); // scalar argument
27 *** Testing stat() for error conditions ***
29 Warning: stat(): stat failed for %s in %s on line %d
32 Warning: stat(): stat failed for %s in %s on line %d
35 Warning: stat(): stat failed for 22 in %s on line %d
H A Dstat_variation6-win32.phpt28 // checking stat() on file
31 $old_stat = stat($filename);
34 // clear the stat
36 $new_stat = stat($filename);
40 // compare the stat
43 // clear the stat
48 $old_stat = stat($dirname);
51 // clear the stat
53 $new_stat = stat($dirname);
57 // compare the stat
[all …]
H A Dstat_basic-win32-mb.phpt2 Test stat() function: basic functionality
21 // stat of the dir created
22 $dir_stat = stat($dirname);
30 // stat of the file created
31 $file_stat = stat($filename);
35 $new_dir_stat = stat($dirname);
40 echo "*** Testing stat(): validating the values stored in stat ***\n";
41 // Initial stat values
48 // compare the two stat values, initial stat and stat recorded after
56 var_dump( is_array( stat($filename) ) );
[all …]
H A Dstat_basic-win32.phpt2 Test stat() function: basic functionality
21 // stat of the dir created
22 $dir_stat = stat($dirname);
30 // stat of the file created
31 $file_stat = stat($filename);
35 $new_dir_stat = stat($dirname);
40 echo "*** Testing stat(): validating the values stored in stat ***\n";
41 // Initial stat values
48 // compare the two stat values, initial stat and stat recorded after
56 var_dump( is_array( stat($filename) ) );
[all …]
H A Dstat_variation1-win32-mb.phpt2 Test stat() functions: usage variations - effects of rename()
28 echo "-- Testing stat() for files after being renamed --\n";
31 $old_stat = stat($old_filename);
35 $new_stat = stat($new_filename);
37 // compare the self stat
47 echo "-- Testing stat() for directory after being renamed --\n";
50 $old_stat = stat($old_dirname);
54 $new_stat = stat($new_dirname);
75 *** Testing stat(): on file and directory ater renaming them ***
76 -- Testing stat() for files after being renamed --
[all …]
H A Dstat_variation1-win32.phpt2 Test stat() functions: usage variations - effects of rename()
28 echo "-- Testing stat() for files after being renamed --\n";
31 $old_stat = stat($old_filename);
35 $new_stat = stat($new_filename);
37 // compare the self stat
47 echo "-- Testing stat() for directory after being renamed --\n";
50 $old_stat = stat($old_dirname);
54 $new_stat = stat($new_dirname);
75 *** Testing stat(): on file and directory ater renaming them ***
76 -- Testing stat() for files after being renamed --
[all …]
H A Dstat_variation4-win32.phpt2 Test stat() functions: usage variations - effects of is_dir() & is_file()
31 $old_stat = stat($old_dirname);
36 $new_stat = stat($old_dirname);
41 // compare the stat
43 // clear the stat
50 $old_stat = stat($old_filename);
51 // clear the stat
55 $new_stat = stat($old_filename);
59 // compare the stat
61 // clear the stat
[all …]
H A Dlstat_stat_variation11.phpt2 Test lstat() and stat() functions: usage variations - effect of is_file()
20 echo "*** Testing stat() on a file after using is_file() on it ***\n";
21 $old_stat = stat($filename);
22 // clear the stat
26 $new_stat = stat($filename);
30 // compare the stat
32 // clear the stat
43 *** Testing stat() on a file after using is_file() on it ***
H A Dlstat_stat_variation13.phpt2 Test lstat() and stat() functions: usage variations - file opened using w and r mode
9 /* use stat on file created using "w" and "r" mode of fopen */
17 echo "*** Checking stat() on a file opened using read/write mode ***\n";
20 $old_stat = stat($filename);
21 // clear the stat
27 $new_stat = stat($filename);
31 // compare the stat
42 *** Checking stat() on a file opened using read/write mode ***
H A Dlstat_stat_basic.phpt23 // stat of the dir created
24 $dir_stat = stat($dirname);
32 // stat of the file created
33 $file_stat = stat($filename);
37 $new_dir_stat = stat($dirname);
43 // stat of the link created
47 $new_file_stat = stat($filename);
52 echo "*** Testing stat() and lstat() : validating the values stored in stat ***\n";
53 // Initial stat values
62 // compare the two stat values, initial stat and stat recorded after
[all …]
H A Dstat_variation5-win32.phpt2 Test stat() functions: usage variations - file opened in read/write mode
22 echo "\n*** Testing stat(): on a file with read/write permission ***\n";
27 $old_stat = stat($filename);
28 // clear the stat
34 $new_stat = stat($filename);
38 // compare the stat
41 // clear the stat
53 *** Testing stat(): on a file with read/write permission ***
H A Dlstat_stat_variation1.phpt2 Test lstat() and stat() functions: usage variations - effects of rename() on file
14 // renaming a file and check stat
15 echo "*** Testing stat() for files after being renamed ***\n";
19 $old_stat = stat($old_filename);
22 $new_stat = stat($new_filename);
24 // compare the self stat
41 *** Testing stat() for files after being renamed ***
H A Dstat_variation3-win32.phpt2 Test stat() functions: usage variations - effects of creating/deleting the dir/file
21 echo "*** Testing stat(): with creating & deleting subdir/file ***\n";
24 echo "-- Testing stat() on dir after subdir and file is created in it --\n";
26 $old_stat = stat($dirname);
32 $new_stat = stat($dirname);
47 echo "-- Testing stat() for comparing stats after the deletion of subdir and file --\n";
48 $new_stat1 = stat($dirname);
63 *** Testing stat(): with creating & deleting subdir/file ***
64 -- Testing stat() on dir after subdir and file is created in it --
68 -- Testing stat() for comparing stats after the deletion of subdir and file --
H A Dlstat_stat_variation4.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on file
21 // touch a file check stat, there should be difference in atime
22 echo "*** Testing stat() for file after using touch() on the file ***\n";
23 $old_stat = stat($file_name);
28 $new_stat = stat($file_name);
34 // compare the stat
48 *** Testing stat() for file after using touch() on the file ***
H A Dcopy_variation18.phpt2 Test copy() function: usage variations - stat after copy
5 /* Test copy(): checking stat of file before and after after copy operation */
11 echo "*** Test copy() function: stat of file before and after copy ***\n";
21 $stat_before_copy = stat($src_file_name);
27 $stat_after_copy = stat($src_file_name);
30 // compare all stat fields except access time
46 *** Test copy() function: stat of file before and after copy ***
H A Dlstat_stat_variation21.phpt2 Test lstat() and stat() functions: usage variations - effects of truncate()
23 /* ftruncate the current file and check stat() on the file */
25 echo "*** Testing stat() on file by truncating it to given size ***\n";
26 $old_stat = stat($filename);
35 $new_stat = stat($filename);
39 // compare the stat
51 *** Testing stat() on file by truncating it to given size ***
H A Dlstat_stat_variation5.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on dir
24 // touch a directory and check stat, there should be difference in atime
25 echo "*** Testing stat() for directory after using touch() on the directory ***\n";
26 $old_stat = stat($dir_name);
31 $new_stat = stat($dir_name);
37 // compare the stat
51 *** Testing stat() for directory after using touch() on the directory ***
H A Dstat_variation2-win32.phpt2 Test stat() functions: usage variations - effects of writing to file
24 echo "*** Testing stat(): writing to a file ***\n";
27 echo "-- Testing stat() on file after data is written in it --\n";
28 $old_stat = stat($filename);
34 $new_stat = stat($filename);
52 *** Testing stat(): writing to a file ***
53 -- Testing stat() on file after data is written in it --
/PHP-8.0/tests/security/
H A Dopen_basedir_stat.phpt8 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-8.0/ext/phar/tests/tar/files/
H A Dcorrupt_tarmaker.php.inc44 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 Dtarmaker.php.inc41 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 …]
/PHP-8.0/Zend/tests/
H A Dexception_during_include_stat.phpt8 throw new Exception('stat failed');
38 stat failed
39 stat failed
40 stat failed
41 stat failed

Completed in 33 milliseconds

1234567