Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.5, 2.3.4, 2.4.1
-
Any
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MDL-37625-master -
Description
The PHP mhash module is obsoleted by the hash module (the latter of which is a required extension for current Moodle installs).
The Crypt_CHAP PEAR library that is currently included with Moodle uses mhash() calls which breaks on some PHP 5.3 installs due to the mhash extension not being available. This was a bug reported, fixed and released for this PEAR library in 2010.
Note: It looks like Red Hat Linux does not even have the mhash module available for install but Debian-based distros do include it (even with PHP 5.4). This is output from my Debian workstation:
-
$ php --version
PHP 5.4.4-12 (cli) (built: Jan 21 2013 10:32:30)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
$ php -m | grep hash
hash
mhash