Bug #78516 [NEW]: password_hash(): Memory cost is outside of allowed memory range

From: Date: Mon, 09 Sep 2019 10:17:58 +0000
Subject: Bug #78516 [NEW]: password_hash(): Memory cost is outside of allowed memory range
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222640@lists.php.net to get a copy of this message
From: patrick at heppler dot net Operating system: CentOS 7.6 PHP version: 7.4.0RC1 Package: hash related Bug Type: Bug Bug description:password_hash(): Memory cost is outside of allowed memory range Description: ------------ Using password_hash with PASSWORD_ARGON2I or PASSWORD_ARGON2ID and a memory_cost of less than 8192 throws: password_hash(): Memory cost is outside of allowed memory range Test script: --------------- password_hash('secret',PASSWORD_ARGON2ID,['memory_cost'=>8191]) password_hash('secret',PASSWORD_ARGON2I,['memory_cost'=>8191]) Expected result: ---------------- A hashed password Actual result: -------------- PHP Warning: password_hash(): Memory cost is outside of allowed memory range -- Edit bug report at https://bugs.php.net/bug.php?id=78516&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78516&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78516&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78516&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78516&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78516&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78516&r=support Expected behavior: https://bugs.php.net/fix.php?id=78516&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78516&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78516&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78516&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78516&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78516&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78516&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78516&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78516&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78516&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78516&r=mysqlcfg

« previous php.bugs (#222640) next »