mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Clarify sleep() return values further per bjori's e-mail and prod on IRC.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305766 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
db3c4a1952
commit
ca054293e9
1 changed files with 7 additions and 3 deletions
|
@ -37,12 +37,16 @@
|
|||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
On Windows, <function>sleep</function> always returns &null;.
|
||||
On all platforms, <function>sleep</function> returns &false; if the
|
||||
<parameter>seconds</parameter> parameter is invalid.
|
||||
</para>
|
||||
<para>
|
||||
On Windows, provided the aforementioned <parameter>seconds</parameter>
|
||||
parameter is valid, <function>sleep</function> always returns &null;.
|
||||
</para>
|
||||
<para>
|
||||
On other platforms, <function>sleep</function> returns zero on success, or
|
||||
&false; on errors. If the call was interrupted by a signal,
|
||||
<function>sleep</function> returns the number of seconds left to sleep.
|
||||
the number of seconds left to sleep if interrupted by a signal.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue