preg_replace adds backslashes to quotes in backreferences when you use the /e modifier.
http://www.php.net/manual/en/function.p ... .php#39713
Most people use stripslashes, but this does not work because it also takes out backslashes that are supposed to be there. This post suggests unquoting \", but what other characters are being quoted? Do you have to unquote NULL or non-ASCii characters?
preg /e weirdness - PHP bug?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Do not use the "e" modifier. Use preg_replace_callback() instead.