Skip to content

Commit 1179577

Browse files
committed
Removed unused exec_time & fetch_time in zend_accelerator_module
1 parent d539e21 commit 1179577

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ext/opcache/zend_accelerator_module.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,6 @@ static int accelerator_get_scripts(zval *return_value)
599599
zval persistent_script_report;
600600
zend_accel_hash_entry *cache_entry;
601601
struct tm *ta;
602-
struct timeval exec_time;
603-
struct timeval fetch_time;
604602

605603
if (!ZCG(accelerator_enabled) || accelerator_shm_read_lock() != SUCCESS) {
606604
return 0;
@@ -630,8 +628,6 @@ static int accelerator_get_scripts(zval *return_value)
630628
if (ZCG(accel_directives).validate_timestamps) {
631629
add_assoc_long(&persistent_script_report, "timestamp", (zend_long)script->timestamp);
632630
}
633-
timerclear(&exec_time);
634-
timerclear(&fetch_time);
635631

636632
add_assoc_long(&persistent_script_report, "revalidate", (zend_long)script->dynamic_members.revalidate);
637633

ext/standard/microtime.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifdef HAVE_SYS_TYPES_H
2121
#include <sys/types.h>
2222
#endif
23+
#ifdef PHP_WIN32
24+
#include "win32/getrusage.h"
25+
#endif
2326
#ifdef HAVE_SYS_RESOURCE_H
2427
#include <sys/resource.h>
2528
#endif

0 commit comments

Comments
 (0)