Browse Source

Implemented FR #62700 (have the console output 'Listening on http://localhost:8000')

PHP-5.4.6
Xinchen Hui 14 years ago
parent
commit
0988ae3c43
  1. 4
      NEWS
  2. 2
      sapi/cli/php_cli_server.c

4
NEWS

@ -2,6 +2,10 @@ PHP NEWS
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2012, PHP 5.4.6 ?? ??? 2012, PHP 5.4.6
- CLI Server:
. Implemented FR #62700 (have the console output 'Listening on
http://localhost:8000'). (pascal.chevrel@free.fr)
- Core: - Core:
. Fixed bug #62661 (Interactive php-cli crashes if include() is used in . Fixed bug #62661 (Interactive php-cli crashes if include() is used in
auto_prepend_file). (Laruence) auto_prepend_file). (Laruence)

2
sapi/cli/php_cli_server.c

@ -2407,7 +2407,7 @@ int do_cli_server(int argc, char **argv TSRMLS_DC) /* {{{ */
php_localtime_r(&tv.tv_sec, &tm); php_localtime_r(&tv.tv_sec, &tm);
php_asctime_r(&tm, buf); php_asctime_r(&tm, buf);
printf("PHP %s Development Server started at %s" printf("PHP %s Development Server started at %s"
"Listening on %s\n"
"Listening on http://%s\n"
"Document root is %s\n" "Document root is %s\n"
"Press Ctrl-C to quit.\n", "Press Ctrl-C to quit.\n",
PHP_VERSION, buf, server_bind_address, document_root); PHP_VERSION, buf, server_bind_address, document_root);

Loading…
Cancel
Save