]> granicus.if.org Git - php/commitdiff
Fix bug #80757 (Exit code is 0 when could not open file)
authorFelipe Pena <felipe@php.net>
Wed, 24 Feb 2021 18:17:27 +0000 (18:17 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 24 Feb 2021 18:50:27 +0000 (18:50 +0000)
sapi/phpdbg/phpdbg_prompt.c

index 24155a7860447e43a26d0c8eaf2695b81b93338e..6b0de5c0214255c1cb8bdaa842147072685432af 100644 (file)
@@ -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;
                        }
                }