diff options
Diffstat (limited to 'ext/pcre/tests/preg_replace_callback.phpt')
-rw-r--r-- | ext/pcre/tests/preg_replace_callback.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcre/tests/preg_replace_callback.phpt b/ext/pcre/tests/preg_replace_callback.phpt index 0b0bc27576..a52ef5c962 100644 --- a/ext/pcre/tests/preg_replace_callback.phpt +++ b/ext/pcre/tests/preg_replace_callback.phpt @@ -2,11 +2,11 @@ preg_replace_callback() --FILE-- <?php -$input = "plain [indent] deep [indent] [abcd]deeper[/abcd] [/indent] deep [/indent] plain"; +$input = "plain [indent] deep [indent] [abcd]deeper[/abcd] [/indent] deep [/indent] plain"; function parseTagsRecursive($input) { - + $regex = '#\[indent]((?:[^[]|\[(?!/?indent])|(?R))+)\[/indent]#'; if (is_array($input)) { |