]> granicus.if.org Git - php/commitdiff
Close log file on shutdown.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 15 Dec 2002 07:03:32 +0000 (07:03 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 15 Dec 2002 07:03:32 +0000 (07:03 +0000)
ext/yaz/php_yaz.c

index 621179f6aa706fbf96e9d2887e64140fdd33013f..8a0630218e13862608419c114127e5aaf755b3d1 100644 (file)
@@ -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;
 }