|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-07 22:05 UTC] nikic@php.net
[2012-05-07 22:05 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 20:00:02 2025 UTC |
Description: ------------ when applies a function to a auto-reference (preg_replace), it not affect to the auto-referente Test script: --------------- <?php echo preg_replace('/<!\[CDATA\[([\w\W]+?)\]\]>/i', htmlentities('$1'), '<category><![CDATA[Examp<b>l<a>e]]></category>'); ?> Expected result: ---------------- <category>Examp<b>l<a>e</category> Actual result: -------------- <category>Examp<b>l<a>e</category>