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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 11:01:28 2024 UTC