Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Call to undefined function openssl_random_pseudo_bytes()

Tags:

php

openssl

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

Fatal error: Call to undefined function openssl_random_pseudo_bytes()

What does it mean?

like image 414
Kevin Burke Avatar asked Jun 26 '12 17:06

Kevin Burke


1 Answers

I had the same issue. I solved it by editing my php.ini file - changing ;extension=php_openssl.dll to extension=php_openssl.dll .

(For my installation, my php.ini file was located in my P:\Program Files\EasyPHP-12.1\conf_files\ directory.)

like image 164
ban-geoengineering Avatar answered Sep 22 '22 23:09

ban-geoengineering