|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-15 17:51 UTC] sniper@php.net
[2003-05-15 18:10 UTC] polone at townnews dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 11:00:01 2025 UTC |
The following script: <?php echo "Hello!"; if (pcntl_fork()) { exit; } ?> Should produce only one "Hello!". The problem is that it appears to restart execution of the script, causing the text "Hello!" to appear twice. This is _NOT_ how fork() works. The process should continue executing from where the pcntl_fork() function call was issued, and exit the parent process. Is this related to SA_RESTART and changes made to restart signal handlers in PHP 4.3.0?