diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2011-07-20 09:00:20 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2011-07-20 09:00:20 +0000 |
commit | 7907f66e4bb7015e33948e8b547f9c11fdf9ddd5 (patch) | |
tree | 8c06d2fa1ba2be541465e77e280ebdac039812b2 /sapi/cli/php_cli_server.c | |
parent | b0683007c97b0d8568c1cdcb77fb3f68b8457942 (diff) | |
download | php-git-7907f66e4bb7015e33948e8b547f9c11fdf9ddd5.tar.gz |
Fixed bug #55071. Maybe a bit overkill?
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r-- | sapi/cli/php_cli_server.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index ddca03b036..04d24684e5 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -2127,7 +2127,19 @@ int do_cli_server(int argc, char **argv TSRMLS_DC) /* {{{ */ } sapi_module.phpinfo_as_text = 0; - printf("PHP Development Server is listening on %s in %s ... Press Ctrl-C to quit.\n", server_bind_address, document_root); + { + struct timeval tv; + struct tm tm; + char buf[52]; + gettimeofday(&tv, NULL); + php_localtime_r(&tv.tv_sec, &tm); + php_asctime_r(&tm, buf); + printf("PHP Development Server started at %s" + "Listening on %s\n" + "Document root is %s\n" + "Press Ctrl-C to quit.\n", + buf, server_bind_address, document_root); + } #if defined(HAVE_SIGNAL_H) && defined(SIGINT) signal(SIGINT, php_cli_server_sigint_handler); |