1--TEST--
2Test filesize() function: error conditions
3--FILE--
4<?php
5echo "*** Testing filesize(): error conditions ***";
6
7/* Non-existing file or dir */
8var_dump( filesize("/no/such/file") );
9var_dump( filesize("/no/such/dir") );
10
11echo "*** Done ***\n";
12?>
13--EXPECTF--
14*** Testing filesize(): error conditions ***
15Warning: filesize(): stat failed for /no/such/file in %s on line %d
16bool(false)
17
18Warning: filesize(): stat failed for /no/such/dir in %s on line %d
19bool(false)
20*** Done ***
21