ID: 20206
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *Regular Expressions
Operating System: win2k sp3
PHP Version: 4.2.2
New Comment:
sorry, a typo in the second line of code
$_SESSION["l"] = preg_replace("/\\*\//","\/",$_SESSION["l"]);
i missed a '/'.
Previous Comments:
------------------------------------------------------------------------
[2002-10-31 21:38:57] [EMAIL PROTECTED]
let say:
$_SESSION["l"] = 'c/c++';
$_SESSION["l"] = preg_replace("/\\*\/","\/",$_SESSION["l"]);
$_SESSION["l"] = preg_replace("/\\*\+","\+",$_SESSION["l"]);
what i expect is no matter how the user reload the page
$_SESSION["l"] should be 'c\/c\+\+'
i used the reg exp in perl and tried it out, seems logically correct,
but it cause an error in my php page.
thx for your attention
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20206&edit=1