dapphp / securimage

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

Captcha not worked in PHP 7.3.0 #83

Closed ghost closed 5 years ago

ghost commented 5 years ago

Validation stopped working after version upgrade! It used to be php 7.0. The new php issued a warning and I had to add such a line before session_start: session_save_path($_SERVER['DOCUMENT_ROOT'].'/tmp'); And now checking captcha: if(!(new Securimage())->check($_POST['code']))` not worked. In folder tmp create's file sess_10053rpm3n10dsa19392nlh9et

securimage_code_disp|a:1:{s:7:"default";s:7:"cyhm8sc";}securimage_code_value|a:1:{s:7:"default";s:7:"cyhm8sc";}securimage_code_ctime|a:1:{s:7:"default";i:1546968058;}securimage_code_audio|a:1:{s:7:"default";N;} insert code cyhm8sc and not worked

ghost commented 5 years ago

The problem is not in the sessions, the program is buggy, and now I will offer a correction

ghost commented 5 years ago

other bug