What's needed for PHP's mcrypt_decrypt()?

2019-06-22 09:04发布

I have a script that uses mcrypt_decrypt() function, but I get the following error

Fatal error: Call to undefined function mcrypt_decrypt()

What modules/libraries do I need to include to use this function? Or is there another reason I'm getting the error?

Thanks

标签: php mcrypt
9条回答
地球回转人心会变
2楼-- · 2019-06-22 09:45

And be carefull about the folder in the phpinfo page : "Scan this dir for additional .ini files" and the next : "Additional .ini files parsed ".

查看更多
可以哭但决不认输i
3楼-- · 2019-06-22 09:51

Please see:

You need to compile your PHP with --with-mcrypt[=DIR] and have libmcrypt Version 2.5.6 or greater on your machine.

查看更多
小情绪 Triste *
4楼-- · 2019-06-22 09:52

for php 5.3.X

depends on availability of yum mcrypt package , you could use yum packeages

like this : yum install php53-mcrypt and restart httpd

查看更多
登录 后发表回答