Doc #78390 [NEW]: Documentation fault: PHP 7.4 now supports string password hash algorithms
| From: | beebware at gmail dot com | Date: | Fri, 09 Aug 2019 12:24:23 +0000 |
| Subject: | Doc #78390 [NEW]: Documentation fault: PHP 7.4 now supports string password hash algorithms | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-16868@lists.php.net to get a copy of this message | ||
From: beebware at gmail dot com
Operating system: Windows
PHP version: 7.4.0beta2
Package: *Encryption and hash functions
Bug Type: Documentation Problem
Bug description:Documentation fault: PHP 7.4 now supports string password hash algorithms
Description:
------------
---
From manual page: https://php.net/function.password-needs-rehash
And https://www.php.net/password_hash
---
Currently reads:
password_hash ( string $password , int $algo [, array $options ] ) :
string
password_needs_rehash ( string $hash , int $algo [, array $options ] ) :
bool
however, PHP 7.4 has changed the password algorithms to strings so it
should be:
password_hash ( string $password , int|string $algo [, array $options ]
) : string
password_needs_rehash ( string $hash , int|string $algo [, array
$options ] ) : bool
(or mixed)
--
Edit bug report at https://bugs.php.net/bug.php?id=78390&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78390&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78390&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78390&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78390&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78390&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78390&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78390&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78390&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78390&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78390&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78390&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78390&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78390&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78390&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78390&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78390&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78390&r=mysqlcfg