moriyoshi Wed, 20 Jul 2011 09:00:20 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=313467
Log: Fixed bug #55071. Maybe a bit overkill? Bug: https://bugs.php.net/55071 (Re-Opened) Change in-built web server description Changed paths: U php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c U php/php-src/trunk/sapi/cli/php_cli_server.c Modified: php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c =================================================================== --- php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c 2011-07-20 08:43:12 UTC (rev 313466) +++ php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c 2011-07-20 09:00:20 UTC (rev 313467) @@ -2127,7 +2127,19 @@ } 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); Modified: php/php-src/trunk/sapi/cli/php_cli_server.c =================================================================== --- php/php-src/trunk/sapi/cli/php_cli_server.c 2011-07-20 08:43:12 UTC (rev 313466) +++ php/php-src/trunk/sapi/cli/php_cli_server.c 2011-07-20 09:00:20 UTC (rev 313467) @@ -2127,7 +2127,19 @@ } 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php