ERR: Call to undefined function openssl_random_pseudo_bytes()

最近使用TP5/PHP7,总是出现ERR: Call to undefined function index\index\openssl_random_pseudo_bytes(),才发现是php没有启用openssl扩展。想来xampp5.x应该是默认打开openssl的,只是xampp7.x关了。

  • php/php.ini,uncomment ;extension=php_openssl.dll
  • restart xampp/apache
posted @ 2016-09-05 10:43  乌祁班岚图  阅读(1990)  评论(0编辑  收藏  举报