|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-15 21:44 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2015-06-15 21:44 UTC] cmb@php.net
[2015-06-17 07:40 UTC] kalle@php.net
[2015-06-17 07:40 UTC] kalle@php.net
-Status: Verified
+Status: Closed
[2015-06-17 07:40 UTC] kalle@php.net
-Status: Closed
+Status: Verified
-Assigned To:
+Assigned To: kalle
[2015-06-17 07:40 UTC] kalle@php.net
[2015-06-17 07:40 UTC] kalle@php.net
-Status: Verified
+Status: Closed
[2015-06-23 18:04 UTC] ab@php.net
[2016-07-20 11:38 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 16:00:01 2025 UTC |
Description: ------------ The iconv_substr() function returns false instead of the expected substring. I just tried UTF-16LE which works: php -r "var_dump(iconv_substr(\"a\x00b\x00\", 0, 1, 'UTF-16LE'));" string(2) "a\x00" Also iconv_strlen() works as expected. Test script: --------------- var_dump(iconv_substr("\x00a\x00b", 0, 1, 'UTF-16BE')); Expected result: ---------------- string(2) "\x00a" Actual result: -------------- bool(false)