#26442 [Opn->Bgs]: eregi failed for [ mark
ID: 26442
Updated by: iliaa@php.net
Reported By: hsutanto78 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: mbstring related
Operating System: WinXP Japanese
PHP Version: 4.3.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You need to escape special characters such as [ to get your regex to
work properly.
Previous Comments:
------------------------------------------------------------------------
[2003-11-28 02:12:20] hsutanto78 at hotmail dot com
Description:
------------
i've tried using both mb_eregi and eregi, both give error result. is it
a bug?
Reproduce code:
---------------
if(eregi("[","R[h")) echo "MATCH!";
Expected result:
----------------
MATCH!
Actual result:
--------------
Warning: eregi(): REG_EBRACK: in C:\Inetpub\wwwroot\modules.php on line
99
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26442&edit=1
Thread (2 messages)