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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mbr at auswebdesign dot com dot au
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Mon Nov 18 13:01:38 2019 UTC