Bug #17700 Updated: Call to undefined function: mhash()
| From: | sanjeevp at motechsoftware dot com | Date: | Thu, 13 Jun 2002 13:44:12 +0000 |
| Subject: | Bug #17700 Updated: Call to undefined function: mhash() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10339@lists.php.net to get a copy of this message | ||
ID: 17700
Updated by: sanjeevp@motechsoftware.com
Reported By: sanjeevp@motechsoftware.com
-Status: Feedback
+Status: Open
Bug Type: mhash related
Operating System: RedHat Linux 7.0
PHP Version: 4.0CVS-2002-06-11
New Comment:
The version of php is 4.0.6.
I am runing the php script in the following way:-
/usr/bin/php test.php.
where i get this problem.
If i include any imap function like imap_open in this file too & run
using the script.
Then also the script gives me a similar kind of error i.e.
error <b>Fatal error</b>: Call to undefined function: imap_open() in
<b>test.php</b> on line <b>4</b><br>.
Pls. help.
Thanks in Advance.
--Sanjeev.
Previous Comments:
------------------------------------------------------------------------
[2002-06-12 08:59:39] sniper@php.net
Exactly which version of PHP is this? 4.3.0-dev? 4.2.x ?
------------------------------------------------------------------------
[2002-06-12 01:30:03] sanjeevp@motechsoftware.com
Hi,
I have tried removing the config.cache, make clean and make.. It's
not working. Is there some cgi flag to be enabled in the configure.
------------------------------------------------------------------------
[2002-06-11 11:46:03] sniper@php.net
Did you try deleting config.cache and then try with your configre
line?? 'make clean ; make' might also be a good thing to try..
------------------------------------------------------------------------
[2002-06-11 10:46:33] sanjeevp@motechsoftware.com
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 this bug report at http://bugs.php.net/?id=17700&edit=1