1--TEST-- 2Test filetype() function: Error conditions 3--FILE-- 4<?php 5echo "*** Testing error conditions ***"; 6/* non-existing file or dir */ 7print( filetype("/no/such/file/dir") ); 8 9/* unknown type */ 10print( filetype("string") ); 11print( filetype(100) ); 12 13echo "\n*** Done ***\n"; 14?> 15--EXPECTF-- 16*** Testing error conditions *** 17Warning: filetype(): Lstat failed for /no/such/file/dir in %s on line %d 18 19Warning: filetype(): Lstat failed for string in %s on line %d 20 21Warning: filetype(): Lstat failed for 100 in %s on line %d 22 23*** Done *** 24