]> granicus.if.org Git - php/commitdiff
Fix test: Use valid base64 even for invalid OpenSSL data
authorLauri Kenttä <lauri.kentta@gmail.com>
Mon, 11 Jul 2016 09:39:57 +0000 (12:39 +0300)
committerNikita Popov <nikic@php.net>
Fri, 22 Jul 2016 16:03:55 +0000 (18:03 +0200)
ext/openssl/tests/openssl_decrypt_error.phpt

index 44c2cd473d84acbd92e1670b4eab858674fbc7f3..b34397a65128c595fc57c3a70299494d511b9dad 100644 (file)
@@ -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);