Bug #73076 [NEW]: php compatibility: mb_strpos()

From: Date: Wed, 14 Sep 2016 01:08:19 +0000
Subject: Bug #73076 [NEW]: php compatibility: mb_strpos()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204016@lists.php.net to get a copy of this message
From: lars at moelleken dot org Operating system: Ubuntu 12.04.5 LTS PHP version: 7.1.0RC1 Package: Strings related Bug Type: Bug Bug description:php compatibility: mb_strpos() Description: ------------ mb_strpos() is not compatible with old PHP versions. https://3v4l.org/TsMA9 Test script: --------------- var_dump(mb_strpos('ABC-ÖÄÜ-💩-' . "\xc3\x28" . '中文空白-中文空白' . "\xf0\x28\x8c\x28" . 'abc', '白', -8)); Expected result: ---------------- bool(false) Actual result: -------------- int(20) -- Edit bug report at https://bugs.php.net/bug.php?id=73076&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73076&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73076&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73076&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73076&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73076&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73076&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73076&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73076&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73076&r=support Expected behavior: https://bugs.php.net/fix.php?id=73076&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73076&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73076&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73076&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73076&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73076&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73076&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73076&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73076&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73076&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73076&r=mysqlcfg

« previous php.bugs (#204016) next »