WPIntell

Source evidence

PHP 7 COMPATIBILITY

Custom Scrollbar · support · 2018-04-13T14:02:00+00:00

neutralsentiment
mediumseverity
0.53relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 18 rows with source links

5.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

17 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
d_wolf resolved
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 8 years, 1 month ago by d_wolf . Reason: typo The page I need help with: [ log in to see the link] 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. Thank you so much! I’ve upgraded to php 7.0 and everything seems to work just fine thanks! 🙂

Comments

2 shown
miunosoft 2018-04-14T00:13:00+00:00

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.

d_wolf 2018-04-15T05:31:00+00:00

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