RE: [PHP-DEV] socket_send() ...also a bug?
| From: | Sean R. Bright | Date: | Sat, 16 Feb 2002 01:47:28 +0000 |
| Subject: | RE: [PHP-DEV] socket_send() ...also a bug? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80094@lists.php.net to get a copy of this message | ||
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@richard-samar.de]
> Sent: Friday, February 15, 2002 8:27 PM
> To: Jason Greene
> Cc: php-dev@lists.php.net
> 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
>