PHP 4.0 Bug #5676: preg_replace and 'e' modifyer eval problem
| From: | wico at cnh dot nl | Date: | Wed, 19 Jul 2000 12:36:32 +0000 |
| Subject: | PHP 4.0 Bug #5676: preg_replace and 'e' modifyer eval problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25076@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux
PHP version: 4.0 Latest CVS (19/07/2000)
PHP Bug Type: Scripting Engine problem
Bug description: preg_replace and 'e' modifyer eval problem
<?
echo preg_replace("'<(.*?)>'ime", "Wico('\\1');",
"try <'to' match \"this\"> in php");
function Wico ($plop) {
return("plop");
}
?>
// this will work better I think (if you guys are so nice want to build into php for us
// i can't replace all ' with " or visaversa
<?
echo preg_replace("'<(.*?)>'ime", "Wico($1);", "try
<'to' match \"this\"> in php");
function Wico ($plop) {
return("plop");
}
?>