php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20661 Incorrectly identifies match
Submitted: 2002-11-26 15:03 UTC Modified: 2002-11-26 20:21 UTC
From: mbr at auswebdesign dot com dot au Assigned:
Status: Closed Package: Regexps related
PHP Version: 4.2.3 OS: Linux redHat 7.0 and Solaris 8
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:
MUST BE VALID
Solve the problem:
45 - 28 = ?
Subscribe to this entry?

 
 [2002-11-26 15:03 UTC] mbr at auswebdesign dot com dot au
//  finds 17 (also 15) but not 27 in option pattern >> see below


if(ereg("5|7","17")){

print "found";

}else{

print "not found";


}

./configure' '--prefix=/usr' '--with-apxs' '--with-mysql' '--with-pgsql' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-ttf' '--with-zlib' '--with-openssl' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-gettext' '--with-mcrypt'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-26 20:21 UTC] sniper@php.net
Your example script works fine here with latest CVS of 4.3.0-dev branch.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 06:01:28 2024 UTC