Skip to content

Commit 4f6cf07

Browse files
author
moriyoshi
committed
- Add built-in web server to CLI SAPI. See the RFC for detail.
git-svn-id: http://svn.php.net/repository/php/php-src/trunk@312344 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 95f46ce commit 4f6cf07

File tree

7 files changed

+4554
-618
lines changed

7 files changed

+4554
-618
lines changed

sapi/cli/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if test "$PHP_CLI" != "no"; then
1414
SAPI_CLI_PATH=sapi/cli/php
1515

1616
dnl Select SAPI
17-
PHP_SELECT_SAPI(cli, program, php_cli.c,, '$(SAPI_CLI_PATH)')
17+
PHP_SELECT_SAPI(cli, program, php_cli.c php_http_parser.c php_cli_server.c,, '$(SAPI_CLI_PATH)')
1818

1919
case $host_alias in
2020
*aix*)

sapi/cli/config.w32

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ ARG_ENABLE('crt-debug', 'Enable CRT memory dumps for debugging sent to STDERR',
66
ARG_ENABLE('cli-win32', 'Build console-less CLI version of PHP', 'no');
77

88
if (PHP_CLI == "yes") {
9-
SAPI('cli', 'php_cli.c', 'php.exe');
9+
SAPI('cli', 'php_cli.c php_http_parser.c php_cli_server.c', 'php.exe');
10+
ADD_FLAG("LIBS_CLI", "ws2_32.lib");
1011
if (PHP_CRT_DEBUG == "yes") {
1112
ADD_FLAG("CFLAGS_CLI", "/D PHP_WIN32_DEBUG_HEAP");
1213
}

0 commit comments

Comments
 (0)