summaryrefslogtreecommitdiff
path: root/sapi/cgi
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2005-10-06 20:29:41 +0000
committerJohannes Schlüter <johannes@php.net>2005-10-06 20:29:41 +0000
commitd3dc0a39bc0779f5b9047d71596403d3d09628c7 (patch)
tree7da07d4bc66034c058c24029715be8db91c4d9bc /sapi/cgi
parente1791bedd5084754de2b32b45c144d3d8b6a3758 (diff)
downloadphp-git-d3dc0a39bc0779f5b9047d71596403d3d09628c7.tar.gz
- MFH: Fix #34557 php -m exits with "error" 1
Diffstat (limited to 'sapi/cgi')
-rw-r--r--sapi/cgi/cgi_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index d6ad516a50..7597bff7a6 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1366,7 +1366,7 @@ consult the installation file that came with this distribution, or visit \n\
}
php_print_info(0xFFFFFFFF TSRMLS_CC);
php_end_ob_buffers(1 TSRMLS_CC);
- exit(1);
+ exit(0);
break;
case 'l': /* syntax check mode */
@@ -1384,7 +1384,7 @@ consult the installation file that came with this distribution, or visit \n\
print_extensions(TSRMLS_C);
php_printf("\n");
php_end_ob_buffers(1 TSRMLS_CC);
- exit(1);
+ exit(0);
break;
#if 0 /* not yet operational, see also below ... */
@@ -1417,7 +1417,7 @@ consult the installation file that came with this distribution, or visit \n\
php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2005 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
#endif
php_end_ob_buffers(1 TSRMLS_CC);
- exit(1);
+ exit(0);
break;
case 'w':