1--TEST--
2Test deprecated operation of password_hash()
3--FILE--
4<?php
5//-=-=-=-
6
7
8var_dump(password_hash("rasmuslerdorf", PASSWORD_BCRYPT, array("cost" => 7, "salt" => "usesomesillystringforsalt")));
9
10var_dump(password_hash("test", PASSWORD_BCRYPT, array("salt" => "123456789012345678901" . chr(0))));
11
12echo "OK!";
13?>
14--EXPECTF--
15Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in %s on line %d
16string(60) "$2y$07$usesomesillystringfore2uDLvp1Ii2e./U9C8sBjqp8I90dH6hi"
17
18Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in %s on line %d
19string(60) "$2y$10$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y"
20OK!
21