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/strings/ |
files >> //php-7.1.11/ext/standard/tests/strings/chunk_split_error.phpt |
--TEST-- Test chunk_split() function : error conditions --FILE-- <?php /* Prototype : string chunk_split(string $str [, int $chunklen [, string $ending]]) * Description: Returns split line * Source code: ext/standard/string.c * Alias to functions: none */ /* * Testing error conditions of chunk_split() with zero arguments * and for more than expected number of arguments */ echo "*** Testing chunk_split() : error conditions ***\n"; // Zero arguments echo "-- Testing chunk_split() function with Zero arguments --"; var_dump( chunk_split() ); // With one more than the expected number of arguments $str = 'Testing chunk_split'; $chunklen = 5; $ending = '***'; $extra_arg = 10; echo "-- Testing chunk_split() function with more than expected no. of arguments --"; var_dump( chunk_split($str, $chunklen, $ending, $extra_arg) ); echo "Done" ?> --EXPECTF-- *** Testing chunk_split() : error conditions *** -- Testing chunk_split() function with Zero arguments -- Warning: chunk_split() expects at least 1 parameter, 0 given in %s on line %d NULL -- Testing chunk_split() function with more than expected no. of arguments -- Warning: chunk_split() expects at most 3 parameters, 4 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`