|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12753 stristr Bug
Submitted: 2001-08-15 01:38 UTC Modified: 2001-10-20 06:06 UTC
From: Darwin at MusePlay dot com Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.6 OS: Linux 7.1
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:
17 + 6 = ?
Subscribe to this entry?

 [2001-08-15 01:38 UTC] Darwin at MusePlay dot com
There appears to be a bug in the stristr function.  If $haystack contains a string that includes "<P>" and $needle is "<p>", then this function fails.  However, if we keep $haystack the same and change $needle to "<P>", the function works.  This is very odd, since I have only observed this behavior in this particular instance, no where else...

Take care,


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-20 06:06 UTC]
Unable to reproduce with 4.1.0RC1.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 21:01:25 2023 UTC