Home
last modified time | relevance | path

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

12345678

/PHP-5.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-5.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
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 Dlstat_stat_error.phpt2 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 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
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 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.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);
82 -- 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_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 Dlstat_stat_variation11.phpt2 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
54 *** 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
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
53 *** 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
60 *** Testing stat(): on a file with read/write permission ***
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);
70 *** Testing stat(): with creating & deleting subdir/file ***
71 -- 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
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
55 *** Testing stat() for files after being renamed ***
H A Dlstat_stat_variation4.phpt2 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
59 *** Testing stat() for file after using touch() on the file ***
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);
58 *** Testing stat(): writing to a file ***
59 -- Testing stat() on file after data is written in it --
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
59 *** 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
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
60 *** 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
70 *** Testing stat(): on file by truncating it to given size ***
H A Dlstat_stat_variation10.phpt2 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
53 *** Testing stat() on directory after using is_dir() on it ***
/PHP-5.4/ext/odbc/
H A Dbirdstep.c291 RETCODE stat; in PHP_FUNCTION() local
311 if ( stat != SQL_SUCCESS && stat != SQL_SUCCESS_WITH_INFO ) { in PHP_FUNCTION()
353 RETCODE stat; in PHP_FUNCTION() local
365 if ( stat != SQL_SUCCESS && stat != SQL_SUCCESS_WITH_INFO ) { in PHP_FUNCTION()
371 if ( stat != SQL_SUCCESS && stat != SQL_SUCCESS_WITH_INFO ) { in PHP_FUNCTION()
431 RETCODE stat; in PHP_FUNCTION() local
465 RETCODE stat; in PHP_FUNCTION() local
576 RETCODE stat; in PHP_FUNCTION() local
599 RETCODE stat; in PHP_FUNCTION() local
622 RETCODE stat; in PHP_FUNCTION() local
[all …]
/PHP-5.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-5.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 …]
/PHP-5.4/ext/mysql/tests/
H A Dmysql_stat.phpt24 if ((!is_string($stat = mysql_stat($link))) || ('' === $stat))
26 gettype($stat), $stat, mysql_errno($link), mysql_error($link));
28 if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($stat)) {
30 var_inspect($stat);
37 assert(soundex($stat) === soundex($stat_def));

Completed in 44 milliseconds

12345678