Bug->Doc #51839 [Opn]: Documentation of return types of stream_socket_accept is misleading

From: Date: Mon, 17 May 2010 12:16:47 +0000
Subject: Bug->Doc #51839 [Opn]: Documentation of return types of stream_socket_accept is misleading
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4389@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51839&edit=1 ID: 51839 User updated by: weirdan at gmail dot com Reported by: weirdan at gmail dot com Summary: Documentation of return types of stream_socket_accept is misleading Status: Open -Type: Bug +Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant New Comment: not a bug but documentation problem Previous Comments: ------------------------------------------------------------------------ [2010-05-17 14:13:01] weirdan at gmail dot com Description: ------------ http://us2.php.net/manual/en/function.stream-socket-accept.php Function signature says resource stream_socket_accept ( resource $server_socket [, float $timeout = ini_get("default_socket_timeout") [, string &$peername ]] ) While 'Return values' section says: Returns TRUE on success or FALSE on failure. Obviously accept returns accepted socket on success, not TRUE. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51839&edit=1

« previous php.doc.bugs (#4389) next »