2016-01-25 08:33
浏览 152


I'm trying to use the CryptoJS AES module in my php project but I have the following error:

Fatal error: Call to undefined function openssl_random_pseudo_bytes() enter image description here

Checking the configuration of PHP I noticed that both OpenSSL and Mcrypt are enabled

enter image description here

Anyone know more about this error? could be some restrinction to my user? (I'm on a shared-hosting). The PHP version is on Apache2. Thanks

I've also checked if PHP has been compiled with the correct --openssl and so it is

enter image description here

图片转代码服务由CSDN问答提供 功能建议

我正在尝试在我的php项目中使用CryptoJS AES模块,但我有以下错误:

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


< p>任何人都知道这个错误的更多信息? 可能是我的用户的一些重新启动? (我正在共享托管)。 Apache2上的PHP版本是5.2.1.7。 谢谢


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dream6120 2016-01-25 08:37

    You need to upgrade PHP to version >= 5.3.

    点赞 打赏 评论

相关推荐 更多相似问题