summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets_win.c
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2007-07-22 23:00:14 +0000
committerJani Taskinen <jani@php.net>2007-07-22 23:00:14 +0000
commit993f77ef9de282f24d8cd1106f455d28ef7de389 (patch)
treea10602b967509d04aa67eee6972bdcff76eeb2c8 /ext/sockets/php_sockets_win.c
parent08b144f722a0d484800d8d19e8f5e5439c5d99dd (diff)
downloadphp-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.c25
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