#41935 [NEW]: preg_replace: there is an error in "Example 1698. Using the 'e' modifier".

From: Date: Mon, 09 Jul 2007 10:49:52 +0000
Subject: #41935 [NEW]: preg_replace: there is an error in "Example 1698. Using the 'e' modifier".
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-35916@lists.php.net to get a copy of this message
From: noone at nowhere dot com Operating system: PHP version: Irrelevant PHP Bug Type: Website problem Bug description: preg_replace: there is an error in "Example 1698. Using the 'e' modifier". 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 bug report at http://bugs.php.net/?id=41935&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41935&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41935&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41935&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41935&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41935&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41935&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41935&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41935&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41935&r=support Expected behavior: http://bugs.php.net/fix.php?id=41935&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41935&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41935&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41935&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41935&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41935&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41935&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41935&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41935&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41935&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41935&r=mysqlcfg

« previous php.mirrors (#35916) next »