2016-01-25 48 views
0

我試圖使用CryptoJS AES模塊在我的PHP項目,但我有以下錯誤:OpenSSL的安裝,但不工作

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

檢查PHP的配置我注意到,OpenSSL和這個Mcrypt都被啓用

enter image description here

任何人都更瞭解這個錯誤?可能會對我的用戶有所迴應? (我在共享主機上)。 Apache2上的PHP版本是5.2.1.7。 感謝

我也檢查,如果PHP編譯了正確的--openssl,所以它是

enter image description here

+1

可能的重複[致命錯誤:調用未定義函數openssl \ _random \ _pseudo \ _bytes()](http://stackoverflow.com/questions/11212808/fatal-error-call-to-undefined-function-openssl -random-pseudo-bytes) –

+0

你應該離開認爲運行PHP 5.2的主機。 – Repox

回答

1

你需要PHP升級到版本> = 5.3。

+0

感謝您的回覆。我可以檢查我的主機是否可以升級到PHP 5.3。 – Ras