From 7cb85eff945f23b2c8dbe02eb0ea94989ef4286f Mon Sep 17 00:00:00 2001 From: Kenneth Schwartz Date: Thu, 26 Feb 2004 22:36:01 +0000 Subject: [PATCH] added note about declare (bug #21331) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@152496 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcntl/functions/pcntl-signal.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/reference/pcntl/functions/pcntl-signal.xml b/reference/pcntl/functions/pcntl-signal.xml index a6e5e05db8..282bf02d20 100644 --- a/reference/pcntl/functions/pcntl-signal.xml +++ b/reference/pcntl/functions/pcntl-signal.xml @@ -1,5 +1,5 @@ - + @@ -91,6 +91,18 @@ echo "Done\n" ]]> + + + As of PHP 4.3.0 PCNTL uses ticks as the signal handle callback mechanism, + which is much faster than the previous mechanism. This change follows the + same semantics as using + "user ticks". You + must use the declare() + statement to specify the locations in your program where callbacks are + allowed to occur for the signal handler to function properly (as used in + the above example). + + See also pcntl_fork and pcntl_waitpid.