diff options
Diffstat (limited to 'ext/standard/syslog.c')
| -rw-r--r-- | ext/standard/syslog.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 912ebf4cba..038996e825 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -125,6 +125,12 @@ PHP_MSHUTDOWN_FUNCTION(syslog) return SUCCESS; } +void php_openlog(const char *ident, int option, int facility) +{ + openlog(ident, option, facility); + PG(have_called_openlog) = 1; +} + /* {{{ proto bool openlog(string ident, int option, int facility) Open connection to system logger */ /* @@ -151,7 +157,7 @@ PHP_FUNCTION(openlog) if(BG(syslog_device) == NULL) { RETURN_FALSE; } - openlog(BG(syslog_device), option, facility); + php_openlog(BG(syslog_device), option, facility); RETURN_TRUE; } /* }}} */ |
