summaryrefslogtreecommitdiff
path: root/sapi/cli
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-04-19 15:02:44 +0000
committerMarcus Boerger <helly@php.net>2003-04-19 15:02:44 +0000
commitde76ceb2d300f7a4e6bde5edfe59d658043a4096 (patch)
tree0ecb146b58330b6ebf2c440287f1537ddfd00e55 /sapi/cli
parentb99a491e33368e7077ff2ca07f2f6bdc615554a3 (diff)
downloadphp-git-de76ceb2d300f7a4e6bde5edfe59d658043a4096.tar.gz
Fix more shutdown wierdness
Diffstat (limited to 'sapi/cli')
-rw-r--r--sapi/cli/php_cli.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 22aef0ef79..9bc806e839 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -609,12 +609,14 @@ int main(int argc, char *argv[])
zend_uv.html_errors = 0; /* tell the engine we're in non-html mode */
CG(in_compilation) = 0; /* not initialized but needed for several options */
+ EG(uninitialized_zval_ptr) = NULL;
if (cli_sapi_module.php_ini_path_override && cli_sapi_module.php_ini_ignore) {
SG(headers_sent) = 1;
SG(request_info).no_headers = 1;
PUTS("You cannot use both -n and -c switch. Use -h for help.\n");
- exit(1);
+ exit_status=1;
+ goto out_err;
}
while ((c = php_getopt(argc, argv, OPTIONS, &optarg, &optind, 0)) != -1) {