#8558 [Opn->]: /e modifier in preg_replace
| From: | hholzgra@php.net | Date: | Tue, 01 Oct 2002 20:13:58 +0000 |
| Subject: | #8558 [Opn->]: /e modifier in preg_replace | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21127@lists.php.net to get a copy of this message | ||
ID: 8558
Updated by: hholzgra@php.net
Reported By: john@vbulletin.com
-Status: Open
+Status: Won\'t fix
Bug Type: Misbehaving function
Operating System: Win32
PHP Version: 3.0.16
New Comment:
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.
Previous Comments:
------------------------------------------------------------------------
[2001-01-04 17:41:15] john@vbulletin.com
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);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=8558&edit=1