From: surfchen at gmail dot com Operating system: Debian 4.1.1-21 PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: posix_setsid() return -1 on errors,not 0 or false
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 bug report at http://bugs.php.net/?id=42481&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42481&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42481&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42481&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42481&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42481&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42481&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42481&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42481&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42481&r=support Expected behavior: http://bugs.php.net/fix.php?id=42481&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42481&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42481&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42481&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42481&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42481&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42481&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42481&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42481&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42481&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42481&r=mysqlcfg