php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14617 socket_recv() arguments
Submitted: 2001-12-20 05:54 UTC Modified: 2001-12-20 06:38 UTC
From: martin at humany dot com Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.1.0 OS: Windows 2000
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: martin at humany dot com
New email:
PHP Version: OS:

 

 [2001-12-20 05:54 UTC] martin at humany dot com
According to http://www.php.net/manual/en/function.socket-recv.php the socket_recv() parameters are as follows:

mixed socket_recv (resource socket, int len, int flags)


An attempt with:

$row = socket_recv($handle, 1024, PHP_NORMAL_READ);

Says Warning: socket_recv() expects exactly 2 parameters, 3 given in xxx on line 103

$row = socket_recv($handle, 1024);

Says Warning: socket_recv() expects parameter 2 to be resource, integer given in xxx on line 103

$row = socket_recv(1024, $handle);

Says Warning: socket_recv() expects parameter 1 to be resource, integer given in xxx on line 103








Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-20 06:38 UTC] martin at humany dot com
Fixed in CVS
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jun 25 21:05:44 2022 UTC