PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Encryption » Crypt_CHAP » Bug #3107

mhash(MHASH_MD4, .....) doesn't work because MHASH_MD4 is unknown to php

Details

Submitted2005-01-05 13:34 UTC
Fromilia at rediska dot ru
StatusBogus
PackageCrypt_CHAP
PHP Version5.0.3
OSFreeBSD
Roadmaps(Not assigned)

Comments

[2005-01-05 13:34 UTC] ilia at rediska dot ru

Description:
------------
php these days supports only MHASH_MD5 and doesn't support MHASH_MD4

http://php.net/mhash

[2005-01-06 13:21 UTC] ilia at rediska dot ru

I just recompiled mhash with --enable-md4 (which must be default, but I recompiled just to make sure), after that I recompiled php5.0.3 .... and problem remains.

php doesn't understand constant MHASH_MD4, when calling mhash(MHASH_MD4,...) it says:

Warning: mhash() expects parameter 1 to be long, string given in /usr/home/solwww/j.php on line 18

I assume that long means some number corresponding to MHASH_XXX, and string means that no number corresponds to MHASH_MD4.

I would like to know if MHASH_MD4 works for You on recent (either 4.3.10 or 5.0.3) PHP version.

btw, your CV says You speak Russian ? really ?