Skip to content

Commit b1f8b1d

Browse files
committed
Removed unused exec_time & fetch_time in zend_accelerator_module
1 parent cb009fb commit b1f8b1d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-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/soap/php_http.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19+
#include "php_time.h"
20+
1921
#include "php_soap.h"
2022
#include "ext/hash/php_hash.h" /* For php_hash_bin2hex() */
2123

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)