ID: 26255 Updated by: [EMAIL PROTECTED] Reported By: hongnk at hotmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Win2K PHP Version: 4.3.4 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php strrpos searches for a single character, not a string. Previous Comments: ------------------------------------------------------------------------ [2003-11-14 15:46:27] hongnk at hotmail dot com Description: ------------ Strrpos (count last occurence) give wrong result. Only in 4.3.4 and maybe earlier. 5.00b2 is OK. But strpos (count ocurrence) is correct in all versions. Running Apache with php4apache.dll module on Win2K. Reproduce code: --------------- var_dump(strrpos("Admins;Users;","All Users")); Expected result: ---------------- boolean false Actual result: -------------- int 0; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26255&edit=1