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(NULL)); 17var_dump(stat(false)); 18var_dump(stat('')); 19var_dump(stat(' ')); 20var_dump(stat('|')); 21 22echo "*** testing lstat ***\n"; 23var_dump(lstat(NULL)); 24var_dump(lstat(false)); 25var_dump(lstat('')); 26var_dump(lstat(' ')); 27var_dump(lstat('|')); 28?> 29--EXPECTF-- 30*** testing stat *** 31bool(false) 32bool(false) 33bool(false) 34 35Warning: stat(): stat failed for in %s on line %d 36bool(false) 37 38Warning: stat(): stat failed for | in %s on line %d 39bool(false) 40*** testing lstat *** 41bool(false) 42bool(false) 43bool(false) 44 45Warning: lstat(): Lstat failed for in %s on line %d 46bool(false) 47 48Warning: lstat(): Lstat failed for | in %s on line %d 49bool(false) 50