summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/bug72362.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/tests/bug72362.phpt')
-rw-r--r--ext/openssl/tests/bug72362.phpt22
1 files changed, 20 insertions, 2 deletions
diff --git a/ext/openssl/tests/bug72362.phpt b/ext/openssl/tests/bug72362.phpt
index 40acdbed0c..cd6ec1e838 100644
--- a/ext/openssl/tests/bug72362.phpt
+++ b/ext/openssl/tests/bug72362.phpt
@@ -6,8 +6,26 @@ if (!extension_loaded("openssl")) die("skip openssl not loaded");
?>
--FILE--
<?php
-var_dump(bin2hex(openssl_encrypt("this is a test string","bf-ecb","12345678", OPENSSL_RAW_DATA | OPENSSL_DONT_ZERO_PAD_KEY)));
-var_dump(bin2hex(openssl_encrypt("this is a test string","bf-ecb","1234567812345678" , OPENSSL_RAW_DATA)));
+var_dump(
+ bin2hex(
+ openssl_encrypt(
+ "this is a test string",
+ "bf-ecb",
+ "12345678",
+ OPENSSL_RAW_DATA | OPENSSL_DONT_ZERO_PAD_KEY
+ )
+ )
+);
+var_dump(
+ bin2hex(
+ openssl_encrypt(
+ "this is a test string",
+ "bf-ecb",
+ "1234567812345678",
+ OPENSSL_RAW_DATA
+ )
+ )
+);
?>
--EXPECT--
string(48) "e3214d1b16e574828c8a3e222202dde81afd1ad2cb165ab3"