Bug #66219 [NEW]: Changes introduced in #62759 produces a BC Break

From: Date: Mon, 02 Dec 2013 18:27:07 +0000
Subject: Bug #66219 [NEW]: Changes introduced in #62759 produces a BC Break
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183075@lists.php.net to get a copy of this message
From: php dot maks3w at virtualplanets dot net Operating system: PHP version: 5.4.22 Package: ICONV related Bug Type: Bug Bug description:Changes introduced in #62759 produces a BC Break Description: ------------ Before PHP 5.4.18 and 5.5.1 a null or 0 value in the third argument returns the whole string from $start when $start is positive. Test script: --------------- $value = 'ˆCODE128:Š'; var_dump(grapheme_substr($value, 1)); var_dump(grapheme_substr($value, 1, null)); var_dump(grapheme_substr($value, 1, 0)); Expected result: ---------------- string(10) "CODE128:Š" string(10) "CODE128:Š" string(10) "CODE128:Š" Actual result: -------------- string(10) "CODE128:Š" string(0) "" string(0) "" -- Edit bug report at https://bugs.php.net/bug.php?id=66219&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66219&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66219&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66219&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66219&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66219&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66219&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66219&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66219&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66219&r=support Expected behavior: https://bugs.php.net/fix.php?id=66219&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66219&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66219&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66219&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66219&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66219&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66219&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66219&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66219&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66219&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66219&r=mysqlcfg

« previous php.bugs (#183075) next »