Annotation of embedaddon/php/ext/mcrypt/tests/bug35496.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #35496 (Crash in mcrypt_generic()/mdecrypt_generic() without proper init).
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("mcrypt")) print "skip"; ?>
                      5: --FILE--
                      6: <?php
                      7: $td = mcrypt_module_open('rijndael-256', '', 'ofb', '');
                      8: mcrypt_generic($td, "foobar");
                      9: mdecrypt_generic($td, "baz");
                     10: ?>
                     11: --EXPECTF--
                     12: Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug35496.php on line 3
                     13: 
                     14: Warning: mdecrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug35496.php on line 4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>