Skip to content

Commit

Permalink
Initialize syslog device in GINIT
Browse files Browse the repository at this point in the history
Closes GH-12663
  • Loading branch information
bukka committed Nov 16, 2023
1 parent 0b5824e commit b4208c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ext/standard/basic_functions.c
Expand Up @@ -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;
}
/* }}} */

Expand Down
1 change: 0 additions & 1 deletion ext/standard/syslog.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b4208c8

Please sign in to comment.