Bug #8558: /e modifier in preg_replace

From: Date: Thu, 04 Jan 2001 22:41:15 +0000
Subject: Bug #8558: /e modifier in preg_replace
Groups: php.dev 
Request: Send a blank email to php-dev+get-42995@lists.php.net to get a copy of this message
From: john@vbulletin.com Operating system: Win32 PHP version: 3.0.16 PHP Bug Type: Misbehaving function Bug description: /e modifier in preg_replace When was the /e modifier added to PHP? On PHP 3.0.16 / Apache CGI / Win32 it does not work, but on PHP 4.0.2 / Apache Module / Linux it does work. Is this a platform issue, or a version issue? Are there any workarounds if this is a version issue? Thanks, John Code sample: $searcharray = array( "/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list\])/esiU", "/(\[)(list)(])(.*)(\[\/list\])/esiU", "/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/esiU", "/(\[)(url)(])(.*)(\[\/url\])/esiU", "/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/esiU" ); $replacearray = array( "createlists('\\7', '\\5')", "createlists('\\4')", "checkurl('\\5', '\\7')", "checkurl('\\4')", "stripbrsfromcode('\\5')" ); $bbcode=preg_replace($searcharray, $replacearray, $bbcode);

« previous php.dev (#42995) next »