note 61484 deleted from function.preg-replace by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 19:58:13 +0000 |
| Subject: | note 61484 deleted from function.preg-replace by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127683@lists.php.net to get a copy of this message | ||
Note Submitter: leandro[--]ico[at]gm[--]ail[dot]com
----
I've found out a really odd error.
When I try to use the 'empty' function in the replacement string (when using the
'e' modifier, of course) the regexp interpreter get stucked at that point.
An examplo of this failure:
<?php
echo $test = preg_replace( "/(bla)/e", "empty(123)", "bla bla ble" );
# it should print something like:
# "1 1 ble"
?>
Very odd, huh?