1--TEST-- 2Test removed support for explicit salt option 3--SKIPIF-- 4<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> 5--FILE-- 6<?php 7//-=-=-=- 8 9 10var_dump(strlen(password_hash("rasmuslerdorf", PASSWORD_BCRYPT, array("cost" => 7, "salt" => "usesomesillystringforsalt")))); 11 12var_dump(strlen(password_hash("test", PASSWORD_BCRYPT, array("salt" => "123456789012345678901" . chr(0))))); 13 14echo "OK!"; 15?> 16--EXPECTF-- 17Warning: password_hash(): The "salt" option has been ignored, since providing a custom salt is no longer supported in %s on line %d 18int(60) 19 20Warning: password_hash(): The "salt" option has been ignored, since providing a custom salt is no longer supported in %s on line %d 21int(60) 22OK! 23