Home
last modified time | relevance | path

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

1234567

/PHP-7.4/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-7.4/ext/standard/tests/file/
H A Dstat_error-win32.phpt2 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
22 var_dump( stat(__DIR__, 2) ); //dir, 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 Dlstat_stat_error.phpt2 Test lstat() and stat() functions: error conditions
8 Prototype: array stat ( string $filename );
21 echo "\n*** Testing stat() for error conditions ***\n";
22 var_dump( stat() ); // args < expected
24 var_dump( stat(__DIR__, 2) ); //dir, args > expected
28 var_dump( stat(22) ); // scalar argument
29 var_dump( stat($arr) ); // array argument
51 *** Testing stat() for error conditions ***
62 Warning: stat(): stat failed for %s in %s on line %d
65 Warning: stat(): stat failed for %s in %s on line %d
[all …]
H A Dstat_variation6-win32.phpt33 // 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 Dlstat_stat_variation22.phpt2 Test lstat() and stat() functions: usage variations - invalid filenames
18 Prototype: array stat ( string $filename );
21 echo "*** testing stat ***\n";
22 var_dump(stat(NULL));
23 var_dump(stat(false));
24 var_dump(stat(''));
25 var_dump(stat(' '));
26 var_dump(stat('|'));
36 *** testing stat ***
41 Warning: stat(): stat failed for in %s on line %d
[all …]
H A Dstat_basic-win32-mb.phpt2 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 Dstat_basic-win32.phpt2 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 Dstat_variation1-win32-mb.phpt2 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 Dstat_variation1-win32.phpt2 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 Dstat_variation4-win32.phpt2 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 Dlstat_stat_variation11.phpt2 Test lstat() and stat() functions: usage variations - effect of is_file()
12 Prototype: array stat ( string $filename );
27 echo "*** Testing stat() on a file after using is_file() on it ***\n";
28 $old_stat = stat($filename);
29 // clear the stat
33 $new_stat = stat($filename);
37 // compare the stat
39 // clear the stat
50 *** 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
12 Prototype: array stat ( string $filename );
16 /* use stat on file created using "w" and "r" mode of fopen */
24 echo "*** Checking stat() on a file opened using read/write mode ***\n";
27 $old_stat = stat($filename);
28 // clear the stat
34 $new_stat = stat($filename);
38 // compare the stat
49 *** Checking stat() on a file opened using read/write mode ***
H A Dstat_variation5-win32.phpt2 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 Dlstat_stat_basic.phpt30 // 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 Dstat_variation3-win32.phpt2 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 Dlstat_stat_variation1.phpt2 Test lstat() and stat() functions: usage variations - effects of rename() on file
8 Prototype: array stat ( string $filename );
21 // renaming a file and check stat
22 echo "*** Testing stat() for files after being renamed ***\n";
26 $old_stat = stat($old_filename);
29 $new_stat = stat($new_filename);
31 // compare the self stat
48 *** Testing stat() for files after being renamed ***
H A Dstat_variation2-win32.phpt2 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 Dlstat_stat_variation4.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on file
12 Prototype: array stat ( string $filename );
28 // touch a file check stat, there should be difference in atime
29 echo "*** Testing stat() for file after using touch() on the file ***\n";
30 $old_stat = stat($file_name);
35 $new_stat = stat($file_name);
41 // compare the stat
55 *** Testing stat() for file after using touch() on the file ***
H A Dlstat_stat_variation18.phpt2 Test lstat() and stat() functions: usage variations - dir/file name stored in object
8 Prototype: array stat ( string $filename );
38 echo "\n-- Testing stat() on filename stored inside an object --\n";
39 // dump the stat returned value
40 var_dump( stat($file_name->var_name) );
42 echo "\n-- Testing stat() on directory name stored inside an object --\n";
43 // dump the stat returned value
44 var_dump( stat($dir_name->var_name) );
55 *** Testing stat() with filename & directory name stored inside an object ***
57 -- Testing stat() on filename stored inside an object --
[all …]
H A Dlstat_stat_variation21.phpt2 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 Dlstat_stat_variation5.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on dir
15 Prototype: array stat ( string $filename );
31 // touch a directory and check stat, there should be difference in atime
32 echo "*** Testing stat() for directory after using touch() on the directory ***\n";
33 $old_stat = stat($dir_name);
38 $new_stat = stat($dir_name);
44 // compare the stat
58 *** Testing stat() for directory after using touch() on the directory ***
H A Dstat_variation8-win32.phpt2 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 ***
/PHP-7.4/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-7.4/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 …]

Completed in 112 milliseconds

1234567