Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27092

Remove eZAutoLink operator usage of preg_replace and PREG_REPLACE_EVAL

    XMLWordPrintable

Details

    Description

      Remove eZAutoLink operator usage of preg_replace usage of "\e" (PREG_REPLACE_EVAL) to properly support php 5.5+ and php 7.0+

      Since PHP 5.5.x the usage of preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL) and preg_replace_callback() should be used instead. IE: Deprecation of feature usage.

      Since PHP 7.x the usage of preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL) and preg_replace_callback() must be used instead. IE: Removal of feature usage.

      Source #1, Deprecated features in PHP 5.5.x: http://php.net/manual/en/migration55.deprecated.php

      Source #2, Changed functions in PHP 7.x: http://php.net/manual/en/migration70.changed-functions.php
      Description Summary: preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL). preg_replace_callback() should be used instead.

      Our pull request will address these problems by refactoring the affected code and add phpunit tests to ensure the results remain the same through these code changes.

      Cheers,
      Brookins Consulting

      Attachments

        Activity

          People

            Unassigned Unassigned
            bc bc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: