PDA

View Full Version : Compiling PHP5 on a Mac, problems




bluefloyd8
Apr 15, 2009, 03:58 AM
Hello everyone.
I am writing a CLI PHP script and want to use pcntl_fork(). Unforkunatly, the fork does not work unless I have compiled PHP with --enable-pcntl. I have tried to find a way to do this, but have not found anything.

Any idea?



Cromulent
Apr 15, 2009, 04:02 AM
Hello everyone.
I am writing a CLI PHP script and want to use pcntl_fork(). Unforkunatly, the fork does not work unless I have compiled PHP with --enable-pcntl. I have tried to find a way to do this, but have not found anything.

Any idea?

Just pass --enable-pcntl to the configuration script when you compile PHP along with your other options.