Critical: Argon2 algorithm not working in latest PHP 7.2
See original GitHub issueBuildpack version: 4.3.46 Nginx version: 1.13.7 PHP version: 7.2.0
I have absolutely no idea how it is possible but when I try to use password_hash($pwd, PASSWORD_ARGON2I)
on Cloud Foundry (via IBM Cloud) that should work in PHP 7.2 (and it actually works on my local PHP 7.2.0 environment), I get this: use of undefined constant PASSWORD_ARGON2I
, so it doesn’t work at all.
Maybe this issue is related to my second issue with sodium that should also works but doesn’t.
It’s really weird. Maybe broken source https://buildpacks.cloudfoundry.org/dependencies/php7/php7-7.2.0-linux-x64-1d0ba22b.tgz?
I will do more research.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:18 (5 by maintainers)
Top Results From Across the Web
Compile PHP 7.2 with Argon2 - Plesk UserVoice
Also the latest versions 7.4.8, 7.3.20 and 7.2.32 do NOT support argon2. ... Argon2 is the recommended password hashing algorithm from Typo3 ...
Read more >Travis CI: PHP 7.2 don't support Argon2i - Stack Overflow
This is strange. I would have expected this algorithm to be part of the default PHP 7.2 build, just as other hash algorithms....
Read more >Lack of interest - Allow Argon2 as password hashing algorithm
Argon2 will be the standard password hashing algorithm in PHP 7.2. It would be great if XF2 added support for this algorithm.
Read more >password_hash - Manual - PHP
PASSWORD_ARGON2I - Use the Argon2i hashing algorithm to create the hash. This algorithm is only available if PHP has been compiled with Argon2...
Read more >What's New in PHP 7.2? - Medium
Argon 2 is an award-winning hashing algorithm. ... These features will work in PHP 7.2, but error messages will appear during use in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @noo-zh @respinoza, this story is tagged
scheduled
because it’s in our backlog. You can see our public backlog here https://www.pivotaltracker.com/n/projects/1042066 ; the story for this issue is https://www.pivotaltracker.com/story/show/153864475 .While the backlog is always changing, it currently looks like we’d get to this story in the next few weeks.
Seems like other binary distributions of PHP 7.2 have this enabled (or are planning to enable it). Prioritizing this for next week.