Fatal error: Call to undefined function openssl_random_pseudo_bytes()

后端 未结 6 1047
孤独总比滥情好
孤独总比滥情好 2020-12-01 23:36

I am getting this exception when trying to run my PHP unit tests:

Fatal error: Call to undefined function openssl_random_pseudo_bytes()

6条回答
  •  一整个雨季
    2020-12-02 00:13

    Your version of PHP wasn't compiled with the openssl module. If you are building from source, add the module like so:

    cd /path/to/php-5.4/
    ./configure --with-openssl
    

提交回复
热议问题