• Resolved Malae

    (@malae)


    Please be advised of the following warnings in PHP 7.2:

    FILE: /home/u440861037/public_html/wp-content/plugins/broken-link-checker/core/core.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     957 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
    
    FILE: /home/u440861037/public_html/wp-content/plugins/broken-link-checker/modules/checkers/http.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     147 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    -----------------------------------------------------------------------------------------------------------
Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m seeing three warnings when I test:

    FILE: [path redacted]/wp-content/plugins/broken-link-checker/core/core.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    957 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/broken-link-checker/includes/utility-class.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    42 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ———————————————————————–

    FILE: [path redacted]/wp-content/plugins/broken-link-checker/modules/checkers/http.php
    ———————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————–
    147 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
    ———————————————————————–

    Thread Starter Malae

    (@malae)

    @model13

    FILE: /wp-content/plugins/broken-link-checker/includes/utility-class.php
    42 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4

    is a false positive.

    I reverted to PHP 7.1 to avoid the warnings from Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead

    I have changed the code to use anonymous functions and seems to work OK. I will test before publishing the code, but hope the authors will update the plugin soon.

    • This reply was modified 6 years, 11 months ago by Malae.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warnings in PHP 7.2’ is closed to new replies.