Merge branch 'PHP-7.3'

* PHP-7.3:
  Avoid code duplication and don't miss env restore
This commit is contained in:
Anatol Belski 2018-10-03 14:36:09 +02:00
commit 1c11fc7f13

View file

@ -2191,8 +2191,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);
@ -2250,6 +2249,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);