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 >> /proc/self/root/opt/php-7.0.1/ext/standard/tests/strings/ |
files >> //proc/self/root/opt/php-7.0.1/ext/standard/tests/strings/dirname_error.phpt |
--TEST-- Test dirname() function : error conditions --FILE-- <?php /* Prototype: string dirname ( string $path ); Description: Returns directory name component of path. */ echo "*** Testing error conditions ***\n"; // zero arguments var_dump( dirname() ); // Bad arg var_dump( dirname("/var/tmp/bar.gz", 0) ); // more than expected no. of arguments var_dump( dirname("/var/tmp/bar.gz", 1, ".gz") ); echo "Done\n"; ?> --EXPECTF-- *** Testing error conditions *** Warning: dirname() expects at least 1 parameter, 0 given in %s on line %d NULL Warning: dirname(): Invalid argument, levels must be >= 1 in %s on line %d NULL Warning: dirname() 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`