ID: 49522 Comment by: m_cayer_2008 at yahoo dot com Reported By: m_cayer_2008 at yahoo dot com Status: Open Bug Type: Scripting Engine problem Operating System: FreeBSD hostingprod.com 4.11-YAH PHP Version: 5.3.0 New Comment:
The mcrypt_list_modes() function lists duplicate entries as well. Previous Comments: ------------------------------------------------------------------------ [2009-09-10 12:14:03] m_cayer_2008 at yahoo dot com Description: ------------ I am using Yahoo/Geocities web hosting system to learn and try out the PHP features. I tried to use the mcrypt_list_algorithms() function and I get an array with duplicate entries of the algorithms. Each algorithm is listed twice in the array. P.S. The PHP version is 4.3. I do not have the ability to upgrade the PHP version because Yahoo/Geocities is control of that and I have requested an upgrade in the past to no avail. Reproduce code: --------------- --- >From manual page: function.mcrypt-list-algorithms --- echo "<p> ----- mcrypt_list_algorithms -----</p>"; $algos = mcrypt_list_algorithms( ); print_r( $algos ); Expected result: ---------------- A single entry for each supported algorithm not a duplicate entry. Actual result: -------------- ----- mcrypt_list_algorithms ----- Array ( [0] => arcfour [1] => arcfour [2] => blowfish-compat [3] => blowfish-compat [4] => blowfish [5] => blowfish [6] => cast-128 [7] => cast-128 [8] => cast-256 [9] => cast-256 [10] => des [11] => des [12] => enigma [13] => enigma [14] => gost [15] => gost [16] => loki97 [17] => loki97 [18] => panama [19] => panama [20] => rc2 [21] => rc2 [22] => rijndael-128 [23] => rijndael-128 [24] => rijndael-192 [25] => rijndael-192 [26] => rijndael-256 [27] => rijndael-256 [28] => safer-sk128 [29] => safer-sk128 [30] => safer-sk64 [31] => safer-sk64 [32] => saferplus [33] => saferplus [34] => serpent [35] => serpent [36] => threeway [37] => threeway [38] => tripledes [39] => tripledes [40] => twofish [41] => twofish [42] => wake [43] => wake [44] => xtea [45] => xtea ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49522&edit=1
