diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cdffeebed66a2..2aaadb8e95e2c 100755 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -230,6 +230,8 @@ static void basic_globals_ctor(php_basic_globals *basic_globals_p) /* {{{ */ BG(page_uid) = -1; BG(page_gid) = -1; + + BG(syslog_device)=NULL; } /* }}} */ diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 6ea10cef24711..9d392f212ecc7 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -90,7 +90,6 @@ PHP_MINIT_FUNCTION(syslog) /* AIX doesn't have LOG_PERROR */ REGISTER_LONG_CONSTANT("LOG_PERROR", LOG_PERROR, CONST_CS | CONST_PERSISTENT); /*log to stderr*/ #endif - BG(syslog_device)=NULL; return SUCCESS; }