mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
bring back all the TSRMLS_FETCH() stuff
for better comparability with the mainstream
This commit is contained in:
parent
382f95e612
commit
c00424e427
97 changed files with 377 additions and 12 deletions
|
@ -61,6 +61,7 @@
|
|||
|
||||
void closelog(void)
|
||||
{
|
||||
TSRMLS_FETCH();
|
||||
if (PW32G(log_source)) {
|
||||
DeregisterEventSource(PW32G(log_source));
|
||||
PW32G(log_source) = NULL;
|
||||
|
@ -84,6 +85,7 @@ void syslog(int priority, const char *message, ...)
|
|||
unsigned short etype;
|
||||
char *tmp = NULL;
|
||||
DWORD evid;
|
||||
TSRMLS_FETCH();
|
||||
|
||||
/* default event source */
|
||||
if (!PW32G(log_source))
|
||||
|
@ -121,6 +123,8 @@ void syslog(int priority, const char *message, ...)
|
|||
|
||||
void openlog(const char *ident, int logopt, int facility)
|
||||
{
|
||||
TSRMLS_FETCH();
|
||||
|
||||
if (PW32G(log_source)) {
|
||||
closelog();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue