Bug #17700: Call to undefined function: mhash()
| From: | sanjeevp at motechsoftware dot com | Date: | Tue, 11 Jun 2002 14:46:33 +0000 |
| Subject: | Bug #17700: Call to undefined function: mhash() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-10116@lists.php.net to get a copy of this message | ||
From: sanjeevp@motechsoftware.com
Operating system: RedHat Linux 7.0
PHP version: 4.0CVS-2002-06-11
PHP Bug Type: Program Execution
Bug description: Call to undefined function: mhash()
Hi,
I wanted to run php through command prompt.
So, I installed libedit from sourceforge.net & installed it.
Then, i again configured php with libedit.
To use mhash function for encrytion.
I reconfigured php with mhash.
The used the following configure script for php
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-pgsql=/usr/local/pgsql --enable-mbstring --enable-mbstr-enc-trans
--with-zlib --with-mhash=/usr/local/mhash --with-libedit=/usr/local/lib
--with-imap=/usr/local/imap --with-kerberos --with-openssl
After suiccessfully compiling & installing php.
I restarted the apache webserver which also restarted successfully.
Then i tried to run a small php script but that failed giving me an error
<b>Fatal error</b>: Call to undefined function: mhash() in
<b>test.php</b> on line <b>4</b><br>.
The code is :-
<?php
$hash = bin2hex(mhash(MHASH_CRC32, "sanjeev"));
echo $hash;
?>
Pls. help.
Thanks in advance.
Thnaks & regards,
Sanjeev.
--
Edit bug report at http://bugs.php.net/?id=17700&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17700&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17700&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17700&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17700&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17700&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17700&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17700&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17700&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17700&r=globals