Bug #76360 [NEW]: PASSWORD_ARGON2I is an undefined constant

From: Date: Sun, 20 May 2018 23:13:27 +0000
Subject: Bug #76360 [NEW]: PASSWORD_ARGON2I is an undefined constant
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215309@lists.php.net to get a copy of this message
From: jr at geeshoe dot com Operating system: Debian 9 PHP version: 7.2.5 Package: *Encryption and hash functions Bug Type: Bug Bug description:PASSWORD_ARGON2I is an undefined constant Description: ------------ When attempting to use password_hash with PASSWORD_ARGON2I as the algo, PHP throws 2 warnings. 1 - Undefined constant PASSWORD_ARGON2I 2 - password_hash() expects parameter 2 to be integer, string given. Test script: --------------- <?php echo phpversion(); echo password_hash('password', PASSWORD_ARGON2I); Expected result: ---------------- 7.2.5 ...some hash.... Actual result: -------------- /usr/local/bin/php /-REDACTED-/test.php 7.2.5 Warning: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' (this will throw an Error in a future version of PHP) in /-REDACTED-/test.php on line 3 PHP Warning: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' (this will throw an Error in a future version of PHP) in /-REDACTED-/test.php on line 3 Call Stack: PHP Stack trace: 0.0001 387040 1. {main}() /-REDACTED-/test.php:0 PHP 1. {main}() /-REDACTED-/test.php:0 PHP Warning: password_hash() expects parameter 2 to be integer, string given in /-REDACTED-/test.php on line 3 PHP Stack trace: Warning: password_hash() expects parameter 2 to be integer, string given in /-REDACTED-/test.php on line 3 PHP 1. {main}() /-REDACTED-/test.php:0 PHP 2. password_hash() /-REDACTED-/test.php:3 Call Stack: 0.0001 387040 1. {main}() /-REDACTED-/test.php:0 0.0001 387072 2. password_hash() /-REDACTED-/test.php:3 Process finished with exit code 0 -- Edit bug report at https://bugs.php.net/bug.php?id=76360&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76360&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76360&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76360&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76360&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76360&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76360&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76360&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76360&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76360&r=support Expected behavior: https://bugs.php.net/fix.php?id=76360&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76360&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76360&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76360&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76360&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76360&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76360&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76360&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76360&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76360&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76360&r=mysqlcfg

« previous php.bugs (#215309) next »