Hi, I have a site with wp-defender 2.2.6 + Php 5.6.40-0+deb8u1 and since Feb 17, I am getting this errors while running wp-cron:
PHP Parse error: syntax error, unexpected 'do' (T_DO), expecting identifier (T_STRING) in /var/www/.../wp-content/plugins/wp-defender/app/module/scan/component/scanning.php on line 19
Indeed, there is a do() method in scanning.php. If I change that method and its invocations with i.e. do2() then all works fine.
grep -r "do2()" /var/www/site/wp-content/plugins/wp-defender/
/var/www/site/wp-content/plugins/wp-defender/app/module/scan/component/scanning.php: public function do2() {
/var/www/site/wp-content/plugins/wp-defender/app/module/scan/controller/rest.php: $ret = $scanning->do2();
/var/www/site/wp-content/plugins/wp-defender/app/module/scan/controller/main.php: $ret = $scanning->do2();
/var/www/site/wp-content/plugins/wp-defender/app/component/cli.php: $is_done = $scanning->do2();
/var/www/site/wp-content/plugins/wp-defender/app/controller/dashboard.php: $ret = $scanning->do2();
Regards,