Re: [PHP-DEV] socket_send() ...also a bug?

2002-02-16 Thread Markus Fischer
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

Re: [PHP-DEV] socket_send() ...also a bug?

2002-02-15 Thread Richard Samar
"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

RE: [PHP-DEV] socket_send() ...also a bug?

2002-02-15 Thread Sean R. Bright
:[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

[PHP-DEV] socket_send() ...also a bug?

2002-02-15 Thread Richard Samar
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