PHP 4.0 Bug #3820 Updated: preg_replace with /e function
| From: | Bug Database | Date: | Tue, 21 Mar 2000 16:19:21 +0000 |
| Subject: | PHP 4.0 Bug #3820 Updated: preg_replace with /e function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17120@lists.php.net to get a copy of this message | ||
ID: 3820
Updated by: andrei
Reported By: andrew.coldham@home.com
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
Not a bug. I don't understand what you're trying to achieve here.
$arkey = array("/TEST/e");
$arval = array("\$this->showX(\"$ar\")");
$outputstring = preg_replace($arkey,$arval,"First: TEST, done.");
In your example, $arval evaluates to $this->showX("Array"), and
that's what gets passed to preg_replace() which then call that method.
Full Bug description available at: http://bugs.php.net/version4/?id=3820