Doc #78390 [Nab->Ver]: PHP 7.4 now supports string password hash algorithms

From: Date: Fri, 09 Aug 2019 13:06:00 +0000
Subject: Doc #78390 [Nab->Ver]: PHP 7.4 now supports string password hash algorithms
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16870@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78390&edit=1 ID: 78390 Updated by: girgias@php.net Reported by: beebware at gmail dot com -Summary: Documentation fault: PHP 7.4 now supports string password hash algorithms +Summary: PHP 7.4 now supports string password hash algorithms -Status: Not a bug +Status: Verified Type: Documentation Problem Package: *Encryption and hash functions -Operating System: Windows +Operating System: -PHP Version: 7.4.0beta2 +PHP Version: 7.4.0 -Assigned To: +Assigned To: girgias Block user comment: N Private report: N New Comment: @requinix this is not entirely true, we did already document changes which will happen in PHP 7.4 (see array_merge for example) as these changes may get forgotten when it releases. Assigning to myself and will have a look next week. Previous Comments: ------------------------------------------------------------------------ [2019-08-09 12:43:47] requinix@php.net 7.4 hasn't been released yet. The documentation covers stable releases, not the latest betas. ------------------------------------------------------------------------ [2019-08-09 12:24:23] beebware at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=78390&edit=1

« previous php.doc.bugs (#16870) next »