mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
ae07423bcd
proper init).
15 lines
524 B
PHP
15 lines
524 B
PHP
--TEST--
|
|
Bug #35496 (Crash in mcrypt_generic()/mdecrypt_generic() without proper init).
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$td = mcrypt_module_open('rijndael-256', '', 'ofb', '');
|
|
mcrypt_generic($td, "foobar");
|
|
mdecrypt_generic($td, "baz");
|
|
?>
|
|
--EXPECTF--
|
|
Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %s/bug35496.php on line 3
|
|
|
|
Warning: mdecrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %s/bug35496.php on line 4
|