Are you Having Compatibility Issues with PHP 8 and your WooCommerce Plugins?
We have had PHP 8 error reports from customers experiencing compatibility issues with their OPMC WooCommerce plugins. Although most of OPMC’s plugin’s support PHP 8, there are some plugins that fail to connect with the programming language but will be scheduled for compatibility in our Q4 2022 roadmap.
If you and your business are impacted by this, please reach out to our support team for further details by raising a support ticket here: https://woocommerce.com/my-account/create-a-ticket/
What is PHP8?
A programming language WooCommerce uses as its main communication in WordPress development. The server-side scripting language is encoded with HTML to develop dynamic websites, static websites and web applications. PHP programming language is the main language used in WordPress development and PHP 8.0 is a major update of this.
Some of the improvements made in PHP8 include:
- Introduction of a number of more efficient ways to write code, ie. Achieve the same outcome with fewer lines of code.
- Better error handling with more descriptive errors.
- Easier documentation of code.
- Introduction of a Just-in-time (JIT) compiler that improves performance. PHP 8.0 can handle 18.4% more requests per second than PHP 7.4.
- The OPcache extension will store precompiled script bytecode in shared memory so it will not need to parse scripts on every request.
- New functions, making string manipulation easier.
- Improvements to Object Oriented Coding, including Abstract classes and Inheritance.
- While PHP 8 is mostly backwards compatible, however, if you introduce union types under PHP 8 they would break if you tried to run a lower PHP version. Also, using named arguments in PHP 8 may also cause issues on lower versions of PHP.
- Stricter type checking, more stringent error messaging and removal of some deprecated functions can improve security.
More technical info on PHP 8 can be found here: https://www.php.net/releases/8.0/en.php
If you and your business are impacted by this, please reach out to our support team for further details by raising a support ticket.
How does PHP8 affect the XML-RPC model for OPMC’s Odoo integration for WooCommerce?