summaryrefslogtreecommitdiff
path: root/main/php_syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_syslog.c')
-rw-r--r--main/php_syslog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/php_syslog.c b/main/php_syslog.c
index bac29a9042..987ef9cc0c 100644
--- a/main/php_syslog.c
+++ b/main/php_syslog.c
@@ -76,6 +76,13 @@ PHPAPI void php_syslog(int priority, const char *format, ...) /* {{{ */
smart_string_0(&fbuf);
va_end(args);
+ if (PG(syslog_filter) == PHP_SYSLOG_FILTER_RAW) {
+ /* Just send it directly to the syslog */
+ syslog(priority, "%.*s", (int)fbuf.len, fbuf.c);
+ smart_string_free(&fbuf);
+ return;
+ }
+
for (ptr = fbuf.c; ; ++ptr) {
c = *ptr;
if (c == '\0') {