diff options
Diffstat (limited to 'ext/sockets/sockets.c')
-rw-r--r-- | ext/sockets/sockets.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index d8629f0b42..49963044ef 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -397,8 +397,9 @@ PHP_FUNCTION(socket_fd_alloc) { php_fd_set *php_fd; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) - return; + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } php_fd = (php_fd_set*)emalloc(sizeof(php_fd_set)); |