mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
export le_socket from ext/sockets
This commit is contained in:
parent
4cc35aeaaf
commit
fe7e08432e
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user