summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-11-24 11:54:48 +0000
committerAntony Dovgal <tony2001@php.net>2006-11-24 11:54:48 +0000
commit92ed3d2b4c1ca86c54a18f936eb14c65717e5f4f (patch)
treebf5a58844cc50100983912e5ff8754651401f277
parent63df6688b5161c73324838f533b52662aa3a6c6a (diff)
downloadphp-git-92ed3d2b4c1ca86c54a18f936eb14c65717e5f4f.tar.gz
call sapi_deactivate() & friends on error
fixes leak with `php-cli -n -c ..`
-rw-r--r--sapi/cli/php_cli.c2
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) {