What are the downsides to running a forked PHP app on the web?
I have read that it should not be run under Apache for any reason, but never explained why.
The only reason I can think of is that if a script is terminated in the middle of execution, any forked process would never be terminated and might cause memory leaks.
The question is in regards to the pcntl extensions
<?php
$pid = pcntl_fork();
if ($pid)
{
//parent, execute parent code
}
else
{
//child code
}
?>
Am I correct in this assumption?