PHP version issue with WP-CLI support
-
Are you trying to maintain compatibility with older versions of PHP, as some plugin authors are doing? The new wp-cli support seems to break the plugin in my older environment.
Web hosting environment: Red Hat 6, which is PHP 5.3.3 (plus a ton of backported security and bug fixes), running any wp-cli command on the site errors out in what appears to be a PHP 5.4 type array constructor:
PHP Parse error: syntax error, unexpected '[' in /var/www/html/hrpo-test.wustl.edu/wp-content/plugins/restricted-site-access/wp-cli.php on line 356
CentOS 6 should be functionally equivalent, if you need a way to reproduce this.
The plugin itself at first glance appears to work just fine, it’s only when the wp-cli file is included (which normally only happens when using wp-cli, obviously).
- The topic ‘PHP version issue with WP-CLI support’ is closed to new replies.