diff options
author | Derick Rethans <derick@php.net> | 2007-05-01 16:04:33 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2007-05-01 16:04:33 +0000 |
commit | 047ccbc0c2bf7e9314cc5a1c94369cdec73947e3 (patch) | |
tree | e1bd877df92796acebb71b968b521d039f020f2a /ext | |
parent | e0cab445954996333593eeb3975c34afe19bda08 (diff) | |
download | php-git-047ccbc0c2bf7e9314cc5a1c94369cdec73947e3.tar.gz |
- MFH: Added test case for bug #41252.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mcrypt/tests/bug41252.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/mcrypt/tests/bug41252.phpt b/ext/mcrypt/tests/bug41252.phpt new file mode 100644 index 0000000000..481fc54984 --- /dev/null +++ b/ext/mcrypt/tests/bug41252.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #41252 (Calling mcrypt_generic without first calling mcrypt_generic_init crashes) +--SKIPIF-- +<?php if (!extension_loaded("mcrypt")) print "skip"; ?> +--FILE-- +<?php +$td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, ''); +echo mcrypt_generic($td,'aaaaaaaa'); +print "I'm alive!\n"; +?> +--EXPECTF-- +Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug41252.php on line 3 +I'm alive! |