Bug #15079 Updated: Wrong function socket_recv

From: Date: Thu, 17 Jan 2002 08:28:03 +0000
Subject: Bug #15079 Updated: Wrong function socket_recv
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-77321@lists.php.net to get a copy of this message
ID: 15079 Updated by: mfischer Reported By: warlock@zine.ru Old Status: Open Status: Closed Bug Type: Sockets related Operating System: FreeBSD 4.3-RELEASE PHP Version: 4.1.1 New Comment: Unfortunately a bug slipped it and it is fixed in CVS already. But you can easily fix it yourself by changing line 1300 in sockets.c from if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr", &arg1, &len, &flags) == FAILURE) to if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rll", &arg1, &len, &flags) == FAILURE) Previous Comments: ------------------------------------------------------------------------ [2002-01-17 02:54:37] warlock@zine.ru Code: $buf=socket_recv($d->descriptor, 1024, $flags); Warning: socket_recv() expects exactly 2 parameters, 3 given in ... Code: $buf=socket_recv($d->descriptor, 1024); Warning: socket_recv() expects parameter 2 to be resource, integer given in ... Help for socket_recv: mixed socket_recv (resource socket, int len, int flags); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15079&edit=1

« previous php.dev (#77321) next »