Passing null to parameter #1 ($string) of type string is deprecated en PHP 8.2 / SPIP 4.2.10
Bonjour,
La fonction formulaire_recherche (déconseillée mais qui existe) génère un 'Deprecated' en PHP 8.2 / SPIP 4.2.10 :
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in inc\presentation_mini.php on line 283
Extrait de \ecrire\inc\presentation_mini.php :
function formulaire_recherche($page, $complement = '') { $recherche = _request('recherche'); $recherche_aff = entites_html($recherche); if (!strlen($recherche)) { ...
La fonction _request de SPIP retourne 'null' s'il n'y a ni GET, ni POST et la fonction strlen de PHP génère alors un 'Deprecated'.
Cordialement Equipement