#33470 [Opn]: strpos returning incorrectly on some long strings
| From: | phpbug at zavrazden dot borec dot cz | Date: | Fri, 24 Jun 2005 23:02:00 +0000 |
| Subject: | #33470 [Opn]: strpos returning incorrectly on some long strings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80990@lists.php.net to get a copy of this message | ||
ID: 33470
User updated by: phpbug at zavrazden dot borec dot cz
Reported By: phpbug at zavrazden dot borec dot cz
Status: Open
Bug Type: Strings related
Operating System: Apache 2.0.54-4
PHP Version: 4.3.10
New Comment:
specified URL is invalid please check it here
http://kldr.xhosting.cz/strposfail.htm
Previous Comments:
------------------------------------------------------------------------
[2005-06-25 00:54:44] phpbug at zavrazden dot borec dot cz
Description:
------------
strpos returned some integer,
but haystack didnt contain needle,
integer was in mostly higher than strlen of haystack
Reproduce code:
---------------
please, look at this URL, because of big string used
as haystack I couldnt use textarea in bugreport form
http://kldr.xhosting.cz/cat_hi.php?path=./strpos
failed.php
Expected result:
----------------
false
Actual result:
--------------
5225
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33470&edit=1