mirror of
https://github.com/php/pecl-encryption-mcrypt.git
synced 2026-03-23 23:12:15 +01:00
Cleanup test which fails on 7.2 with
Warning: Use of undefined constant MCRYPT_CBC - assumed 'MCRYPT_CBC' (this will throw an Error in a future version of PHP) ...
This commit is contained in:
@@ -13,12 +13,11 @@ Bug #8040 (MCRYPT_MODE_* do not seem to exist)
|
||||
|
||||
define ("CIPHER", MCRYPT_TWOFISH);
|
||||
define ("MODE2", MCRYPT_MODE_CBC);
|
||||
define ("MODE3", MCRYPT_CBC);
|
||||
|
||||
printf ("cipher=".CIPHER. " mode1=".MODE2. " mode2=". MODE3."\n");
|
||||
printf ("cipher=".CIPHER. " mode1=".MODE2."\n");
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
twofish
|
||||
cbc
|
||||
cbc
|
||||
cipher=twofish mode1=cbc mode2=MCRYPT_CBC
|
||||
cipher=twofish mode1=cbc
|
||||
|
||||
Reference in New Issue
Block a user