1--TEST-- 2mcrypt_enc_is_block_mode 3--SKIPIF-- 4<?php if (!extension_loaded("mcrypt")) print "skip"; ?> 5--FILE-- 6<?php 7$td = mcrypt_module_open(MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, ''); 8var_dump(mcrypt_enc_is_block_mode($td)); 9$td = mcrypt_module_open(MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_ECB, ''); 10var_dump(mcrypt_enc_is_block_mode($td)); 11$td = mcrypt_module_open(MCRYPT_ARCFOUR, '', MCRYPT_MODE_STREAM, ''); 12var_dump(mcrypt_enc_is_block_mode($td)); 13$td = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, ''); 14var_dump(mcrypt_enc_is_block_mode($td)); 15--EXPECT-- 16bool(true) 17bool(true) 18bool(false) 19bool(false)