| rquadling@php.net 2007-08-30, 4:01 am |
| ID: 42481
Updated by: rquadling@php.net
Reported By: surfchen at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Debian 4.1.1-21
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2007-08-30 07:27:55] surfchen at gmail dot com
Description:
------------
There is a mistake here(http://www.php.net/manual/en/ref.pcntl.php) on
invoking posix_setsid(),which is return -1 on errors.
Reproduce code:
---------------
if (!posix_setsid()) {
die("could not detach from terminal");
}
Expected result:
----------------
When a error occurs,the msg"could not detach from terminal" should be
printed.But since the posix_setsid() return -1 on errors,nothing is
printed in this case.
Actual result:
--------------
nothing is printed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42481&edit=1
|