From: Antony Dovgal Date: Mon, 20 Mar 2006 23:32:58 +0000 (+0000) Subject: shutdown syslog module before freeing basic_globals X-Git-Tag: php-5.1.3RC2~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2bbaca8e8577ddc9161a3216c29f9636bc7b2e2;p=php shutdown syslog module before freeing basic_globals --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index f70bbd2723..a54c82acd4 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1126,6 +1126,9 @@ PHP_MINIT_FUNCTION(basic) PHP_MSHUTDOWN_FUNCTION(basic) { +#ifdef HAVE_SYSLOG_H + PHP_MSHUTDOWN(syslog)(SHUTDOWN_FUNC_ARGS_PASSTHRU); +#endif #ifdef ZTS ts_free_id(basic_globals_id); #ifdef PHP_WIN32 @@ -1150,9 +1153,6 @@ PHP_MSHUTDOWN_FUNCTION(basic) PHP_MSHUTDOWN(url_scanner_ex)(SHUTDOWN_FUNC_ARGS_PASSTHRU); PHP_MSHUTDOWN(file)(SHUTDOWN_FUNC_ARGS_PASSTHRU); PHP_MSHUTDOWN(standard_filters)(SHUTDOWN_FUNC_ARGS_PASSTHRU); -#ifdef HAVE_SYSLOG_H - PHP_MSHUTDOWN(syslog)(SHUTDOWN_FUNC_ARGS_PASSTHRU); -#endif #if defined(HAVE_LOCALECONV) && defined(ZTS) PHP_MSHUTDOWN(localeconv)(SHUTDOWN_FUNC_ARGS_PASSTHRU); #endif