summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-09-20 05:07:15 +0000
committerXinchen Hui <laruence@php.net>2011-09-20 05:07:15 +0000
commit6bd693543b58ed1f61e7a3cd81298660770eece8 (patch)
tree63831550225388cd2c10059c90cc9dbd3de3600a /sapi/cli/php_cli_server.c
parent3e221129a7e6e1c3a1573f2226be08de6d9e8fcf (diff)
downloadphp-git-6bd693543b58ed1f61e7a3cd81298660770eece8.tar.gz
Fix folder
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r--sapi/cli/php_cli_server.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index f8ce39a833..26cbeaa0d7 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -1537,7 +1537,7 @@ static int php_cli_server_client_read_request(php_cli_server_client *client, cha
}
/* }}} */
-static size_t php_cli_server_client_send_through(php_cli_server_client *client, const char *str, size_t str_len) /* }}} */
+static size_t php_cli_server_client_send_through(php_cli_server_client *client, const char *str, size_t str_len) /* {{{ */
{
struct timeval tv = { 10, 0 };
ssize_t nbytes_left = str_len;
@@ -1935,6 +1935,7 @@ fail:
php_cli_server_close_connection(server, client TSRMLS_CC);
return SUCCESS;
}
+/* }}} */
static void php_cli_server_dtor(php_cli_server *server TSRMLS_DC) /* {{{ */
{
@@ -2133,7 +2134,7 @@ typedef struct php_cli_server_do_event_for_each_fd_callback_params {
int(*whandler)(php_cli_server*, php_cli_server_client* TSRMLS_DC);
} php_cli_server_do_event_for_each_fd_callback_params;
-static int php_cli_server_do_event_for_each_fd_callback(void *_params, int fd, int event)
+static int php_cli_server_do_event_for_each_fd_callback(void *_params, int fd, int event) /* {{{ */
{
php_cli_server_do_event_for_each_fd_callback_params *params = _params;
#ifdef ZTS
@@ -2185,7 +2186,7 @@ static int php_cli_server_do_event_for_each_fd_callback(void *_params, int fd, i
}
}
return SUCCESS;
-}
+} /* }}} */
static void php_cli_server_do_event_for_each_fd(php_cli_server *server, int(*rhandler)(php_cli_server*, php_cli_server_client* TSRMLS_DC), int(*whandler)(php_cli_server*, php_cli_server_client* TSRMLS_DC) TSRMLS_DC) /* {{{ */
{
@@ -2228,13 +2229,13 @@ out:
return retval;
} /* }}} */
-
static php_cli_server server;
-static void php_cli_server_sigint_handler(int sig)
+static void php_cli_server_sigint_handler(int sig) /* {{{ */
{
server.is_running = 0;
-};
+}
+/* }}} */
int do_cli_server(int argc, char **argv TSRMLS_DC) /* {{{ */
{