ID:               49213
 Updated by:       j...@php.net
 Reported By:      SiMM at none dot box
-Status:           Open
+Status:           Bogus
 Bug Type:         PCRE related
 Operating System: Windows XP
 PHP Version:      5.3.0
 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

RTFM:

http://www.php.net/manual/en/function.preg-replace.php

"When using the e modifier, this function escapes some characters 
(namely ', ", \ and NULL) in the strings that replace the 
backreferences"


Previous Comments:
------------------------------------------------------------------------

[2009-08-10 17:32:26] SiMM at none dot box

Description:
------------
When using the modifier e and the availability of input parameter
apostrophe occurs adding slash

Reproduce code:
---------------
echo preg_replace('#.#e','"$0"',"'");

Expected result:
----------------
'

Actual result:
--------------
\'


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49213&edit=1

Reply via email to