From: haict at runsystem dot net Operating system: Widows Server 2003 PHP version: 4.4.7 PHP Bug Type: Strings related Bug description: Bug from function strrpos
Description: ------------ I got a false result when i run bellow script: I tested that script on Windows Server 2003 and Redhad Enterprice Linux 4 with versions: 4.3.11, 4.4.2 and 4.4.7 Reproduce code: --------------- <?php $str = "ABCON_TS_UPDATE_TIMESTAMP"; $order_pos = strrpos($str, "ORDER"); echo $order_pos ; ?> Expected result: ---------------- if true $order_pos === false; Actual result: -------------- I got a string in my screen which is 3 -- Edit bug report at http://bugs.php.net/?id=42206&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42206&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42206&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42206&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42206&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42206&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42206&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42206&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42206&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42206&r=support Expected behavior: http://bugs.php.net/fix.php?id=42206&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42206&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42206&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42206&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42206&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42206&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42206&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42206&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42206&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42206&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42206&r=mysqlcfg