It's documented on
http://www.php.net/manual/en/zend.arguments.retrieval.php
It's a kind of promoting binary safety. Not the passed number
of parameter passed to zend_parse_parameters() is important
but what modifies are used to describe the parameters.
Since a string is
"Sean R. Bright" wrote:
>
> 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.'
:-) oki, the given prototype ist wrong then.
c
:[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 l
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 re