• Resolved d_wolf

    (@d_wolf)


    I want to upgrade my site php version to 7.0
    I tested it with php 7 compatibility checker plugin and ‘Custom Scrollbar’ gets warning
    so i’m not sure if it’s false positive or not ?
    is ‘Custom Scrollbar’ PHP 7.0 compatible?

    here are the errors:
    Name: Custom Scrollbar

    FILE: /nas/content/live/skorka/wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/_abstract/_model/AdminPageFramework_Message.php
    ————————————————————————————————————————————————————————————-
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————————————————————————-
    55 | WARNING | Method name “CustomScrollbar_AdminPageFramework_Message::__doDummy” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    ————————————————————————————————————————————————————————————-

    FILE: /nas/content/live/skorka/wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_system.php
    ————————————————————————————————————————————————————–
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ————————————————————————————————————————————————————–
    168 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed since PHP 5.4
    ————————————————————————————————————————————————————–

    FILE: /nas/content/live/skorka/wp-content/plugins/custom-scrollbar/include/library/apf/factory/_common/utility/wp_utility/AdminPageFramework_WPUtility.php
    ———————————————————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————————————-
    495 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ———————————————————————————————————————————————————-

    FILE: /nas/content/live/skorka/wp-content/plugins/custom-scrollbar/include/library/apf/utility/requirement/AdminPageFramework_Requirement.php
    ———————————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————————
    49 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead

    • This topic was modified 6 years, 7 months ago by d_wolf. Reason: typo

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    The plugin should be compatible with PHP 7. The checker seems to read only the literal code but not the conditional blocks. In PHP, if lines of code are enclosed in a conditional block like

    
    if (version_compare(PHP_VERSION, '7.0.0', '<')) {
       // code for PHP 6.x or below 
    }
    

    then those lines will not be executed.

    So don’t worry about it. In case you get errors while running your site with PHP 7, please let me know.

    Thread Starter d_wolf

    (@d_wolf)

    Thank you so much!
    I’ve upgraded to php 7.0 and everything seems to work just fine
    thanks! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7 COMPATIBILITY’ is closed to new replies.