Bug #14617 Updated: socket_recv() arguments
| From: | martin at humany dot com | Date: | Thu, 20 Dec 2001 11:38:46 +0000 |
| Subject: | Bug #14617 Updated: socket_recv() arguments | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74564@lists.php.net to get a copy of this message | ||
ID: 14617
User updated by: martin@humany.com
Reported By: martin@humany.com
Old Status: Open
Status: Closed
Bug Type: Sockets related
Operating System: Windows 2000
PHP Version: 4.1.0
New Comment:
Fixed in CVS
Previous Comments:
------------------------------------------------------------------------
[2001-12-20 05:54:17] martin@humany.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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14617&edit=1