Doc #51839 [Opn->Csd]: Documentation of return types of stream_socket_accept is misleading
| From: | kalle@php.net | Date: | Tue, 18 May 2010 09:02:29 +0000 |
| Subject: | Doc #51839 [Opn->Csd]: 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-4395@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
Updated by: kalle@php.net
Reported by: weirdan at gmail dot com
Summary: Documentation of return types of stream_socket_accept is
misleading
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: kalle
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:
------------------------------------------------------------------------
[2010-05-18 11:02:13] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=299442
Log: Fixed bug #51839 (Documentation of return types of
stream_socket_accept is misleading)
------------------------------------------------------------------------
[2010-05-17 14:16:47] weirdan at gmail dot com
not a bug but documentation problem
------------------------------------------------------------------------
[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