php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/standard/tests/dir/ |
files >> //opt/php-7.0.1/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 /* * Prototype : object dir(string $directory[, resource $context]) * Description: Directory class with properties, handle and class and methods read, rewind and close * Source code: ext/standard/dir.c */ /* * 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 dir: %s in %s on line %d bool(false) Doney~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`