dapphp / securimage

PHP CAPTCHA Script
https://github.com/dapphp/securimage
BSD 2-Clause "Simplified" License
568 stars 190 forks source link

Deprecated with php v8.2 #118

Open LVWRZ opened 10 months ago

LVWRZ commented 10 months ago

Hi! copy/paste error notification

Deprecated: Creation of dynamic property Securimage::$code_entered is deprecated in /srv/vhost/terramagica.es/home/html/pre_reservas/funciones/securimage/securimage.php on line 1028

Deprecated: Creation of dynamic property Securimage::$correct_code is deprecated in /srv/vhost/terramagica.es/home/html/pre_reservas/funciones/securimage/securimage.php on line 1029

Warning: No captcha ID supplied to Securimage::check(). Captcha code cannot be validated in /srv/vhost/terramagica.es/home/html/pre_reservas/funciones/securimage/securimage.php on line 1059

Do you can I help me work arround this? Thank you in avdance.

flipreverse commented 7 months ago

@LVWRZ Have a look at my fork: https://github.com/flipreverse/securimage I've just fixed some PHP 8.2 deprecated warnings including a quick and dirty try for your isse.