summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets.h
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.h
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.h')
-rw-r--r--ext/sockets/php_sockets.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index 657f4276b2..3163d76ef7 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -83,13 +83,14 @@ typedef struct {
PHP_SOCKET bsd_socket;
int type;
int error;
+ int blocking;
} php_socket;
/* Prototypes */
#ifdef ilia_0 /* not needed, only causes a compiler warning */
static int php_open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC);
static int php_accept_connect(php_socket *in_sock, php_socket **new_sock, struct sockaddr *la TSRMLS_DC);
-static int php_read(int bsd_socket, void *buf, size_t maxlen, int flags);
+static int php_read(php_socket *sock, void *buf, size_t maxlen, int flags);
static char *php_strerror(int error TSRMLS_DC);
#endif