php-buildpack: Critical: Argon2 algorithm not working in latest PHP 7.2

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.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 18 (5 by maintainers)

Most upvoted comments

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.