summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets.h
diff options
context:
space:
mode:
authorJason Greene <jason@php.net>2002-09-30 02:09:42 +0000
committerJason Greene <jason@php.net>2002-09-30 02:09:42 +0000
commit06ad8620db76dd85e0d03224bff6b2f5d219f34e (patch)
tree79cdc1a211ee6c57c540f7eb795520babb0a675a /ext/sockets/php_sockets.h
parent6e91aed0695763a9faf377e1a0b1ccb716becfc9 (diff)
downloadphp-git-06ad8620db76dd85e0d03224bff6b2f5d219f34e.tar.gz
Fix thread safety issue
Diffstat (limited to 'ext/sockets/php_sockets.h')
-rw-r--r--ext/sockets/php_sockets.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index b7f47f5072..6710ea9fec 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -41,6 +41,8 @@ extern zend_module_entry sockets_module_entry;
PHP_MINIT_FUNCTION(sockets);
PHP_MINFO_FUNCTION(sockets);
+PHP_RINIT_FUNCTION(sockets);
+PHP_RSHUTDOWN_FUNCTION(sockets);
PHP_FUNCTION(socket_iovec_alloc);
PHP_FUNCTION(socket_iovec_free);
@@ -103,7 +105,8 @@ int accept_connect(php_socket *in_sock, php_socket **new_sock, struct sockaddr *
int php_read(int bsd_socket, void *buf, int maxlen);
ZEND_BEGIN_MODULE_GLOBALS(sockets)
- int last_error;
+ int last_error;
+ char *strerror_buf;
ZEND_END_MODULE_GLOBALS(sockets)
#ifdef ZTS