最近使用TP5/PHP7,总是出现
ERR: Call to undefined function indexindexopenssl_random_pseudo_bytes()
,才发现是php没有启用openssl扩展。想来xampp5.x应该是默认打开openssl的,只是xampp7.x关了。
- php/php.ini,uncomment
;extension=php_openssl.dll
- restart xampp/apache
最近使用TP5/PHP7,总是出现
ERR: Call to undefined function indexindexopenssl_random_pseudo_bytes()
,才发现是php没有启用openssl扩展。想来xampp5.x应该是默认打开openssl的,只是xampp7.x关了。
;extension=php_openssl.dll