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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

History

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