len is the length of the buffer. When 's' is specified in zend_parse_parameters, both the string and the number of characters are returned to the calling function. In this case, len is the length of 'buf_len.'
> -----Original Message----- > From: Richard Samar [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 8:27 PM > To: Jason Greene > Cc: [EMAIL PROTECTED] > Subject: [PHP-DEV] socket_send() ...also a bug? > > > I found something else about socket_send(): > > proto: int socket_send(resource socket, string buf, int len, > int flags) > 4 parameters > > from the source: > > if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsll", &arg1, > &buf, &buf_len, &len, &flags) == FAILURE) > > 5 parameters? what is len?? please remove it. it doesnt makes sense > to me. > > the system call send() doesnt have 5 parameters. > > best regards > -moh > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php