Skip to content

Conversation

redfoxli
Copy link
Contributor

the bug is here: https://bugs.php.net/bug.php?id=68822

When I use fastcgi_finish_request in php script, I find the result of access log is wrong

I read the php-src, whe use fastcgi_finish_request, it will call fpm_request_finished(it will clean the value of proc->accepted_epoch && proc->accepted ).
But, fpm_log_write need proc->accepted_epoch && proc->accepted to print the log
The process is like this:

main -> php_execute_script -> fastcgi_finish_request -> fcgi_close -> fpm_request_finished -> fpm_request_end -> fpm_log_write

So, I think it is a bug.
By the way,although my PR can solve the problem, but I think it is not very good. -_-||

@jpauli jpauli added the Bug label Jan 14, 2015
@hacfi
Copy link

hacfi commented Feb 13, 2015

The bug has been around for a while: https://bugs.php.net/bug.php?id=62382
Would love to see this getting merged!

@hacfi
Copy link

hacfi commented Feb 14, 2015

Tested this with php 5.6.5 on Debian Wheezy and Jessie..bug is fixed: access logs show correct date and request time.

@laruence
Copy link
Member

seems correct from me, the related fields are properly initialized in reading header, unnecessary set to zero here...

@tony2001
Copy link
Contributor

Merged, thanks!

@hacfi
Copy link

hacfi commented Feb 16, 2015

@tony2001 Awesome..will this make it to 5.6.6/5.5.22 then?

@tony2001
Copy link
Contributor

Yep, in all branches starting with 5.5.

@hacfi
Copy link

hacfi commented Feb 16, 2015

Perfect! Thanks @tony2001

@derickr
Copy link
Member

derickr commented Feb 16, 2015

Closing as per @tony2001 's request.

@derickr derickr closed this Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants