From: samuel dot roze at gmail dot com Operating system: Debian 5 PHP version: 5.3.1 PHP Bug Type: Unicode Engine related Bug description: strrpos offset argument doesn't work
Description: ------------ The third sttrpos argument, $offset, doesn't act on data. With are without it, it is the same result. Reproduce code: --------------- <?php $file_path = '/home/mon/fichier/LC_MESSAGES/message.po'; var_dump($file_path); $last_bracket = strrpos($file_path, '/'); var_dump($last_bracket); $last_bracket2 = strripos($file_path, '/', 20); var_dump($last_bracket2); ?> Expected result: ---------------- string(40) "/home/mon/fichier/LC_MESSAGES/message.po" int(29) int(17) Actual result: -------------- string(40) "/home/mon/fichier/LC_MESSAGES/message.po" int(29) int(29) -- Edit bug report at http://bugs.php.net/?id=50702&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50702&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50702&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50702&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50702&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50702&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50702&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50702&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50702&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50702&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50702&r=support Expected behavior: http://bugs.php.net/fix.php?id=50702&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50702&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50702&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50702&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50702&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50702&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50702&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50702&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50702&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50702&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50702&r=mysqlcfg
