diff options
author | Jani Taskinen <jani@php.net> | 2007-07-22 23:00:14 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2007-07-22 23:00:14 +0000 |
commit | 993f77ef9de282f24d8cd1106f455d28ef7de389 (patch) | |
tree | a10602b967509d04aa67eee6972bdcff76eeb2c8 /ext/sockets/php_sockets_win.c | |
parent | 08b144f722a0d484800d8d19e8f5e5439c5d99dd (diff) | |
download | php-git-993f77ef9de282f24d8cd1106f455d28ef7de389.tar.gz |
- Fixed bug #21197 (socket_read() outputs error with PHP_NORMAL_READ)
Diffstat (limited to 'ext/sockets/php_sockets_win.c')
-rw-r--r-- | ext/sockets/php_sockets_win.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ext/sockets/php_sockets_win.c b/ext/sockets/php_sockets_win.c index 7463fba055..3bf274d620 100644 --- a/ext/sockets/php_sockets_win.c +++ b/ext/sockets/php_sockets_win.c @@ -81,29 +81,4 @@ int inet_aton(const char *cp, struct in_addr *inp) { return 1; } - -int fcntl(int fd, int cmd, ...) { - va_list va; - int retval, io, mode; - - va_start(va, cmd); - - switch(cmd) { - case F_GETFL: - case F_SETFD: - case F_GETFD: - default: - retval = -1; - break; - - case F_SETFL: - io = va_arg(va, int); - mode = io == O_NONBLOCK ? 1 : 0; - retval = ioctlsocket(fd, io, &mode); - break; - } - - va_end(va); - return retval; -} #endif |