Browse Source

Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Avoid code duplication and don't miss env restore
pull/3577/head
Anatol Belski 8 years ago
parent
commit
b8cfa09657
  1. 4
      sapi/cgi/cgi_main.c

4
sapi/cgi/cgi_main.c

@ -2236,8 +2236,7 @@ consult the installation file that came with this distribution, or visit \n\
while (parent) {
EnterCriticalSection(&cleanup_lock);
if (cleaning_up) {
DeleteCriticalSection(&cleanup_lock);
goto parent_out;
goto parent_loop_end;
}
LeaveCriticalSection(&cleanup_lock);
@ -2293,6 +2292,7 @@ consult the installation file that came with this distribution, or visit \n\
WaitForMultipleObjects(kids, kid_cgi_ps, FALSE, INFINITE);
}
parent_loop_end:
/* restore my env */
SetEnvironmentVariable("PHP_FCGI_CHILDREN", kid_buf);

Loading…
Cancel
Save