Bug #11253 Updated: eregi slight mistak?
| From: | derick@php.net | Date: | Sun, 02 Jun 2002 17:34:50 +0000 |
| Subject: | Bug #11253 Updated: eregi slight mistak? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9167@lists.php.net to get a copy of this message | ||
ID: 11253
Updated by: derick@php.net
Reported By: digirave@hanmail.net
-Status: Open
+Status: Bogus
Bug Type: Regexps related
Operating System: windoze
PHP Version: 4.0.4
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. 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
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-06-07 16:14:33] digirave@hanmail.net
posted this in the notes at eregi too...
i'm not sure if this is a bug or built in, i think it may be a bug,
anyways this took a
lot of my time,
let's say your searching for several characters in $domain
if(ereg("[abc]", $domain))
-> no problem!
but let's say you want to search abc] normally you add a slash in front
of special
characters and it works but it doesn't work for ]
if(ereg("[abc\]]", $domain))
-> SCREWS UP.. DOESN'T SEARCH PROPERLY
the quick fix?
if(ereg("[abc\x5d]", $domain))
------------------------------------------------------------------------
[2001-06-02 11:11:34] digirave@hanmail.net
posted this in the notes at eregi too...
i'm not sure if this is a bug or built in, i think it may be a bug,
anyways this took a lot of my time,
let's say your searching for several characters in $domain
if(ereg("[abc]", $domain))
-> no problem!
but let's say you want to search abc] normally you add a slash in front
of special characters and it works but it doesn't work for ]
if(ereg("[abc\]]", $domain))
-> SCREWS UP.. DOESN'T SEARCH PROPERLY
the quick fix?
if(ereg("[abc\x5d]]", $domain))
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11253&edit=1