#39723 [NEW]: eregi in difference query
| From: | toomore0929 at gmail dot com | Date: | Mon, 04 Dec 2006 05:19:48 +0000 |
| Subject: | #39723 [NEW]: eregi in difference query | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-105841@lists.php.net to get a copy of this message | ||
From: toomore0929 at gmail dot com
Operating system: windowsXP
PHP version: 4.4.4
PHP Bug Type: *Regular Expressions
Bug description: eregi in difference query
Description:
------------
I went to check a mail but have some question.
Reproduce code:
---------------
$mail = "foo@gmail.com";
First way
eregi("^[[:alnum:]_-\.]+@[\.[:alnum:]]+\.(com|edu|net|org)(\.[[:lower:]]{2})?$",$mail)
Second way
eregi("^[[:alnum:]_\.-]+@[\.[:alnum:]]+\.(com|edu|net|org)(\.[[:lower:]]{2})?$",$mail)
Expected result:
----------------
First way
return True
Second way
return True
Actual result:
--------------
First way
Warning: eregi() [function.eregi]: REG_ERANGE in C:\foo\foo.php on line
Second way
return True
--
Edit bug report at http://bugs.php.net/?id=39723&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39723&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39723&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39723&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39723&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39723&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39723&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39723&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39723&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39723&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39723&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39723&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39723&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39723&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39723&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39723&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39723&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39723&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39723&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39723&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39723&r=mysqlcfg