A minimal (not)working example for pcntl_fork
1.1K
I'm trying to use pcntl_fork() in php-fpm but it is not available and I get:
Call to undefined function pcntl_fork()
Even though I've out-commented the disable_functions in the php.ini. phpinfo() shows the author and php -m also lists pcntl. If I'm executing my script from cli, it works. Is there any other option I need to enable?
As MWE I've prepared a minimal docker environment at https://github.com/white-gecko/pcntl-mwe resp.
docker pull whitegecko/pcntl-mwe
if you run it with docker run -it --rm --name pcntl -p 8080:80 pcntl you will have the example at http://localhost:8080/ and phpinfo at http://localhost:8080/phpinfo.php.
Content type
Image
Digest
Size
89.3 MB
Last updated
over 10 years ago
docker pull whitegecko/pcntl-mwe