Bug #78888 [NEW]: Wrong values for PASSWORD_BCRYPT and PASSWORD_DEFAULT
| From: | l-x at mailbox dot org | Date: | Fri, 29 Nov 2019 15:00:56 +0000 |
| Subject: | Bug #78888 [NEW]: Wrong values for PASSWORD_BCRYPT and PASSWORD_DEFAULT | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223950@lists.php.net to get a copy of this message | ||
From: l-x at mailbox dot org
Operating system: irrelevant
PHP version: 7.4.0
Package: *Encryption and hash functions
Bug Type: Bug
Bug description:Wrong values for PASSWORD_BCRYPT and PASSWORD_DEFAULT
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 bug report at https://bugs.php.net/bug.php?id=78888&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78888&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78888&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78888&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78888&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78888&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78888&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78888&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78888&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78888&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78888&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78888&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78888&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78888&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78888&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78888&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78888&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78888&r=mysqlcfg