1--TEST--
2Test file() function : error conditions
3--FILE--
4<?php
5$file_path = __DIR__;
6echo "\n*** Testing error conditions ***\n";
7$file_handle = fopen($file_path."/file.tmp", "w");
8
9$filename = $file_path."/file.tmp";
10var_dump( file($filename, 10, NULL) );  //  Incorrect flag
11
12var_dump( file("temp.tmp") );  // non existing filename
13fclose($file_handle);
14
15echo "\n--- Done ---";
16?>
17--CLEAN--
18<?php
19$file_path = __DIR__;
20unlink($file_path."/file.tmp");
21?>
22--EXPECTF--
23*** Testing error conditions ***
24array(0) {
25}
26
27Warning: file(temp.tmp): Failed to open stream: No such file or directory in %s on line %d
28bool(false)
29
30--- Done ---
31