Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

[PHP-DEV] Bug #14617: socket_recv() arguments From: martin <email protected>
Date: 12/20/01

From: martin <email protected>
Operating system: Windows 2000
PHP version: 4.1.0
PHP Bug Type: Sockets related
Bug description: socket_recv() arguments

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 bug report at: http://bugs.php.net/?id=14617&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>