iliaa Wed Feb 20 15:27:30 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/standard syslog.c Log: Fixed a possible crash with syslog logging on ZTS builds http://cvs.php.net/viewvc.cgi/php-src/ext/standard/syslog.c?r1=1.49.2.3.2.2.2.1&r2=1.49.2.3.2.2.2.2&diff_format=u Index: php-src/ext/standard/syslog.c diff -u php-src/ext/standard/syslog.c:1.49.2.3.2.2.2.1 php-src/ext/standard/syslog.c:1.49.2.3.2.2.2.2 --- php-src/ext/standard/syslog.c:1.49.2.3.2.2.2.1 Mon Dec 31 07:17:15 2007 +++ php-src/ext/standard/syslog.c Wed Feb 20 15:27:30 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: syslog.c,v 1.49.2.3.2.2.2.1 2007/12/31 07:17:15 sebastian Exp $ */ +/* $Id: syslog.c,v 1.49.2.3.2.2.2.2 2008/02/20 15:27:30 iliaa Exp $ */ #include "php.h" @@ -110,6 +110,7 @@ } else { BG(syslog_started)=0; } + BG(syslog_device) = NULL; return SUCCESS; } @@ -126,6 +127,7 @@ { if (BG(syslog_device)) { free(BG(syslog_device)); + BG(syslog_device) = NULL; } return SUCCESS; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php