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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 22:01:31 2024 UTC