diff options
author | Marcus Boerger <helly@php.net> | 2003-04-09 00:38:19 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-04-09 00:38:19 +0000 |
commit | bb0f885d51b02519d8370e38712ecb8f68ba2541 (patch) | |
tree | 4919e0ab80d984e6673e9e63515a8dcacb802ade /sapi/cli/php_cli.c | |
parent | 87c5019dd2c046df86e8c9fb633726ffed6a29b6 (diff) | |
download | php-git-bb0f885d51b02519d8370e38712ecb8f68ba2541.tar.gz |
Hopefully last fix on error reporting
Diffstat (limited to 'sapi/cli/php_cli.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 1bd6c3dd46..475a1d6055 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -903,6 +903,7 @@ int main(int argc, char *argv[]) zend_llist_apply(&global_vars, (llist_apply_func_t) php_register_command_line_global_vars TSRMLS_CC); zend_llist_destroy(&global_vars); + PG(during_request_startup) = 0; switch (behavior) { case PHP_MODE_STANDARD: if (strcmp(file_handle.filename, "-")) { @@ -912,7 +913,6 @@ int main(int argc, char *argv[]) exit_status = EG(exit_status); break; case PHP_MODE_LINT: - PG(during_request_startup) = 0; exit_status = php_lint_script(&file_handle TSRMLS_CC); if (exit_status==SUCCESS) { zend_printf("No syntax errors detected in %s\n", file_handle.filename); |