diff options
author | Antony Dovgal <tony2001@php.net> | 2006-11-24 11:54:48 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-11-24 11:54:48 +0000 |
commit | 92ed3d2b4c1ca86c54a18f936eb14c65717e5f4f (patch) | |
tree | bf5a58844cc50100983912e5ff8754651401f277 | |
parent | 63df6688b5161c73324838f533b52662aa3a6c6a (diff) | |
download | php-git-92ed3d2b4c1ca86c54a18f936eb14c65717e5f4f.tar.gz |
call sapi_deactivate() & friends on error
fixes leak with `php-cli -n -c ..`
-rw-r--r-- | sapi/cli/php_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 9e8e26e374..2793494b83 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -718,7 +718,7 @@ int main(int argc, char *argv[]) if (cli_sapi_module.php_ini_path_override && cli_sapi_module.php_ini_ignore) { PUTS("You cannot use both -n and -c switch. Use -h for help.\n"); exit_status=1; - goto out_err; + goto err; } while ((c = php_getopt(argc, argv, OPTIONS, &php_optarg, &php_optind, 0)) != -1) { |