php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76716 PASSWORD_ARGON2I not always being available not documented.
Submitted: 2018-08-07 12:58 UTC Modified: 2018-08-07 21:36 UTC
From: phpdoc at mail dot my1 dot info Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: -
Private report: No CVE-ID: None
 [2018-08-07 12:58 UTC] phpdoc at mail dot my1 dot info
Description:
------------
---
From manual page: http://www.php.net/function.password-hash
---

According to the relevant RFC at [1] Argon2i via password_hash() is not only optional but needs extra work for inclusion into the respective PHP installation unless one uses a precompiled build with everything inside (e.g. PHP's official Windows builds), this leads to it being unavailable at some webhosters which, while not being really great, leads to a whole different problem.

one cannot expect Argon2i to be available just because PHP is 7.2 (and Argon2id on 7.3 respectively), meaning users need to know that the PHP Version is NOT the correct way to judge Argon2 availability, and that they will need to check for it even if the PHP is new enough, and either fail gracefully or at least fall back to default.

[1]
https://wiki.php.net/rfc/argon2_password_hash


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-07 21:36 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=345440
Log: Fix #76716: PASSWORD_ARGON2I not always being available not documented
 [2018-08-07 21:36 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-08-07 21:36 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=ab387e780b4ea79292046b739978183299787552
Log: Fix #76716: PASSWORD_ARGON2I not always being available not documented
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 22:00:01 2026 UTC