From: [EMAIL PROTECTED]
Operating system: win2k sp3
PHP version: 4.2.2
PHP Bug Type: *Regular Expressions
Bug description: escape the escape char in preg_replace
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 bug report at http://bugs.php.net/?id=20206&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20206&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20206&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20206&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20206&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20206&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20206&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20206&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20206&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20206&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20206&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20206&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20206&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20206&r=isapi