From: Ilia Alshanetsky Date: Sun, 15 Dec 2002 07:03:32 +0000 (+0000) Subject: Close log file on shutdown. X-Git-Tag: PHP_5_0_dev_before_13561_fix~715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc4748139ccb05de3e763d215c7ffa92f52e8543;p=php Close log file on shutdown. --- diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c index 621179f6aa..8a0630218e 100644 --- a/ext/yaz/php_yaz.c +++ b/ext/yaz/php_yaz.c @@ -1509,6 +1509,10 @@ PHP_MSHUTDOWN_FUNCTION(yaz) #ifdef ZTS tsrm_mutex_free (yaz_mutex); #endif + + if (yaz_log_file()) { + fclose(yaz_log_file()); + } return SUCCESS; }