diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-08-01 12:26:28 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-08-01 12:26:28 +0000 |
| commit | 68616d764c6787caea037809f53105e3e0f58fca (patch) | |
| tree | d55ca00c589bf7f574565c9378db9f69ea9d1ccd /sapi/cgi/cgi_main.c | |
| parent | a0ad4f949e137af1ef6c7c753ec8c2a321f49998 (diff) | |
| download | php-git-68616d764c6787caea037809f53105e3e0f58fca.tar.gz | |
Fixed bug #23509 (exit code lost when exit() called from
register_shutdown_function())
Diffstat (limited to 'sapi/cgi/cgi_main.c')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index f7c038bb5e..06e6653733 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1558,7 +1558,6 @@ consult the installation file that came with this distribution, or visit \n\ switch (behavior) { case PHP_MODE_STANDARD: php_execute_script(&file_handle TSRMLS_CC); - exit_status = EG(exit_status); break; case PHP_MODE_LINT: PG(during_request_startup) = 0; @@ -1615,6 +1614,7 @@ fastcgi_request_done: } php_request_shutdown((void *) 0); + exit_status = EG(exit_status); if (SG(request_info).path_translated) { free(SG(request_info).path_translated); |
