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
 [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

Pull Requests

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: Fri Nov 01 23:01:29 2024 UTC