php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51839 Documentation of return types of stream_socket_accept is misleading
Submitted: 2010-05-17 14:13 UTC Modified: 2010-05-18 11:02 UTC
From: weirdan at gmail dot com Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: weirdan at gmail dot com
New email:
PHP Version: OS:

 

 [2010-05-17 14:13 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-17 14:16 UTC] weirdan at gmail dot com
-Type: Bug +Type: Documentation Problem
 [2010-05-17 14:16 UTC] weirdan at gmail dot com
not a bug but documentation problem
 [2010-05-18 11:02 UTC] 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-18 11:02 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2010-05-18 11:02 UTC] kalle@php.net
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.


 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f16a6e5eee2519de341067a612969ee723919e15
Log: Fixed bug #51839 (Documentation of return types of stream_socket_accept is misleading)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC