note 78805 added to function.pcntl-fork
| From: | MagicalTux at kinoko dot fr | Date: | Mon, 29 Oct 2007 06:30:27 +0000 |
| Subject: | note 78805 added to function.pcntl-fork | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131799@lists.php.net to get a copy of this message | ||
QUOTE from arnold at helderhosting dot nl:
It is not possible to use the function 'pcntl_fork' when PHP is used as Apache module. You
can only use pcntl_fork in CGI mode or from command-line.
Using this function will result in: 'Fatal error: Call to undefined function:
pcntl_fork()'
==============================================
This is not true. I already had to use pcntl_fork() from PHP running as an Apache module so I know.
By default, pcntl is disabled when php is compiled as an apache module, which is to be expected.
Forking in an apache module is rather complex, and one of the most important things you should
remember is to let your child kill himself with SIGKILL. If you just call exit(), you might end
having duplicate headers.
Forking from an Apache module is NOT RECOMMANDED unless you know what you do and fully understand
how apache works.
----
Server IP: 217.174.196.197
Probable Submitter: 193.253.141.80
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-fork.php
Edit -- https://master.php.net/note/edit/78805
Del: integrated -- https://master.php.net/note/delete/78805/integrated
Del: useless -- https://master.php.net/note/delete/78805/useless
Del: bad code -- https://master.php.net/note/delete/78805/bad+code
Del: spam -- https://master.php.net/note/delete/78805/spam
Del: non-english -- https://master.php.net/note/delete/78805/non-english
Del: in docs -- https://master.php.net/note/delete/78805/in+docs
Del: other reasons-- https://master.php.net/note/delete/78805
Reject -- https://master.php.net/note/reject/78805
Search -- https://master.php.net/manage/user-notes.php