php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8558 /e modifier in preg_replace
Submitted: 2001-01-04 17:41 UTC Modified: 2002-10-01 19:32 UTC
From: john at vbulletin dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.16 OS: Win32
Private report: No CVE-ID: None
 [2001-01-04 17:41 UTC] john at vbulletin dot 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);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:13 UTC] 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.


 [2002-10-01 19:32 UTC] john at vbulletin dot com
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 06:01:30 2024 UTC