diff options
author | Anatol Belski <ab@php.net> | 2017-08-19 13:49:45 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-08-19 13:51:44 +0200 |
commit | dda70e01069af9cf833ee8a207c4083c437b8343 (patch) | |
tree | ffe689c5758a63927d64ce4b939c0cfb2ea93e79 /main/php_syslog.c | |
parent | a1f3a0105d885879102d366de506c353a75c8d04 (diff) | |
download | php-git-dda70e01069af9cf833ee8a207c4083c437b8343.tar.gz |
Follow up on ed9c16ad5def47d1c8ae2787f53dccfac893ce5f
The event log is not line based, passing the message as is here is just
fine. Otherwise we'd create multiple event log items with partial
messages.
Diffstat (limited to 'main/php_syslog.c')
-rw-r--r-- | main/php_syslog.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/main/php_syslog.c b/main/php_syslog.c index c351951afe..63b23c2363 100644 --- a/main/php_syslog.c +++ b/main/php_syslog.c @@ -37,6 +37,17 @@ #define syslog std_syslog #endif +#ifdef PHP_WIN32 +PHPAPI void php_syslog(int priority, const char *format, ...) /* {{{ */ +{ + va_list args; + + va_start(args, format); + vsyslog(priority, format, args); + va_end(args); +} +/* }}} */ +#else PHPAPI void php_syslog(int priority, const char *format, ...) /* {{{ */ { const char *ptr; @@ -68,8 +79,8 @@ PHPAPI void php_syslog(int priority, const char *format, ...) /* {{{ */ smart_string_free(&fbuf); smart_string_free(&sbuf); } - /* }}} */ +#endif /* * Local variables: |