note 61484 added to function.preg-replace
| From: | leandro | Date: | Sun, 05 Feb 2006 05:40:22 +0000 |
| Subject: | note 61484 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103012@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 200.185.109.101
Probable Submitter: 200.101.46.92
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61484
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61484&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61484&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61484&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61484&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61484&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61484&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61484&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61484&report=yes
Search -- http://master.php.net/manage/user-notes.php