#8558 [WFx->Csd]: /e modifier in preg_replace

From: Date: Wed, 02 Oct 2002 00:32:35 +0000
Subject: #8558 [WFx->Csd]: /e modifier in preg_replace
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21182@lists.php.net to get a copy of this message
 ID:               8558
 User updated by:  john@vbulletin.com
 Reported By:      john@vbulletin.com
-Status:           Won't fix
+Status:           Closed
 Bug Type:         Misbehaving function
 Operating System: Win32
 PHP Version:      3.0.16
 New Comment:

My original suggestion is about 20 months old, at which point it was an
issue. However, we're dropping PHP3 support in our software too, so
it's not a problem now. Thanks for the update, and I hope plans for
PHP5 continue to go well!
Cheers,
John


Previous Comments:
------------------------------------------------------------------------

[2002-10-01 15:13:58] hholzgra@php.net

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.



------------------------------------------------------------------------

[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



Thread (1 message)

  • john at vbulletin dot com
  • Unknown Message
    • john at vbulletin dot com
« previous php.bugs (#21182) next »