File tree Expand file tree Collapse file tree 5 files changed +13
-4
lines changed
Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Standard:
2525 . Partly fix GH-12143 (Incorrect round() result for 0.49999999999999994).
2626 (timwolla)
2727 . Fix GH-12252 (round(): Validate the rounding mode). (timwolla)
28+ . Increase the default BCrypt cost to 12. (timwolla)
2829
2930XSL:
3031 . Implement request #64137 (XSLTProcessor::setParameter() should allow both
Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ PHP 8.4 UPGRADE NOTES
8080 would have resulted in 1.0 instead of the correct result 0.0. Additional
8181 inputs might also be affected and result in different outputs compared to
8282 earlier PHP versions.
83+ . The default value of the 'cost' option for PASSWORD_BCRYPT for password_hash()
84+ has been increased from '10' to '12'.
85+
86+ RFC: https://wiki.php.net/rfc/bcrypt_cost_2023
8387
8488========================================
85896. New Functions
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ PHP_MINIT_FUNCTION(password);
2222PHP_MSHUTDOWN_FUNCTION (password );
2323
2424#define PHP_PASSWORD_DEFAULT PHP_PASSWORD_BCRYPT
25- #define PHP_PASSWORD_BCRYPT_COST 10
25+ #define PHP_PASSWORD_BCRYPT_COST 12
2626
2727#ifdef HAVE_ARGON2LIB
2828/**
Original file line number Diff line number Diff line change 11--TEST--
22Test normal operation of password_hash()
3+ --SKIPIF--
4+ <?php if (getenv ("SKIP_SLOW_TESTS " )) die ("skip slow test " ); ?>
35--FILE--
46<?php
57//-=-=-=-
68
7- var_dump (strlen ( password_hash ("foo " , PASSWORD_BCRYPT ) ));
9+ var_dump (password_hash ("foo " , PASSWORD_BCRYPT ));
810
911$ algos = [
1012 PASSWORD_BCRYPT ,
@@ -19,8 +21,8 @@ foreach ($algos as $algo) {
1921
2022echo "OK! " ;
2123?>
22- --EXPECT --
23- int (60)
24+ --EXPECTF --
25+ string (60) "$2y$12$%s"
2426bool(true)
2527bool(true)
2628bool(true)
Original file line number Diff line number Diff line change 11--TEST--
22Test removed support for explicit salt option
3+ --SKIPIF--
4+ <?php if (getenv ("SKIP_SLOW_TESTS " )) die ("skip slow test " ); ?>
35--FILE--
46<?php
57//-=-=-=-
You can’t perform that action at this time.
0 commit comments