We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f006ad commit 54a8318Copy full SHA for 54a8318
sapi/phpdbg/phpdbg.c
@@ -1300,6 +1300,7 @@ int main(int argc, char **argv) /* {{{ */
1300
zend_bool ext_stmt = 0;
1301
zend_bool use_mm_wrappers = 0;
1302
zend_bool is_exit;
1303
+ int exit_status = 0;
1304
1305
#ifdef ZTS
1306
void ***tsrm_ls;
@@ -1822,6 +1823,7 @@ int main(int argc, char **argv) /* {{{ */
1822
1823
if (quit_immediately) {
1824
/* if -r is on the command line more than once just quit */
1825
EG(bailout) = __orig_bailout; /* reset zend_try */
1826
+ exit_status = EG(exit_status);
1827
break;
1828
}
1829
@@ -1998,5 +2000,6 @@ int main(int argc, char **argv) /* {{{ */
1998
2000
free(PHPDBG_G(sapi_name_ptr));
1999
2001
2002
- return 0;
2003
+ /* usually 0; just for -rr */
2004
+ return exit_status;
2005
} /* }}} */
0 commit comments