/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
dir
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/dir/dir_variation5.phpt
--TEST-- Test dir() function : usage variations - open a file instead of directory --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip.. Not valid for Windows'); } ?> --FILE-- <?php /* * Passing a file as argument to dir() function instead of a directory * and checking if proper warning message is generated. */ echo "*** Testing dir() : open a file instead of a directory ***\n"; // open the file instead of directory $d = dir(__FILE__); var_dump( $d ); echo "Done"; ?> --EXPECTF-- *** Testing dir() : open a file instead of a directory *** Warning: dir(%s): Failed to open directory: %s in %s on line %d bool(false) Done
Copyright ©2k19 -
Hexid
|
Tex7ure