1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00
.
This commit is contained in:
Sterling Hughes
2001-06-01 18:47:03 +00:00
parent 015e1d3d68
commit c6402b2a2f

View File

@@ -367,15 +367,9 @@ PHP_MINFO_FUNCTION(sockets)
Allocates a new file descriptor set */
PHP_FUNCTION(socket_fd_alloc)
{
fd_set *set;
if ((set = (fd_set*)emalloc(sizeof(fd_set))) == NULL) {
php_error(E_WARNING, "cannot allocate file descriptor");
RETURN_FALSE;
}
FD_ZERO(set);
ZEND_REGISTER_RESOURCE(return_value, set, le_destroy);
fd_set set;
FD_ZERO(&set);
ZEND_REGISTER_RESOURCE(return_value, &set, le_destroy);
}
/* }}} */
@@ -482,7 +476,7 @@ PHP_FUNCTION(socket_fd_zero)
PHP_FUNCTION(socket_select)
{
zval **arg1, **arg2, **arg3, **arg4, **arg5, **arg6;
php_sock *php_sock;
php_socket *php_sock;
struct timeval tv;
fd_set *rfds, *wfds, *xfds;