diff options
-rw-r--r-- | sapi/cli/php_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 657c59a851..a6fb207df5 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -726,7 +726,7 @@ int main(int argc, char *argv[]) } } zend_catch { - exit_status = 255; + exit_status = EG(exit_status); } zend_end_try(); php_module_shutdown(TSRMLS_C); |