#49522 [NEW]: Mcrypt Functions
From: m_cayer_2008 at yahoo dot com
Operating system: FreeBSD hostingprod.com 4.11-YAH
PHP version: 5.3.0
PHP Bug Type: Scripting Engine problem
Bug description: Mcrypt Functions
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 bug report at http://bugs.php.net/?id=49522&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49522&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49522&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49522&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49522&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49522&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49522&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49522&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49522&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49522&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49522&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49522&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49522&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49522&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49522&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49522&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49522&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49522&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49522&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49522&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49522&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49522&r=mysqlcfg
Thread (3 messages)
- m_cayer_2008 at yahoo dot com