Metainformationen zur Seite
Testing your Plugin with PHP8.x
Developers only
Note! These instructions are for plugin developers only! And they will only work on Debian 12 (Bookworm)!
In Debian 12 (Bookworm) the PHP package moved from Version 7.4 (Debian Bullseye) to Version 8.2. While this is a great step forward for PHP, there are many incompatibilities with older php scripts. MOst php scripts must at least slighty be adjusted to be compatible with PHP 8.x.
Here's a list of known incompatibilities: https://www.php.net/manual/en/migration80.incompatible.php
Since most of our own core scripts in LoxBerry are still not compatible with PHP 8.x and we think also a lot of scripts in plugins will throw errors in V8.x, we decided to make PHP 7.4 still the standard php version with Bookworm and LoxBerry. So there should be no problems at the moment.
But we will definetely switch to PHP 8.x with the next Debian Release 13 (currently no release date). So please prepare yourself and make your plugin compatible with PHP 8.x!
If you already have a Bookworm based LoxBerry system, you can switch between PHP 7.4 and PHP 8.2 for testing your plugin.
Switch LoxBerry to PHP 8.2
Please execute the following commands as root:
update-alternatives –set php /usr/bin/php8.2
a2dismod php*
a2enmod php8.2
systemctl restart apache2
Check out the following URL to verify you are now on the right PHP version: http://loxberry/admin/system/testing/phpinfo.php
Switch LoxBerry back to PHP 7.4
Please execute the following commands as root:
update-alternatives –set php /usr/bin/php7.4
a2dismod php*
a2enmod php7.4
systemctl restart apache2
Check out the following URL to verify you are now on the right PHP version: http://loxberry/admin/system/testing/phpinfo.php