1--TEST-- 2Test lstat() and stat() functions: usage variations - invalid filenames 3--CREDITS-- 4Dave Kelsey <d_kelsey@uk.ibm.com> 5--SKIPIF-- 6<?php 7if (substr(PHP_OS, 0, 3) == 'WIN') { 8 die('skip ... not for Windows'); 9} 10?> 11--CONFLICTS-- 12obscure_filename 13--FILE-- 14<?php 15echo "*** testing stat ***\n"; 16var_dump(stat(false)); 17var_dump(stat('')); 18var_dump(stat(' ')); 19var_dump(stat('|')); 20 21echo "*** testing lstat ***\n"; 22var_dump(lstat(false)); 23var_dump(lstat('')); 24var_dump(lstat(' ')); 25var_dump(lstat('|')); 26?> 27--EXPECTF-- 28*** testing stat *** 29bool(false) 30bool(false) 31 32Warning: stat(): stat failed for in %s on line %d 33bool(false) 34 35Warning: stat(): stat failed for | in %s on line %d 36bool(false) 37*** testing lstat *** 38bool(false) 39bool(false) 40 41Warning: lstat(): Lstat failed for in %s on line %d 42bool(false) 43 44Warning: lstat(): Lstat failed for | in %s on line %d 45bool(false) 46