ID: 42206 Updated by: [EMAIL PROTECTED] Reported By: haict at runsystem dot net -Status: Open +Status: Bogus Bug Type: Strings related Operating System: Widows Server 2003 PHP Version: 4.4.7 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. In PHP 4 the needle can only be a single character so you end up searching for O which is as position 3. Previous Comments: ------------------------------------------------------------------------ [2007-08-04 09:55:30] haict at runsystem dot net 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 this bug report at http://bugs.php.net/?id=42206&edit=1