summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_accelerator_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/zend_accelerator_debug.c')
-rw-r--r--ext/opcache/zend_accelerator_debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/opcache/zend_accelerator_debug.c b/ext/opcache/zend_accelerator_debug.c
index 7a8cdad0e3..4dbe43191f 100644
--- a/ext/opcache/zend_accelerator_debug.c
+++ b/ext/opcache/zend_accelerator_debug.c
@@ -34,7 +34,6 @@ void zend_accel_error(int type, const char *format, ...)
time_t timestamp;
char *time_string;
FILE * fLog = NULL;
- TSRMLS_FETCH();
if (type > ZCG(accel_directives).log_verbosity_level) {
return;
@@ -57,7 +56,7 @@ void zend_accel_error(int type, const char *format, ...)
}
#ifdef ZTS
- fprintf(fLog, "%s (%lu): ", time_string, (unsigned long)tsrm_thread_id());
+ fprintf(fLog, "%s (" ZEND_ULONG_FMT "): ", time_string, (zend_ulong)tsrm_thread_id());
#else
fprintf(fLog, "%s (%d): ", time_string, getpid());
#endif