#41935 [Opn->Bgs]: preg_replace: there is an error in "Example 1698. Using the 'e' modifier".
| From: | colder@php.net | Date: | Mon, 09 Jul 2007 21:33:47 +0000 |
| Subject: | #41935 [Opn->Bgs]: preg_replace: there is an error in "Example 1698. Using the 'e' modifier". | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377001@lists.php.net to get a copy of this message | ||
ID: 41935
Updated by: colder@php.net
Reported By: noone at nowhere dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: colder
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Quotes seem just fine.
Previous Comments:
------------------------------------------------------------------------
[2007-07-09 15:16:04] bjori@php.net
Reclassified as documentation problem
------------------------------------------------------------------------
[2007-07-09 10:49:52] noone at nowhere dot com
Description:
------------
There is an error in "Example 1698. Using the 'e' modifier". Either
single quotes or additional escapes should be used imho:
<?php
preg_replace("/(<\\/?)(\\w+)([^>]*>)/e",
"'\\1'.strtoupper('\\2').'\\3'",
$html_body);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41935&edit=1