Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check PCNTL module exists

I write simple requirements checking script. It checks all required PHP modules installed. I need to check if pcntl is installed. But this module is accessible only in cgi environment and invisible for web queries. extension_loaded('pcntl') and function_exists('pcntl_fork') both return false. How can I perform this check?

like image 887
WindBridges Avatar asked Nov 28 '22 17:11

WindBridges


1 Answers

Running php -i | grep pcntl will return the following if pcntl is enabled.

pcntl

pcntl support => enabled

like image 198
TheRealJAG Avatar answered Dec 06 '22 06:12

TheRealJAG