summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/yaz/php_yaz.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c
index b8588ab271..51d0175429 100644
--- a/ext/yaz/php_yaz.c
+++ b/ext/yaz/php_yaz.c
@@ -1534,9 +1534,7 @@ PHP_MSHUTDOWN_FUNCTION(yaz)
tsrm_mutex_free (yaz_mutex);
#endif
- if (yaz_log_file()) {
- fclose(yaz_log_file());
- }
+ yaz_log_init_file(0);
return SUCCESS;
}