[pmwiki-users] New warnings with php 8.1.2

Petko Yotov 5ko at 5ko.fr
Wed Feb 9 03:24:28 PST 2022


Thanks, added for 2.3.2.

Petko

On 07/02/2022 15:12, Dominique Faure wrote:
> Hi,
> 
> Toying with the prerelease on an updated php8.1-fpm (8.1.2), I got
> another set of deprecation warnings:
> 
> Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type
> string is deprecated in /home/debian/websites/X/pmwiki.php on line
> 1595
> Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type
> string is deprecated in /home/debian/websites/X/pmwiki.php on line
> 1599
> 
> Which can be easily removed by inserting at 1595 the following line:
> 
> $fmt = strval($fmt);
> 
> But I'm not sure this would be optimal.
> 
> Regards,
> Dominique
> 



More information about the pmwiki-users mailing list