question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Critical: Argon2 algorithm not working in latest PHP 7.2

See original GitHub issue

Buildpack 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
astrieannacommented, Aug 15, 2018

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.

1reaction
sclevinecommented, Dec 31, 2017

Seems like other binary distributions of PHP 7.2 have this enabled (or are planning to enable it). Prioritizing this for next week.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found