Bug #73077 [NEW]: php compatibility: mb_strpos() [offset warning]

From: Date: Wed, 14 Sep 2016 01:30:08 +0000
Subject: Bug #73077 [NEW]: php compatibility: mb_strpos() [offset warning]
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204017@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: mbstring related Bug Type: Bug Bug description:php compatibility: mb_strpos() [offset warning] Description: ------------ "mb_strpos()" is not compatible with old PHP versions, because it dons't trigger a warning anymore "Offset not contained in string"?! -> https://3v4l.org/o1YNG Test script: --------------- var_dump(mb_strpos('abc', 'a', -1)); Expected result: ---------------- Warning: mb_strpos(): Offset not contained in string in /in/o1YNG on line 3 bool(false) Actual result: -------------- bool(false) -- Edit bug report at https://bugs.php.net/bug.php?id=73077&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73077&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73077&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73077&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73077&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73077&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73077&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73077&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73077&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73077&r=support Expected behavior: https://bugs.php.net/fix.php?id=73077&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73077&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73077&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73077&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73077&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73077&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73077&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73077&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73077&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73077&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73077&r=mysqlcfg

« previous php.bugs (#204017) next »