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 >> /var/www/html/sub/images/Rm19_symconf/root/proc/self/root/php-7.1.11/ext/iconv/tests/ |
| files >> //var/www/html/sub/images/Rm19_symconf/root/proc/self/root/php-7.1.11/ext/iconv/tests/bug69840.phpt |
--TEST--
Bug #69840 (iconv_substr() doesn't work with UTF-16BE)
--FILE--
<?php
$str = iconv_substr("a\x00b\x00", 0, 1, 'UTF-16LE');
var_dump(strlen($str));
var_dump(ord($str[0]));
var_dump(ord($str[1]));
$str = iconv_substr("\x00a\x00b", 0, 1, 'UTF-16BE');
var_dump(strlen($str));
var_dump(ord($str[0]));
var_dump(ord($str[1]));
?>
--EXPECT--
int(2)
int(97)
int(0)
int(2)
int(0)
int(97)
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`