ID: 30983 User updated by: robert at bsd dot hu Reported By: robert at bsd dot hu -Status: Feedback +Status: Open Bug Type: mhash related Operating System: OpenBSD PHP Version: Irrelevant New Comment:
I've tested it with 4.3.9 and 5.0.2. And it seems that it only affects OpenBSD. Previous Comments: ------------------------------------------------------------------------ [2004-12-04 13:58:20] [EMAIL PROTECTED] Please, indicate what version are you using. I can't reproduce it under Linux, PHP 5.1.0-dev & mhash 0.9.1. ------------------------------------------------------------------------ [2004-12-04 13:33:31] robert at bsd dot hu Description: ------------ Configure arguments: --with-apxs=/usr/sbin/apxs --without-mysql --enable-xml --enable-wddx --enable-cli --with-iconv=/usr/local --with-gettext=/usr/local --enable-dio --with-pear=/var/www/pear --enable-bcmath --enable-session --enable-trans-sid --enable-calendar --enable-ctype --enable-ftp --with-pcre-regex --with-posix --enable-sockets --enable-sysvsem --enable-sysvshm --enable-yp --enable-exif --enable-shared --disable-static --disable-rpath --with-config-file-path=/var/www/conf --enable-inline-optimization --with-pic --with-openssl --with-zlib --prefix='/usr/local' --sysconfdir='/etc' --without-bz2 --without-curl --disable-dba --disable-dbase --disable-dbx --disable-dom --disable-filepro --without-gd --without-xpm-dir --without-ttf --without-freetype-dir --without-gmp --without-imap --without-kerberos --without-ldap --without-mcrypt --with-mhash=shared,/usr/local --without-mysql --without-ncurses --without-odbc --without-pdflib --without-pgsql --disable-shmop --without-snmp --without-sybase-ct --without-xmlrpc --disable-xslt --enable-shared --disable-static --disable-rpath Mhash library: version: 0.9.1 209:-lmhash.2.0 => /usr/local/lib/libmhash.so.2.0 Reproduce code: --------------- <?php $input = "what do ya want for nothing?"; $hash = mhash(MHASH_MD5, $input); echo "The hash is " . bin2hex($hash) . "<br />\n"; $hash = mhash(MHASH_MD5, $input, "Jefe"); echo "The hmac is " . bin2hex($hash) . "<br />\n"; ?> Expected result: ---------------- The correct hash. Actual result: -------------- The hash is 00000000000000000000000000000000 The hmac is 00000000000000000000000000000000 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30983&edit=1