diff options
Diffstat (limited to 'ext/sockets/php_sockets.h')
-rw-r--r-- | ext/sockets/php_sockets.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index cea2b28be4..0c7049ab43 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -76,6 +76,7 @@ PHP_FUNCTION(socket_writev); PHP_FUNCTION(socket_getopt); PHP_FUNCTION(socket_setopt); PHP_FUNCTION(socket_shutdown); +PHP_FUNCTION(socket_last_error); typedef struct php_iovec { struct iovec *iov_array; @@ -87,8 +88,9 @@ typedef int SOCKET; #endif typedef struct { - SOCKET bsd_socket; + SOCKET bsd_socket; int type; + int error; } php_socket; typedef struct { @@ -105,6 +107,9 @@ typedef struct { zend_bool use_system_read; } php_sockets_globals; +int php_read(int bsd_socket, void *buf, int maxlen); +char *php_strerror(int error); + #ifdef ZTS #define SOCKETSG(v) (sockets_globals->v) |