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--EXPECT--
24bool(false)
25bool(false)
26bool(false)
27bool(true)
28bool(false)
29bool(true)
30bool(false)
31OK!
32