Web üzerinde bir çatallı PHP uygulaması çalıştıran olumsuz yanları nelerdir?
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.
Soru PCNTL uzantıları getirmedi
<?php
$pid = pcntl_fork();
if ($pid)
{
//parent, execute parent code
}
else
{
//child code
}
?>
Ben bu varsayım düzeltmek muyum?