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:

https://launchpad.net/~ondrej/+archive/php5


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -