Bonjour, j'ai fait un upgrade vers 16.0.
J'ai eu un message :
Non-canonical cast (boolean) is deprecated, use the (bool) cast instead
J'ai trouvé ceci relatif à PHP 8.5:
To avoid the deprecation, replace the cast to the canonical scalar type:
- (integer) $value; // int(42)
+ (int) $value; // int(42)
- (double) $value; // float(42)
+ (float) $value; // float(42)
- (boolean) $value; // bool(true)
+ (bool) $value; // bool(true)
-(binary) $value; // string(3) "foo"
+(string) $value; // string(3) "foo"
In PHP 9.0 and later, PHP will no longer recognize (integer|boolean|double|binary) casts, and will consider them as a cast to a class with the same name instead.
J'ai effectué tous ces changements dans piwigo et tout a l'air de fonctionner.
Version de Piwigo: 16.0
Version de PHP: 8.5
Hors ligne
Bonjour
J'ai installé un piwigo de test en php 8.5 j'ai eu le même problème avec une nouvelle installation sur la première page où il y a les infos de connexion.
php 8.5
mysql 9.5
A très vite
Hors ligne
voici les changements que j'ai effectués :
• piwigo\include\functions_search.inc.php ligne 1868 :
isset($options['permissions']) ? (boolean)$options['permissions'] : true,
--> isset($options['permissions']) ? (bool)$options['permissions'] : true,
• piwigo\include\smarty\src\TemplateBase.php ligne 107 :
[$object, (array)$allowed_methods_properties, (boolean)$format, (array)$block_methods];
--> [$object, (array)$allowed_methods_properties, (bool)$format, (array)$block_methods];
• piwigo\admin\include\functions.php ligne 2586 :
$status = (integer) $m[2];
--> $status = (int) $m[2];
Hors ligne