cvs: php-src(PHP_5_1) /win32 wsyslog.c

From: Date: Mon, 16 Jan 2006 14:26:07 +0000
Subject: cvs: php-src(PHP_5_1) /win32 wsyslog.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36529@lists.php.net to get a copy of this message
dmitry Mon Jan 16 14:26:07 2006 UTC Modified files: (Branch: PHP_5_1) /php-src/win32 wsyslog.c Log: Fixed first-chance exception during request shutdown http://cvs.php.net/viewcvs.cgi/php-src/win32/wsyslog.c?r1=1.6&r2=1.6.2.1&diff_format=u Index: php-src/win32/wsyslog.c diff -u php-src/win32/wsyslog.c:1.6 php-src/win32/wsyslog.c:1.6.2.1 --- php-src/win32/wsyslog.c:1.6 Sat Jul 31 23:59:46 2004 +++ php-src/win32/wsyslog.c Mon Jan 16 14:26:07 2006 @@ -62,9 +62,14 @@ void closelog(void) { TSRMLS_FETCH(); - DeregisterEventSource(PW32G(log_source)); - STR_FREE(PW32G(log_header)); - PW32G(log_header) = NULL; + if (PW32G(log_source)) { + DeregisterEventSource(PW32G(log_source)); + PW32G(log_source) = NULL; + } + if (PW32G(log_header)) { + STR_FREE(PW32G(log_header)); + PW32G(log_header) = NULL; + } } /* Emulator for BSD syslog() routine

« previous php.cvs (#36529) next »