Bug #80337 [NEW]: win7

From: Date: Sun, 08 Nov 2020 16:01:06 +0000
Subject: Bug #80337 [NEW]: win7
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230194@lists.php.net to get a copy of this message
From: malacca42 at gmail dot com Operating system: windows PHP version: 7.4.12 Package: OpenSSL related Bug Type: Bug Bug description:win7 Description: ------------ openssl cipher methods aes-128-ocb / aes-192-ocb / aes-256-ocb not working Test script: --------------- --TEST-- Test aes-128-ocb / aes-192-ocb / aes-256-ocb --FILE-- <?php function testDecrypt($method) { $str = 'foo'; $key = 'key'; $len = openssl_cipher_iv_length($method); $iv = openssl_random_pseudo_bytes($len); $encode = openssl_encrypt($str, $method, $key, 0, $iv); $decode = openssl_decrypt($encode, $method, $key, 0, $iv); var_dump($decode === $key); } testDecrypt('aes-128-ocb'); testDecrypt('aes-192-ocb'); testDecrypt('aes-256-ocb'); ?> --EXPECTF-- bool(true) bool(true) bool(true) Expected result: ---------------- bool(true) bool(true) bool(true) Actual result: -------------- bool(false) bool(false) bool(false) -- Edit bug report at https://bugs.php.net/bug.php?id=80337&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80337&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80337&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80337&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80337&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80337&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80337&r=support Expected behavior: https://bugs.php.net/fix.php?id=80337&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80337&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80337&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80337&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80337&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80337&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80337&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80337&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80337&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80337&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80337&r=mysqlcfg

« previous php.bugs (#230194) next »