Skip to content

Commit 7baa1b0

Browse files
committed
revert wrong slowlog fix, zend MM is already shut down at the moment
1 parent 799b3b4 commit 7baa1b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,11 +1764,11 @@ consult the installation file that came with this distribution, or visit \n\
17641764

17651765
zend_first_try {
17661766
while (fcgi_accept_request(&request) >= 0) {
1767+
char *status_buffer, *status_content_type;
17671768
request_body_fd = -1;
17681769
SG(server_context) = (void *) &request;
17691770
init_request_info(TSRMLS_C);
17701771
CG(interactive) = 0;
1771-
char *status_buffer, *status_content_type;
17721772

17731773
fpm_request_info();
17741774

@@ -1858,6 +1858,9 @@ consult the installation file that came with this distribution, or visit \n\
18581858
}
18591859
}
18601860

1861+
STR_FREE(SG(request_info).path_translated);
1862+
SG(request_info).path_translated = NULL;
1863+
18611864
php_request_shutdown((void *) 0);
18621865

18631866
if (exit_status == 0) {
@@ -1869,9 +1872,6 @@ consult the installation file that came with this distribution, or visit \n\
18691872
SG(request_info).query_string = NULL;
18701873
}
18711874

1872-
STR_FREE(SG(request_info).path_translated);
1873-
SG(request_info).path_translated = NULL;
1874-
18751875
requests++;
18761876
if (max_requests && (requests == max_requests)) {
18771877
fcgi_finish_request(&request, 1);

0 commit comments

Comments
 (0)