/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
dir
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/dir/readdir_variation7.phpt
--TEST-- Test readdir() function : usage variations - use file pointers --FILE-- <?php /* * Open a file pointer using fopen and pass to readdir() to test behaviour */ echo "*** Testing readdir() : usage variations ***\n"; // get a resource variable var_dump($fp = fopen(__FILE__, "r")); try { var_dump( readdir($fp) ); } catch (\TypeError $e) { echo $e->getMessage() . "\n"; } ?> --EXPECTF-- *** Testing readdir() : usage variations *** resource(%d) of type (stream) readdir(): Argument #1 ($dir_handle) must be a valid Directory resource
Copyright ©2k19 -
Hexid
|
Tex7ure