1--TEST-- 2Test normal operation of password_verify) 3--FILE-- 4<?php 5//-=-=-=- 6 7var_dump(password_verify(123, 123)); 8 9var_dump(password_verify("foo", '$2a$07$usesomesillystringforsalt$')); 10 11var_dump(password_verify('rasmusler', '$2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi')); 12 13var_dump(password_verify('rasmuslerdorf', '$2a$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi')); 14 15var_dump(password_verify("foo", null)); 16 17var_dump(password_verify("rasmuslerdorf", "rl.3StKT.4T8M")); 18 19var_dump(password_verify("foo", "$1")); 20 21echo "OK!"; 22?> 23--EXPECTF-- 24bool(false) 25bool(false) 26bool(false) 27bool(true) 28 29Deprecated: password_verify(): Passing null to parameter #2 ($hash) of type string is deprecated in %s on line %d 30bool(false) 31bool(true) 32bool(false) 33OK! 34