mirror of
https://github.com/php/php-src.git
synced 2025-01-23 12:13:37 +08:00
14 lines
469 B
PHP
14 lines
469 B
PHP
--TEST--
|
|
Bug #49738 (calling mcrypt after mcrypt_generic_deinit crashes)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, '');
|
|
mcrypt_generic_init($td, 'aaaaaaaa', 'aaaaaaaa');
|
|
mcrypt_generic_deinit($td);
|
|
echo mcrypt_generic($td, 'aaaaaaaa');
|
|
?>
|
|
--EXPECTF--
|
|
Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug49738.php on line 5
|