irchtml Thu Feb 26 17:36:02 2004 EDT
Modified files:
/phpdoc/en/reference/pcntl/functions pcntl-signal.xml
Log:
added note about declare (bug #21331)
http://cvs.php.net/diff.php/phpdoc/en/reference/pcntl/functions/pcntl-signal.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/pcntl/functions/pcntl-signal.xml
diff -u phpdoc/en/reference/pcntl/functions/pcntl-signal.xml:1.7
phpdoc/en/reference/pcntl/functions/pcntl-signal.xml:1.8
--- phpdoc/en/reference/pcntl/functions/pcntl-signal.xml:1.7 Thu Jan 15 07:43:08
2004
+++ phpdoc/en/reference/pcntl/functions/pcntl-signal.xml Thu Feb 26 17:36:01
2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/pcntl.xml, last change in rev 1.2 -->
<refentry id="function.pcntl-signal">
<refnamediv>
@@ -91,6 +91,18 @@
]]>
</programlisting>
</example>
+ <note>
+ <para>
+ 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
+ "<link linkend="control-structures.declare.ticks">user ticks</link>". You
+ must use the <link linkend="control-structures.declare">declare()</link>
+ 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).
+ </para>
+ </note>
<para>
See also <function>pcntl_fork</function> and
<function>pcntl_waitpid</function>.