Skip to content

Commit 1631b96

Browse files
committed
exit_status is no longer a true global
1 parent 0c0ecf0 commit 1631b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/php_cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ static int do_cli(int argc, char **argv) /* {{{ */
10641064
zend_printf("Exception: %s\n", Z_STRVAL_P(msg));
10651065
zend_object_release(EG(exception));
10661066
EG(exception) = NULL;
1067-
exit_status = 1;
1067+
EG(exit_status) = 1;
10681068
} else {
10691069
zend_print_zval(&ref, 0);
10701070
zend_write("\n", 1);

0 commit comments

Comments
 (0)