diff options
author | Felipe Pena <felipe@php.net> | 2008-11-02 21:19:39 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-11-02 21:19:39 +0000 |
commit | 7a37fa2d6bd740c70dab947718ba7ea2d0b99c47 (patch) | |
tree | adc3c182457942110f6015fc52132368b746420c /ext/sockets | |
parent | d90dfe7dbfe45e3d79d6a47c1fbc0dfd39712ea2 (diff) | |
download | php-git-7a37fa2d6bd740c70dab947718ba7ea2d0b99c47.tar.gz |
- Revert ZEND_BEGIN_ARG_INFO change
Diffstat (limited to 'ext/sockets')
-rw-r--r-- | ext/sockets/sockets.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 46754c2957..589e33c567 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -98,6 +98,7 @@ static int le_socket; #define le_socket_name "Socket" /* {{{ arginfo */ +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_select, 0, 0, 4) ZEND_ARG_INFO(1, read_fds) ZEND_ARG_INFO(1, write_fds) @@ -106,78 +107,93 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_select, 0, 0, 4) ZEND_ARG_INFO(0, tv_usec) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_create_listen, 0, 0, 1) ZEND_ARG_INFO(0, port) ZEND_ARG_INFO(0, backlog) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_accept, 0, 0, 1) ZEND_ARG_INFO(0, socket) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_set_nonblock, 0, 0, 1) ZEND_ARG_INFO(0, socket) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_set_block, 0, 0, 1) ZEND_ARG_INFO(0, socket) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_listen, 0, 0, 1) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, backlog) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_close, 0, 0, 1) ZEND_ARG_INFO(0, socket) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_write, 0, 0, 2) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, buf) ZEND_ARG_INFO(0, length) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_read, 0, 0, 2) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, length) ZEND_ARG_INFO(0, type) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_getsockname, 0, 0, 2) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(1, addr) ZEND_ARG_INFO(1, port) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_getpeername, 0, 0, 2) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(1, addr) ZEND_ARG_INFO(1, port) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_create, 0, 0, 3) ZEND_ARG_INFO(0, domain) ZEND_ARG_INFO(0, type) ZEND_ARG_INFO(0, protocol) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_connect, 0, 0, 2) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, addr) ZEND_ARG_INFO(0, port) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_strerror, 0, 0, 1) ZEND_ARG_INFO(0, errno) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_bind, 0, 0, 2) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, addr) ZEND_ARG_INFO(0, port) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_recv, 0, 0, 4) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(1, buf) @@ -185,6 +201,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_recv, 0, 0, 4) ZEND_ARG_INFO(0, flags) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_send, 0, 0, 4) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, buf) @@ -192,6 +209,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_send, 0, 0, 4) ZEND_ARG_INFO(0, flags) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_recvfrom, 0, 0, 5) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(1, buf) @@ -201,6 +219,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_recvfrom, 0, 0, 5) ZEND_ARG_INFO(1, port) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_sendto, 0, 0, 5) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, buf) @@ -210,12 +229,14 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_sendto, 0, 0, 5) ZEND_ARG_INFO(0, port) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_get_option, 0, 0, 3) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, level) ZEND_ARG_INFO(0, optname) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_set_option, 0, 0, 4) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, level) @@ -224,6 +245,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_set_option, 0, 0, 4) ZEND_END_ARG_INFO() #ifdef HAVE_SOCKETPAIR +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_create_pair, 0, 0, 4) ZEND_ARG_INFO(0, domain) ZEND_ARG_INFO(0, type) @@ -233,16 +255,19 @@ ZEND_END_ARG_INFO() #endif #ifdef HAVE_SHUTDOWN +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_shutdown, 0, 0, 1) ZEND_ARG_INFO(0, socket) ZEND_ARG_INFO(0, how) ZEND_END_ARG_INFO() #endif +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_last_error, 0, 0, 0) ZEND_ARG_INFO(0, socket) ZEND_END_ARG_INFO() +static ZEND_BEGIN_ARG_INFO_EX(arginfo_socket_clear_error, 0, 0, 0) ZEND_ARG_INFO(0, socket) ZEND_END_ARG_INFO() |