php compatibility
-
Hi,
I have been using Plainview Protect Passwords with our WordPress site with no problems. At present the site is running under WorPress 4.7.9 and php 7.0.28. I intend to update to latest php (7.2) and WordPress (4.9.4) versions as soon as possible. When I have checked the php compatibility of Plainview Protect Passwords using the WordPress plugin ‘PHP Compatibility Checker’ by WPengine I receive a report with 15 warnings and 3 errors.
Please can you tell me if the plugin will work correctly under php 7.1 /php 7.2 ?Thanks in advance
The output from the report is:
Name: Plainview Protect Passwords
FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/traits/container.php
———————————————————————————————————————————————————————–
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
———————————————————————————————————————————————————————–
80 | WARNING | Method name “container::__toString_after_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
90 | WARNING | Method name “container::__toString_after_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
100 | WARNING | Method name “container::__toString_before_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
110 | WARNING | Method name “container::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
———————————————————————————————————————————————————————–FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/fieldset.php
——————————————————————————————————————————————————————
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————————————————————————————
22 | WARNING | Method name “fieldset::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
——————————————————————————————————————————————————————FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/inputfieldset.php
————————————————————————————————————————————————————————–
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
————————————————————————————————————————————————————————–
19 | WARNING | Method name “inputfieldset::__toString_before_container” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
30 | WARNING | Method name “inputfieldset::__toString_before_inputs” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
————————————————————————————————————————————————————————–FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/traits/db_aware_object.php
————————————————————————————————————————————————————-
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
————————————————————————————————————————————————————-
76 | WARNING | Method name “db_aware_object::__db_delete” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
95 | WARNING | Method name “db_aware_object::__db_insert” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
114 | WARNING | Method name “db_aware_object::__db_load” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
133 | WARNING | Method name “db_aware_object::__db_update” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
————————————————————————————————————————————————————-FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/traits/db_aware_object.php
————————————————————————————————————————————————————
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
————————————————————————————————————————————————————
14 | WARNING | Method name “db_aware_object::__db_delete” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
23 | WARNING | Method name “db_aware_object::__db_update” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
41 | WARNING | Method name “db_aware_object::__db_insert” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
53 | WARNING | Method name “db_aware_object::__db_load” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
————————————————————————————————————————————————————FILE: wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/updater/edd.php
————————————————————————————————————————-
FOUND 1 ERROR AFFECTING 1 LINE
————————————————————————————————————————-
291 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
————————————————————————————————————————-FILE: wp-content/plugins/plainview-protect-passwords/src/traits/admin_menu.php
————————————————————————————————————
FOUND 2 ERRORS AFFECTING 2 LINES
————————————————————————————————————
37 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
136 | ERROR | Using a call-time pass-by-reference is deprecated since PHP 5.3 and prohibited since PHP 5.4
————————————————————————————————————
- The topic ‘php compatibility’ is closed to new replies.