New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.1 compatibility #16746
Comments
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
|
This did pop out in my Sentry emails for a user using
cc @Ayesh |
This comment has been minimized.
This comment has been minimized.
|
As @silverqx mentioned in #17219 (comment) there is still some PHP 8.1 deprecations as Twig did drop support for PHP 7.1 before releasing the fix for PHP 8.1: twigphp/Twig@47201dc#diff-d990abf52f11cd3e401869f86fb8ce9b4d7f966b0649372f4b95d23d9a88e249R40 This will make the next phpMyAdmin 5.1 non PHP 8.1 compatible, at least for people installing from our distributed bundles that start to be compatible at PHP 7.1. Hi @fabpot |
|
The last lib to be updated was released as https://github.com/code-lts/U2F-php-server/releases/tag/v1.2.0 |
…-server Signed-off-by: William Desportes <williamdes@wdes.fr>
This comment has been minimized.
This comment has been minimized.
|
php 8.0.13 no problem |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
@williamdes I have a very important observation, I tried to call |
Sure, this is a good solution for users having composer. It will install a newer version of Twig depending on the PHP version used locally Maybe we will have to patch Twig on the installed bundle, I doubt they will release a PHP 7.1 & PHP 8.1 compatible version |
|
@williamdes If that can help and if the diff is not too big, sure, we can probably re-add PHP 7.1 support for a "special" release. Anyone willing to investigate what that would mean? |
Oh, that's a very kind response !
If you know other fixes that could be nice, else I can investigate to find the PHP 8.1 fixes |
|
Ohh, they added php 8.1 support but dropped PHP 7.1 support, that is reason why you don't upgrade to latest twig? Why do we still need PHP 7.1 support? Latest Ubuntu LTS and even Debian Strech is packaged with PHP 7.4. |
Yes, but @fabpot did bring us some light, so it's possible that we will be okay if they release a patch version with 7.1 compat 5.1 versions are committed to PHP 7.1 support, 5.2 versions will drop 7.1 On the Debian packaging side this will be different as it is like if you installed everything from composer but from .deb files. So it should stretch quite well between 7.1 and 8.1.That said I still have some debian packaging work |
|
you will need update your twig for php8.1 and change func strftime (deprecated) to date() or IntlDateFormatter:: . goog luck. |
We need Twig to release a version to continue PHP 7.1 compat and 8.1 compat for 5.1 |
still existed the bugs. we try in macos. |
Did you try the latest 5.2 development version (phpMyAdmin 5.1+snapshot) ? You can try the latest 5.1 version in development (phpMyAdmin 5.1+snapshot) but you will have to run |
verify this is working sample no error with 5.2 development version |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Closes: #16746 Signed-off-by: William Desportes <williamdes@wdes.fr>
|
I test it later when there will be a snapshot @williamdes |
Right now ^^ |
|
I have tested it now and I'm not getting any deprecation warnings with the latest 5.1 snapshot anymore, thank you for fix @williamdes @fabpot ♥😁 |
|
Now that this has been fixed, when can we expect a deb-package for Linux Mint 20.x or Ubuntu Focal? |
Sure, please check out Wiki for install methods on Ubuntu/Debian |
OK, thanks, good to know! |
Describe the bug
Added to CI by #16743
To be fixed
Return type of PhpMyAdmin\Properties\Options\OptionsPropertyGroup::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange](30fac27, master: 5fb6efe)phpmyadmin/twig-i18n-extension(v4.0.1) (phpmyadmin/twig-i18n-extension@3881e51)bacon/bacon-qr-code: PHP 8.1 Deprecated: Implicit conversion from float to int loses precision Bacon/BaconQrCode#86samyoul/u2f-php-server: Add ReturnTypeWillChange to JsonSerializable implementations Samyoul/U2F-php-server#10tecnickcom/TCPDF: PHP 8.1: Fix implicit conversion from float to int tecnickcom/TCPDF#387 (released: tecnickcom/TCPDF@3cfc830)testsuite errors
Server configuration
The text was updated successfully, but these errors were encountered: