You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FILE: .../wp-content/plugins/paypal-for-woocommerce/classes/lib/CentinelClient.php
122 | ERROR | The use of function split is discouraged from PHP version 5.3 and forbidden from PHP version 7.0; use preg_split instead
123 | ERROR | The use of function split is discouraged from PHP version 5.3 and forbidden from PHP version 7.0; use preg_split instead
135 | ERROR | The use of function split is discouraged from PHP version 5.3 and forbidden from PHP version 7.0; use preg_split instead
Hi,
We just checked our website with WP Engine PHP Compatibility Checker ( https://wordpress.org/plugins/php-compatibility-checker/ ). It uses squizlabs/php_codesniffer, wimg/php-compatibility,... for checkings.
We found these lines:
FILE: .../wp-content/plugins/paypal-for-woocommerce/classes/lib/CentinelClient.php
122 | ERROR | The use of function split is discouraged from PHP version 5.3 and forbidden from PHP version 7.0; use preg_split instead
123 | ERROR | The use of function split is discouraged from PHP version 5.3 and forbidden from PHP version 7.0; use preg_split instead
135 | ERROR | The use of function split is discouraged from PHP version 5.3 and forbidden from PHP version 7.0; use preg_split instead
http://php.net/manual/en/function.split.php
http://php.net/manual/en/function.explode.php
So, the simplest (and best) solution is replace split with explode.
I created pull request #551
Sasa
The text was updated successfully, but these errors were encountered: