Skip to content

Commit 3ec37a7

Browse files
committed
Fix bug #80757 (Exit code is 0 when could not open file)
1 parent 78b0a85 commit 3ec37a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sapi/phpdbg/phpdbg_prompt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@ PHPDBG_COMMAND(run) /* {{{ */
773773
if (!PHPDBG_G(ops)) {
774774
if (phpdbg_compile() == FAILURE) {
775775
phpdbg_error("compile", "type=\"compilefailure\" context=\"%s\"", "Failed to compile %s, cannot run", PHPDBG_G(exec));
776+
EG(exit_status) = FAILURE;
776777
goto out;
777778
}
778779
}

0 commit comments

Comments
 (0)