Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12172

Use preg_replace_callback() in CRM_Utils_Token

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.8
    • Fix Version/s: 4.4.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      CRM_Utils_Token uses preg_replace with the PREG_REPLACE_EVAL modifier 'e', which is deprecated as of PHP 5.5, and whose use is currently discouraged. This class should use preg_replace_callback() instead. Patch attached.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              keith@wellebee.com Keith Morgan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: