Skip to:
Content
Pages
Categories
Search
Top
Bottom

preg_replace /e modifier


  • Digital Arm
    Participant

    @digital-arm

    After upgrading to PHP 5.5 and running a compatibility test on a site, it has flagged the use of a deprecated modifier being used in preg_replace functions.
    These occur on lines 1149 and 1150 in file /includes/admin/parser.php

    1149 | ERROR | preg_replace() – /e modifier is deprecated in PHP 5.5
    1150 | ERROR | preg_replace() – /e modifier is deprecated in PHP 5.5

    Could you please let me know the best way to replace the code with the preg_replace_callback function and let me know if this is likely to be updated in a future patch as this can be seen as a security concern.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

  • cartmen123
    Participant

    @cartmen123

    to try


    Jeff McNeill
    Participant

    @jeffmcneill

    I have this same concern. I have to upgrade to PhP 5.5 (and frankly, 5.6 is out of support by Jan 01, 2017, so this is an old issue). Can bbPress be updated to work under PhP 5.5, or at least not throw an error?


    Jeff McNeill
    Participant

    @jeffmcneill

    Here are the full errors I received

    FILE: /home/classics/public_html/wp-content/plugins/bbpress/includes/users/functions.php
    —————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————-
    1380 | ERROR | The function hash_equals is not present in PHP version 5.5 or earlier
    —————————————————————————————-

    FILE: /home/classics/public_html/wp-content/plugins/bbpress/includes/admin/parser.php
    ——————————————————————————————————–
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    ——————————————————————————————————–
    1149 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5
    1150 | ERROR | preg_replace() – /e modifier is deprecated since PHP 5.5
    1386 | WARNING | The use of function split is discouraged from PHP version 5.3; use preg_split instead
    ——————————————————————————————————–

    FILE: /home/classics/public_html/wp-content/plugins/bbpress/includes/admin/converter.php
    ————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————–
    310 | WARNING | INI directive ‘safe_mode’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.
    ————————————————————————————————–

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar