summaryrefslogtreecommitdiff
path: root/sapi/cli/cli_win32.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-01-14 03:14:18 +0000
committerWez Furlong <wez@php.net>2004-01-14 03:14:18 +0000
commit31f7699a857534d24990b1c7d5e06ed81e85ad9b (patch)
tree83ccca6f9fb494e4ae3d808b97cf2e2f992fab83 /sapi/cli/cli_win32.c
parent604890702933a37814b379b0a947bb092e837b3e (diff)
downloadphp-git-31f7699a857534d24990b1c7d5e06ed81e85ad9b.tar.gz
Add optional php-win.exe variation of the CLI sapi.
php-win.exe runs in the windows GUI subsystem, and thus has no console; stdio handles are effectively set to /dev/null and no "dos box" will appear on screen when running scripts using this sapi (php-gtk people will be familiar with this concept). Aside from those differences, php-win.exe is 100% identical to regular CLI
Diffstat (limited to 'sapi/cli/cli_win32.c')
-rw-r--r--sapi/cli/cli_win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/cli/cli_win32.c b/sapi/cli/cli_win32.c
new file mode 100644
index 0000000000..4407fd088f
--- /dev/null
+++ b/sapi/cli/cli_win32.c
@@ -0,0 +1,2 @@
+#define PHP_CLI_WIN32_NO_CONSOLE 1
+#include "php_cli.c"