From 33fc9e1569c3155a05cac3214a93cad9aa58ed11 Mon Sep 17 00:00:00 2001 From: yuqing Date: Wed, 8 Feb 2017 10:28:47 +0800 Subject: [PATCH] compile in php70 --- php-fastcommon/fastcommon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/php-fastcommon/fastcommon.c b/php-fastcommon/fastcommon.c index fc71e04..b580ae8 100644 --- a/php-fastcommon/fastcommon.c +++ b/php-fastcommon/fastcommon.c @@ -929,7 +929,7 @@ static LogContext *get_logger_context(const char *filename, const int time_preci #define FASTCOMMON_ALLOCA_FREE(s) \ do { \ if (s != NULL) { \ - ZSTR_ALLOCA_FREE(sz_##s, use_heap_#ss); \ + ZSTR_ALLOCA_FREE(sz_##s, use_heap_##s); \ } \ } while (0) @@ -1005,9 +1005,9 @@ ZEND_FUNCTION(fastcommon_error_log) zend_string *sz_message; zend_string *sz_filename; zend_string *sz_headers; - bool use_heap_msg; - bool use_heap_filename; - bool use_heap_header; + bool use_heap_message = false; + bool use_heap_filename = false; + bool use_heap_headers = false; #endif if (error_log_func == NULL) {