]> granicus.if.org Git - php/commitdiff
export le_socket from ext/sockets
authorAntony Dovgal <tony2001@php.net>
Mon, 31 Aug 2009 08:41:03 +0000 (08:41 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 31 Aug 2009 08:41:03 +0000 (08:41 +0000)
ext/sockets/php_sockets.h
ext/sockets/sockets.c

index 3e7030445f93246b5869bce83850993e0e2edc0b..9dbecb8274266725e5a508bbe93a65ef3060db89 100644 (file)
@@ -91,6 +91,8 @@ struct        sockaddr_un {
 };
 #endif
 
+PHPAPI int php_sockets_le_socket(void);
+
 /* 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);
index 8a683e59136f00fe547d8a4b151cb8a99dc7238e..32f6eef1dd72b3836948d8c7d0208eda59d18dba 100644 (file)
@@ -323,6 +323,12 @@ ZEND_GET_MODULE(sockets)
 /* inet_ntop should be used instead of inet_ntoa */
 int inet_ntoa_lock = 0;
 
+PHPAPI int php_sockets_le_socket(void) /* {{{ */
+{
+       return le_socket;
+}
+/* }}} */
+
 static void php_destroy_socket(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
 {
        php_socket *php_sock = (php_socket *) rsrc->ptr;