]> granicus.if.org Git - php/commitdiff
test for bug #61124
authorOlivier DOUCET <odoucet@php.net>
Sat, 25 Feb 2012 13:27:57 +0000 (13:27 +0000)
committerOlivier DOUCET <odoucet@php.net>
Sat, 25 Feb 2012 13:27:57 +0000 (13:27 +0000)
ext/openssl/tests/bug61124.phpt [new file with mode: 0644]

diff --git a/ext/openssl/tests/bug61124.phpt b/ext/openssl/tests/bug61124.phpt
new file mode 100644 (file)
index 0000000..2fc192d
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--\r
+Bug #61124: Segmentation fault with openssl_decrypt\r
+--SKIPIF--\r
+<?php \r
+if (!extension_loaded("openssl")) die("skip");\r
+--FILE--\r
+<?php\r
+var_dump(openssl_decrypt('kzo w2RMExUTYQXW2Xzxmg==', 'aes-128-cbc', 'pass', false, 'pass'));\r
+\r
+--EXPECTF--\r
+Warning: openssl_decrypt(): Failed to base64 decode the input in %s on line %s\r
+bool(false)
\ No newline at end of file