• Resolved mariushosting

    (@marius84)


    Hello im using PHP Compatibility Checker Plugin and see Autoptimize have some deprecated functions on php 7.2 here is the log file:

    FILE: …html/wp-content/plugins/autoptimize/classes/external/php/minify-2.1.7-jsmin.php
    ————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————————
    107 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ————————————————————————————————————————————

    FILE: …html/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php
    ————————————————————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————————
    107 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    ————————————————————————————————————————————

    FILE: ….html/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php
    ———————————————————————————————————————-
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————————————————————-
    96 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    481 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ———————————————————————————————————————-

    FILE: …html/wp-content/plugins/autoptimize/classes/autoptimizeBase.php
    ——————————————————————————————————————–
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    ——————————————————————————————————————–
    146 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    163 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    179 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    195 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    211 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    227 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    303 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ——————————————————————————————————————–

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    the create_functions() will be removed in AO 2.4 @marius84

    INI directive ‘mbstring.func_overload’

    rather is a false positive, as the code in question (which is actually a part of MrClay’s minify) reads;

    
    if (function_exists('mb_strlen') && ((int)ini_get('mbstring.func_overload') & 2))

    meaning that if ini_get('mbstring.func_overload') is not available any more, the code in the if statement is (and should not) be executed any more.

    hope this clarifies,
    frank

    Thread Starter mariushosting

    (@marius84)

    Thank you Frank!

    For me I found this (guess it’s quite similar). Good plugin btw. Kudos!

    FILE: /public_html/wp-content/plugins/autoptimize/classes/autoptimizeBase.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    -----------------------------------------------------------------------------------------------------------
     146 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     163 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     179 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     195 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     211 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     227 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     303 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
    
    FILE: /public_html/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------
      96 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
     481 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
    
    FILE: /public_html/wp-content/plugins/autoptimize/classes/external/php/minify-2.1.7-jsmin.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     107 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
    -----------------------------------------------------------------------------------------------------------
    
    FILE: /public_html/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     107 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
    -----------------------------------------------------------------------------------------------------------

    Hi I found these warnings through the tester:

    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    ———————————————————————————————————–
    146 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    163 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    179 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    195 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    211 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    227 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    303 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ———————————————————————————————————–

    FILE: /www/web_259/public/wp-content/plugins/autoptimize/classes/autoptimizeStyles.php
    ———————————————————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ———————————————————————————————————–
    96 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    481 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ———————————————————————————————————–

    FILE: /www/web_259/public/wp-content/plugins/autoptimize/classes/external/php/minify-2.3.1-jsmin.php
    —————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————–
    107 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    —————————————————————————————————————–

    FILE: /www/web_259/public/wp-content/plugins/autoptimize/classes/external/php/minify-2.1.7-jsmin.php
    —————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    —————————————————————————————————————–
    107 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
    —————————————————————————————————————–

    Plugin Author Frank Goossens

    (@futtta)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Php 7.2 Compatibility’ is closed to new replies.