Bug #78888 [Opn->Nab]: Wrong values for PASSWORD_BCRYPT and PASSWORD_DEFAULT
| From: | cmb@php.net | Date: | Fri, 29 Nov 2019 15:06:14 +0000 |
| Subject: | Bug #78888 [Opn->Nab]: Wrong values for PASSWORD_BCRYPT and PASSWORD_DEFAULT | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223951@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78888&edit=1
ID: 78888
Updated by: cmb@php.net
Reported by: l-x at mailbox dot org
Summary: Wrong values for PASSWORD_BCRYPT and
PASSWORD_DEFAULT
-Status: Open
+Status: Not a bug
Type: Bug
Package: *Encryption and hash functions
Operating System: irrelevant
PHP Version: 7.4.0
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
See <https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.core.password-algorithm-constants>.
Previous Comments:
------------------------------------------------------------------------
[2019-11-29 15:00:56] l-x at mailbox dot org
Description:
------------
Wrong values for PASSWORD_BCRYPT and PASSWORD_DEFAULT
https://3v4l.org/54crg
Test script:
---------------
<?php
var_dump([
PASSWORD_BCRYPT,
PASSWORD_DEFAULT
]);
Expected result:
----------------
array(2) {
[0]=>
int(1)
[1]=>
int(1)
}
Actual result:
--------------
array(2) {
[0]=>
string(2) "2y"
[1]=>
NULL
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78888&edit=1