PHP_FUNCTION(socket_sendto);
PHP_FUNCTION(socket_get_option);
PHP_FUNCTION(socket_set_option);
+#ifdef HAVE_SHUTDOWN
PHP_FUNCTION(socket_shutdown);
+#endif
PHP_FUNCTION(socket_last_error);
PHP_FUNCTION(socket_clear_error);
PHP_FE(socket_sendto, NULL)
PHP_FE(socket_get_option, NULL)
PHP_FE(socket_set_option, NULL)
+#ifdef HAVE_SHUTDOWN
PHP_FE(socket_shutdown, NULL)
+#endif
PHP_FE(socket_last_error, NULL)
PHP_FE(socket_clear_error, NULL)
/* }}} */
#endif
+#ifdef HAVE_SHUTDOWN
/* {{{ proto bool socket_shutdown(resource socket[, int how])
Shuts down a socket for receiving, sending, or both. */
PHP_FUNCTION(socket_shutdown)
RETURN_TRUE;
}
/* }}} */
+#endif
/* {{{ proto int socket_last_error([resource socket])
Returns the last socket error (either the last used or the provided socket resource) */