php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62382
Patch broken-fpm-logtime revision 2012-10-19 07:00 UTC by mauro dot stettler at gmail dot com

Patch broken-fpm-logtime for FPM related Bug #62382

Patch version 2012-10-19 07:00 UTC

Return to Bug #62382 | Download this patch
Patch Revisions:

Developer: mauro.stettler@gmail.com

--- php-5.3.17.old/sapi/fpm/fpm/fpm_request.c	2012-09-13 05:27:16.000000000 +0800
+++ php-5.3.17.new/sapi/fpm/fpm/fpm_request.c	2012-10-19 14:50:20.000000000 +0800
@@ -202,6 +202,8 @@
 	proc->last_request_cpu.tms_cstime = cpu.tms_cstime - proc->cpu_accepted.tms_cstime;
 #endif
 	proc->memory = memory;
+	memset(&proc->accepted, 0, sizeof(proc->accepted));
+	proc->accepted_epoch = 0;
 	fpm_scoreboard_proc_release(proc);
 }
 /* }}} */
@@ -221,8 +223,6 @@
 
 	proc->request_stage = FPM_REQUEST_FINISHED;
 	proc->tv = now;
-	memset(&proc->accepted, 0, sizeof(proc->accepted));
-	proc->accepted_epoch = 0;
 	fpm_scoreboard_proc_release(proc);
 }
 /* }}} */
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 00:01:27 2024 UTC