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.
2 parents e200c7a + d1f0662 commit 7e4c012Copy full SHA for 7e4c012
sapi/cli/php_cli.c
@@ -1167,15 +1167,15 @@ static int do_cli(int argc, char **argv TSRMLS_DC) /* {{{ */
1167
} zend_end_try();
1168
1169
out:
1170
- if (exit_status == 0) {
1171
- exit_status = EG(exit_status);
1172
- }
1173
if (request_started) {
1174
php_request_shutdown((void *) 0);
1175
}
1176
if (translated_path) {
1177
free(translated_path);
1178
+ if (exit_status == 0) {
+ exit_status = EG(exit_status);
+ }
1179
return exit_status;
1180
err:
1181
sapi_deactivate(TSRMLS_C);
0 commit comments