Bug #76158 [NEW]: UTF-8 character C29D handling

From: Date: Wed, 28 Mar 2018 12:13:45 +0000
Subject: Bug #76158 [NEW]: UTF-8 character C29D handling
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214505@lists.php.net to get a copy of this message
From: miloslav dot hula at gmail dot com Operating system: PHP version: Irrelevant Package: *General Issues Bug Type: Bug Bug description:UTF-8 character C29D handling Description: ------------ I expected that I can split any string to single octects, but it does not work for UTF-8 character C29D https://3v4l.org/FjUb7 Test script: --------------- <?php $ch = "\xc2\x9d"; foreach (str_split($ch) as $c) { echo sprintf("0x%02X", $c) . "\n"; } Expected result: ---------------- 0xC2 0x9D Actual result: -------------- 0x00 0x00 -- Edit bug report at https://bugs.php.net/bug.php?id=76158&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76158&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76158&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76158&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76158&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76158&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76158&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76158&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76158&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76158&r=support Expected behavior: https://bugs.php.net/fix.php?id=76158&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76158&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76158&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76158&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76158&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76158&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76158&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76158&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76158&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76158&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76158&r=mysqlcfg

« previous php.bugs (#214505) next »