Fatal error: Call to undefined function openssl_random_pseudo_bytes()

后端 未结 6 1052
孤独总比滥情好
孤独总比滥情好 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 php installation either does not have openssl enabled, or you could be running a version of php < 5.3.

    To enable openssl, you must re-compile and install php with the "–with-openssl" flag. See php installation documentation

提交回复
热议问题