PHP的mcrypt_decrypt()需要什么? [英] What's needed for PHP's mcrypt_decrypt()?

查看:84
本文介绍了PHP的mcrypt_decrypt()需要什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用mcrypt_decrypt()函数的脚本,但是出现以下错误

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

致命错误:调用未定义的函数mcrypt_decrypt()

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?

谢谢

推荐答案

请参阅:

  • Mcrypt Requirements
  • Mcrypt Installation

您需要使用--with-mcrypt[=DIR]编译PHP,并在计算机上安装libmcrypt 2.5.6或更高版本.

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

这篇关于PHP的mcrypt_decrypt()需要什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆