Lines Matching refs:stat
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
22 var_dump( stat(dirname(__FILE__), 2) ); //dir, args > expected
24 var_dump( stat("$file_path/temp.tmp") ); // non existing file
25 var_dump( stat("$file_path/temp/") ); // non existing dir
26 var_dump( stat(22) ); // scalar argument
27 var_dump( stat($arr) ); // array argument
32 *** Testing stat() for error conditions ***
34 Warning: stat() expects exactly 1 parameter, 0 given in %s on line %d
37 Warning: stat() expects exactly 1 parameter, 2 given in %s on line %d
40 Warning: stat() expects exactly 1 parameter, 2 given in %s on line %d
43 Warning: stat(): stat failed for %s in %s on line %d
46 Warning: stat(): stat failed for %s in %s on line %d
49 Warning: stat(): stat failed for 22 in %s on line %d
52 Warning: stat() expects parameter 1 to be a valid path, array given in %s on line %d