mysql - php error with password_verify with ubuntu but works fine on xampp -
i have code validates password:
if(password_verify($password, $member['passwd'])){ // set session variables }
after verifying password redirects user home page. have verified query successful db , $member['passwd'] exists , correct password. appears php script stops running @ line. echo's added after don't executed.
but when run on mac xampp works fine , able log user in. code same. have idea issue may be? working 2 weeks ago , there no major code change have caused this. issue ubuntu/package update.
system info: running php version 5.3.10-1ubuntu3.10 on ubuntu 12.04.3 x64 error occurring. locally using xampp mac , it's running php version 5.5.6.
password_verify
supported on php 5.5+
it throwing error have turned off displaying errors setting display_errors
false in php.ini
.
you can either upgrade or use compatibility library:
https://github.com/ircmaxell/password_compat
to upgrade can use ppa provides later version of php version of ubuntu using:
Comments
Post a Comment