From 76f6f3583ce466aa5cf76d3be3deba04e4935f18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lauri=20Kentt=C3=A4?= Date: Mon, 11 Jul 2016 12:39:57 +0300 Subject: [PATCH] Fix test: Use valid base64 even for invalid OpenSSL data --- ext/openssl/tests/openssl_decrypt_error.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openssl/tests/openssl_decrypt_error.phpt b/ext/openssl/tests/openssl_decrypt_error.phpt index 44c2cd473d..b34397a651 100644 --- a/ext/openssl/tests/openssl_decrypt_error.phpt +++ b/ext/openssl/tests/openssl_decrypt_error.phpt @@ -7,7 +7,7 @@ openssl_decrypt() error tests $data = "openssl_decrypt() tests"; $method = "AES-128-CBC"; $password = "openssl"; -$wrong = "wrong"; +$wrong = base64_encode("wrong"); $iv = str_repeat("\0", openssl_cipher_iv_length($method)); $encrypted = openssl_encrypt($data, $method, $password); -- 2.40.0