projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e613889
)
test for bug #61124
author
Olivier DOUCET
<odoucet@php.net>
Sat, 25 Feb 2012 13:27:57 +0000
(13:27 +0000)
committer
Olivier 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]
patch
|
blob
diff --git a/ext/openssl/tests/bug61124.phpt
b/ext/openssl/tests/bug61124.phpt
new file mode 100644
(file)
index 0000000..
2fc192d
--- /dev/null
+++ b/
ext/openssl/tests/bug61124.phpt
@@ -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