|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33470 strpos returning incorrectly on some long strings
Submitted: 2005-06-25 00:54 UTC Modified: 2005-06-25 01:41 UTC
From: phpbug at zavrazden dot borec dot cz Assigned:
Status: Not a bug Package: Strings related
PHP Version: 4.3.10 OS: Apache 2.0.54-4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
14 + 12 = ?
Subscribe to this entry?

 [2005-06-25 00:54 UTC] phpbug at zavrazden dot borec dot cz
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 failed.php

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-25 01:02 UTC] phpbug at zavrazden dot borec dot cz
specified URL is invalid please check it here
 [2005-06-25 01:41 UTC] phpbug at zavrazden dot borec dot cz
sorry, its my fault ;)
string was there
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 04:01:31 2024 UTC