#39489 [Opn->Bgs]: eregi doesn't always work
| From: | tony2001@php.net | Date: | Mon, 13 Nov 2006 09:18:47 +0000 |
| Subject: | #39489 [Opn->Bgs]: eregi doesn't always work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104880@lists.php.net to get a copy of this message | ||
ID: 39489
Updated by: tony2001@php.net
Reported By: rsarceno at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Windows 2000
PHP Version: 5.2.0
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-11-13 08:10:29] rsarceno at yahoo dot com
Description:
------------
The function eregi doesn't work if my compare string is ".info",
".name" or ".net"
Reproduce code:
---------------
if (eregi("[.aero]$",$domain_name)) {
echo "domain is aero";
}elseif (eregi("[.com]$",$domain_name)) {
echo "domain is com";
}elseif (eregi("[.info]$",$domain_name)) {
echo "domain is info";
}elseif (eregi("[.name]$",$domain_name)) {
echo "domain is name";
}elseif (eregi("[.net]$",$domain_name)) {
echo "domain is net";}
Expected result:
----------------
$domain_name = "domain.aero";
echo domain is aero
$domain_name = "domain.com";
echo domain is com
$domain_name = "domain.info";
echo domain is info
$domain_name = "domain.name";
echo domain is name
$domain_name = "domain.net";
echo domain is name
Actual result:
--------------
$domain_name = "domain.aero";
echo domain is aero
$domain_name = "domain.com";
echo domain is com
$domain_name = "domain.info";
echo
$domain_name = "domain.name";
echo
$domain_name = "domain.net";
echo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39489&edit=1