exit_status is no longer a true global

This commit is contained in:
Christoph M. Becker 2021-07-12 23:36:21 +02:00
parent 0c0ecf0470
commit 1631b96b4b
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -1064,7 +1064,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
zend_printf("Exception: %s\n", Z_STRVAL_P(msg));
zend_object_release(EG(exception));
EG(exception) = NULL;
exit_status = 1;
EG(exit_status) = 1;
} else {
zend_print_zval(&ref, 0);
zend_write("\n", 1);