Bug #2115
closedmhash is depreciated in PHP 5.3 and must be changed
90%
Description
During the General Wizard setup after you specify the password the following error is returned:
Fatal error: Call to undefined function mhash() in /etc/inc/auth.inc on line 499
Updated by Jim Pingle almost 13 years ago
mhash was supposedly moved into the base of php 5.3. Will need to see why that's missing, as it is no longer a separate module, and doesn't appear to be an option on the port that could have been disabled.
Updated by Jim Pingle almost 13 years ago
http://pear.php.net/bugs/bug.php?id=17828
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
Updated by Jim Pingle almost 13 years ago
- Subject changed from General Setup Wizard to mhash is depreciated in PHP 5.3 and must be changed
We only have two mhash calls, may not be too hard to convert to whatever is available.
etc/inc/auth.inc: $user['nt-hash'] = bin2hex(mhash(MHASH_MD4, $ustr)); etc/inc/ntlm_sasl_client.inc: $md4=mhash(MHASH_MD4,$unicode);
Updated by Ermal Luçi almost 13 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 90
This needs just more testing now.
Updated by Jim Pingle over 12 years ago
This should be OK with images made today. Confirmed working on new images. Must be running on images with updated PHP 5.3 from the date of this post or newer, can't gitsync up to get the fix as it's a binary change.
Updated by Rob Logan over 12 years ago
yup, I was able to change the admin password and create a new user after firmware upgrading to pfSense-Full-Update-2.1-DEVELOPMENT-i386-20120226-1331
Updated by Jim Pingle over 12 years ago
- Status changed from Feedback to Resolved