From:             [EMAIL PROTECTED]
Operating system: Linux redHat 7.0 and Solaris 8
PHP version:      4.2.3
PHP Bug Type:     Regexps related
Bug description:  Incorrectly identifies match

//  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'

-- 
Edit bug report at http://bugs.php.net/?id=20661&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20661&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20661&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20661&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20661&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20661&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20661&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20661&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20661&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20661&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20661&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20661&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20661&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20661&r=isapi

Reply via email to