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/mbstring/tests/ |
files >> //php-7.1.11/ext/mbstring/tests/mb_substr_error2.phpt |
--TEST-- Test mb_substr() function : error conditions - Pass an unknown encoding --SKIPIF-- <?php extension_loaded('mbstring') or die('skip'); function_exists('mb_substr') or die("skip mb_substr() is not available in this build"); ?> --FILE-- <?php /* Prototype : string mb_substr(string $str, int $start [, int $length [, string $encoding]]) * Description: Returns part of a string * Source code: ext/mbstring/mbstring.c */ /* * Pass an unknown encoding to mb_substr() to test behaviour */ echo "*** Testing mb_substr() : error conditions ***\n"; $str = 'Hello, world'; $start = 1; $length = 5; $encoding = 'unknown-encoding'; var_dump( mb_substr($str, $start, $length, $encoding)); echo "Done"; ?> --EXPECTF-- *** Testing mb_substr() : error conditions *** Warning: mb_substr(): Unknown encoding "unknown-encoding" 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`