diff options
author | Marcus Boerger <helly@php.net> | 2003-04-19 00:02:50 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-04-19 00:02:50 +0000 |
commit | 1b3467e72d45040528454a50d573708eba384905 (patch) | |
tree | f7cb9a7bbfa1137ded74c67a2ec484395278fc55 /sapi/cli/php_cli.c | |
parent | cde6bdce5c440de2c7d96ae7c29a882cf3b6484f (diff) | |
download | php-git-1b3467e72d45040528454a50d573708eba384905.tar.gz |
Shutdown memleaks
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 5abdc4ba6a..2c2b786fbc 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -627,8 +627,8 @@ int main(int argc, char *argv[]) SG(headers_sent) = 1; php_cli_usage(argv[0]); php_end_ob_buffers(1 TSRMLS_CC); - exit(1); - break; + exit_status=1; + goto out_err; case 'a': /* interactive mode */ printf("Interactive mode enabled\n\n"); @@ -691,8 +691,8 @@ int main(int argc, char *argv[]) } php_print_info(0xFFFFFFFF TSRMLS_CC); php_end_ob_buffers(1 TSRMLS_CC); - exit(1); - break; + exit_status=1; + goto out; case 'l': /* syntax check mode */ if (behavior != PHP_MODE_STANDARD) { @@ -712,8 +712,8 @@ int main(int argc, char *argv[]) print_extensions(TSRMLS_C); php_printf("\n"); php_end_ob_buffers(1 TSRMLS_CC); - exit(1); - break; + exit_status=1; + goto out_err; #if 0 /* not yet operational, see also below ... */ case '': /* generate indented source mode*/ @@ -805,8 +805,8 @@ int main(int argc, char *argv[]) } php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2003 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version()); php_end_ob_buffers(1 TSRMLS_CC); - exit(1); - break; + exit_status=1; + goto out; case 'w': if (behavior == PHP_MODE_CLI_DIRECT || behavior == PHP_MODE_PROCESS_STDIN) { @@ -832,7 +832,8 @@ int main(int argc, char *argv[]) SG(headers_sent) = 1; SG(request_info).no_headers = 1; PUTS(param_error); - exit(1); + exit_status=1; + goto out_err; } CG(interactive) = interactive; |