#39723 [Opn->Bgs]: eregi in difference query

From: Date: Mon, 04 Dec 2006 10:53:11 +0000
Subject: #39723 [Opn->Bgs]: eregi in difference query
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105852@lists.php.net to get a copy of this message
ID: 39723 Updated by: tony2001@php.net Reported By: toomore0929 at gmail dot com -Status: Open +Status: Bogus Bug Type: *Regular Expressions Operating System: windowsXP PHP Version: 4.4.4 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-12-04 05:19:48] toomore0929 at gmail dot com 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 this bug report at http://bugs.php.net/?id=39723&edit=1

« previous php.bugs (#105852) next »