• Resolved politicske

    (@politicske)


    Hi, PHP compatibility checker detects this code as incompatible with php 7.2

    FILE: /home/xxx/public_html/wp-content/plugins/download-monitor/src/DownloadHandler.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------
     604 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
     609 | ERROR   | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    -----------------------------------------------------------------------------------------------------------
    
    FILE: /home/xxx/public_html/wp-content/plugins/download-monitor/src/Libs/uaparser/lib/spyc-0.5/spyc.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------------
     393 | WARNING | Method name "Spyc::__load" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
     398 | WARNING | Method name "Spyc::__loadString" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
    ----------------------------------------------------------------------------------------------------------------------------------------------------

    Is this a false positive? Or is it maintained for backwards compatibility?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    These warnings are due to backward compatibility. We do all our development with the latest versions of PHP :).

    I hope that answers your query. Let us know if you have any further questions.

    Thread Starter politicske

    (@politicske)

    Thanks for the answer. It was just that. Is this probably going to cause any problems with future versions of PHP?

    Hi,

    It should not cause any issue with future versions of PHP.

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

The topic ‘PHP 7.2’ is closed to new replies.