2008-05-17 23:27:42 +00:00
|
|
|
--TEST--
|
|
|
|
mcrypt_list_modes
|
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded("mcrypt") || unicode_semantics()) print "skip"; ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
var_dump(mcrypt_list_modes());
|
|
|
|
--EXPECT--
|
|
|
|
array(8) {
|
|
|
|
[0]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(3) "cbc"
|
2008-05-17 23:27:42 +00:00
|
|
|
[1]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(3) "cfb"
|
2008-05-17 23:27:42 +00:00
|
|
|
[2]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(3) "ctr"
|
2008-05-17 23:27:42 +00:00
|
|
|
[3]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(3) "ecb"
|
2008-05-17 23:27:42 +00:00
|
|
|
[4]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(4) "ncfb"
|
2008-05-17 23:27:42 +00:00
|
|
|
[5]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(4) "nofb"
|
2008-05-17 23:27:42 +00:00
|
|
|
[6]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(3) "ofb"
|
2008-05-17 23:27:42 +00:00
|
|
|
[7]=>
|
2009-07-26 08:13:40 +00:00
|
|
|
unicode(6) "stream"
|
2008-05-17 23:27:42 +00:00
|
|
|
}
|