From 4a5c3043a837d8ba779709317a4a50fd7c8f7ef8 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 26 Jun 2024 14:09:19 +0800 Subject: [PATCH] More accuration --- configs/yaf_config_ini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/yaf_config_ini.c b/configs/yaf_config_ini.c index f49a90ce..036835c2 100644 --- a/configs/yaf_config_ini.c +++ b/configs/yaf_config_ini.c @@ -390,11 +390,11 @@ int yaf_config_ini_init(yaf_config_object *conf, zval *filename, zend_string *se yaf_trigger_error(E_ERROR, "Parsing ini file '%s' failed", ini_file); return 0; } -#if PHP_VERSION_ID < 70400 +#if PHP_VERSION_ID < 80100 fclose(fh.handle.fp); #endif } -#if PHP_VERSION_ID >= 70400 +#if PHP_VERSION_ID >= 80100 /* zend_stream_ini copy filename from 8.1 */ zend_destroy_file_handle(&fh); #endif } else {