1--TEST--
2Test stat() function: error conditions
3--SKIPIF--
4<?php
5if (substr(PHP_OS, 0, 3) != 'WIN') {
6    die('skip.. only for Windows');
7}
8?>
9--FILE--
10<?php
11$file_path = __DIR__;
12$arr = array(__FILE__);
13
14echo "\n*** Testing stat() for error conditions ***\n";
15
16var_dump( stat("$file_path/temp.tmp") ); // non existing file
17var_dump( stat("$file_path/temp/") ); // non existing dir
18var_dump( stat(22) ); // scalar argument
19
20echo "Done\n";
21?>
22--EXPECTF--
23*** Testing stat() for error conditions ***
24
25Warning: stat(): stat failed for %s in %s on line %d
26bool(false)
27
28Warning: stat(): stat failed for %s in %s on line %d
29bool(false)
30
31Warning: stat(): stat failed for 22 in %s on line %d
32bool(false)
33Done
34