Test: /ext/iconv/tests/bug69840.phpt - Version 7.4.21        

Bug #69840 iconv_substr() doesn't work with UTF-16BE
Submitted: 2015-06-15 16:03:28 Modified: 2015-06-17 07:40:44
From: jan.slabon Assigned: kalle
Status: Closed Package: ICONV related
PHP Version: 7.0.0alpha1 OS: Windows 7 Pro

There are 2 different diffs reported by users for this test.

Count Diff
2 (67%)
001+ 001- int(2) 002- int(97) 003- int(0) 004- int(2) 005- int(0) 006- int(97)
1 (33%)
001+ Notice: iconv_substr(): Wrong charset, conversion from `UTF-16LE' to `UCS-4LE' is not allowed in %s/bug69840.php on line 2 002+ int(0) 003+ 004+ Notice: Trying to access array offset on value of type bool in %s/bug69840.php on line 4 005+ int(0) 006+ 007+ Notice: Trying to access array offset on value of type bool in %s/bug69840.php on line 5 008+ int(0) 009+ 010+ Notice: iconv_substr(): Wrong charset, conversion from `UTF-16BE' to `UCS-4LE' is not allowed in %s/bug69840.php on line 6 011+ int(0) 012+ 013+ Notice: Trying to access array offset on value of type bool in %s/bug69840.php on line 8 014+ int(0) 015+ 016+ Notice: Trying to access array offset on value of type bool in %s/bug69840.php on line 9 001- int(2) 002- int(97) 004- int(2) 005- int(0) 006- int(97)