From 3ec37a74a27261193155228081ec1bf6df35868e Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 24 Feb 2021 18:17:27 +0000 Subject: Fix bug #80757 (Exit code is 0 when could not open file) --- sapi/phpdbg/phpdbg_prompt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sapi/phpdbg') diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 24155a7860..6b0de5c021 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -773,6 +773,7 @@ PHPDBG_COMMAND(run) /* {{{ */ if (!PHPDBG_G(ops)) { if (phpdbg_compile() == FAILURE) { phpdbg_error("compile", "type=\"compilefailure\" context=\"%s\"", "Failed to compile %s, cannot run", PHPDBG_G(exec)); + EG(exit_status) = FAILURE; goto out; } } -- cgit v1.2.1