Req #17828 [Opn->Asn]: mhash is deprecated, please switch to hash

From: Date: Sat, 28 Aug 2010 07:25:06 +0000
Subject: Req #17828 [Opn->Asn]: mhash is deprecated, please switch to hash
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4699@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17828&edit=1 ID: 17828 Updated by: michael@bretterklieber.com Reported By: Fedora at FamilleCollet dot com Summary: mhash is deprecated, please switch to hash -Status: Open +Status: Assigned Type: Feature/Change Request Package: Crypt_CHAP Operating System: GNU/Linux (Fedora 13) Package Version: 1.0.2 PHP Version: 5.3.3 -Assigned To: +Assigned To: mbretter Roadmap Versions: New Comment: -Status: Open +Status: Assigned -Assigned To: +Assigned To: mbretter Previous Comments: ------------------------------------------------------------------------ [2010-08-27 19:21:56] remicollet Added #patch bug:17828;patch:mhash-hash.patch;revision:1282936916;. ------------------------------------------------------------------------ [2010-08-27 19:21:18] remicollet Description: ------------ mhash is deprecated and removed from php 5.3 hash could be used as a replacement and it's provided since php 5.1 Here is a simple patch which fixes this issue. http://remi.fedorapeople.org/Crypt_CHAP-hash.patch The test provided return what is expected. Test script: --------------- php /usr/share/pear/test/Crypt_CHAP/tests/chaptest.php Expected result: ---------------- test ok. Actual result: -------------- Fatal error: Call to undefined function mhash() in /usr/share/pear/Crypt/CHAP.php on line 187 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17828&edit=1

« previous php.pear.bugs (#4699) next »