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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 01:01:28 2025 UTC