summaryrefslogtreecommitdiff
path: root/ext/mcrypt/tests/bug35496.phpt
blob: b211b05151c85064343ba179f7efb634b7f5d338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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--
Deprecated: Function mcrypt_module_open() is deprecated in %s%ebug35496.php on line 2

Deprecated: Function mcrypt_generic() is deprecated in %s%ebug35496.php on line 3

Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug35496.php on line 3

Deprecated: Function mdecrypt_generic() is deprecated in %s%ebug35496.php on line 4

Warning: mdecrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug35496.php on line 4