summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2021-02-24 18:17:27 +0000
committerFelipe Pena <felipe@php.net>2021-02-24 18:50:27 +0000
commit3ec37a74a27261193155228081ec1bf6df35868e (patch)
tree8def26aa7f95275d49171fceb1e2a5fad4832037 /sapi
parent78b0a85de6c582d212e30b8b28aa099311c9a519 (diff)
downloadphp-git-3ec37a74a27261193155228081ec1bf6df35868e.tar.gz
Fix bug #80757 (Exit code is 0 when could not open file)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/phpdbg/phpdbg_prompt.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}