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