Bug #80297 [NEW]: password_verify won't work with double quotes

From: Date: Thu, 29 Oct 2020 18:50:49 +0000
Subject: Bug #80297 [NEW]: password_verify won't work with double quotes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230014@lists.php.net to get a copy of this message
From: brennen at swedecreek dot com Operating system: PHP version: Irrelevant Package: *Encryption and hash functions Bug Type: Bug Bug description:password_verify won't work with double quotes Description: ------------ When using double quotes around $hash in password_verify, it always returns false. You have to use double quotes. Test script: --------------- if(password_verify("helloworld", "$2y$10$nqqnTXGG/W4kNWDQ6Zlx8uNbduUfYmn/iS7eKOj9fbG6iVa.3dOAi")) { echo "Success"; } else { echo "Fail"; } Expected result: ---------------- Success Actual result: -------------- Fail -- Edit bug report at https://bugs.php.net/bug.php?id=80297&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80297&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80297&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80297&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80297&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80297&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80297&r=support Expected behavior: https://bugs.php.net/fix.php?id=80297&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80297&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80297&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80297&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80297&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80297&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80297&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80297&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80297&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80297&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80297&r=mysqlcfg

« previous php.bugs (#230014) next »