mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
added note about declare (bug #21331)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@152496 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b8604368ab
commit
7cb85eff94
1 changed files with 13 additions and 1 deletions
|
@ -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 @@ echo "Done\n"
|
|||
]]>
|
||||
</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>.
|
||||
|
|
Loading…
Reference in a new issue