It was found that php-mhash SegFaults on Redhat Enterprise Linux 3 i386/x86_64 when php-ldap is loaded at the same time. Please reference the PHP bug:
http://bugs.php.net/bug.php?id=41545
After further investigation it appears that the following functions conflict with functions of the same name in libsasl:
MD5Init
MD5Update
MD5Final
MD5Transform
A patch will be submitted, however the work around seems to be to rename the functions in the Mhash lib/md5.c library with a 'mhash_' prefix or similar.
Patch to rename MD5 functions and references in lib/md5.c, lib/mhash.c, and lib/mhash_md5.h
Logged In: YES
user_id=876891
Originator: YES
I have patched the source code to make the following changes:
Files:
lib/md5.c
lib/mhash.c
lib/mhash_md5.h
MD5Init becomes mhash_MD5Init
MD5Update becomes mhash_MD5Update
MD5Final becomes mhash_MD5Update
MD5Transform becomes mhash_MD5Transform
MD5Context becomes mhash_MD5Context
Please note once again, this issues only effects Redhat Enterprise Linux 3 as it stomps on similar functions in the libsasl library (The functions have probably been renamed in sasl since the Rhel3 release). This is not necessarily a bug in the Mhash library... however if you encounter issues like the one described in the PHP bug above, you may wish to apply this patch.
File Added: mhash-0.9.9-md5.patch