#26255 [Opn->Bgs]: strrpos gives wrong result
| From: | iliaa@php.net | Date: | Sat, 15 Nov 2003 18:33:17 +0000 |
| Subject: | #26255 [Opn->Bgs]: strrpos gives wrong result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-50412@lists.php.net to get a copy of this message | ||
ID: 26255
Updated by: iliaa@php.net
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