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 >> /php-7.1.11/ext/standard/tests/dir/ |
files >> //php-7.1.11/ext/standard/tests/dir/dir_error.phpt |
--TEST-- Test dir() function : error conditions --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 */ echo "*** Testing dir() : error conditions ***\n"; // Zero arguments echo "\n-- Testing dir() function with zero arguments --"; var_dump( dir() ); // With one more than expected number of arguments echo "\n-- Testing dir() function with one more than expected number of arguments --"; $extra_arg = 10; var_dump( dir(getcwd(), "stream", $extra_arg) ); echo "Done"; ?> --EXPECTF-- *** Testing dir() : error conditions *** -- Testing dir() function with zero arguments -- Warning: dir() expects at least 1 parameter, 0 given in %s on line %d NULL -- Testing dir() function with one more than expected number of arguments -- Warning: dir() expects at most 2 parameters, 3 given in %s on line %d NULL Doney~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`