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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_syslog.c b/main/php_syslog.c
index 3bb9ee86dd..fd31a12d8c 100644
--- a/main/php_syslog.c
+++ b/main/php_syslog.c
@@ -94,7 +94,7 @@ PHPAPI void php_syslog(int priority, const char *format, ...) /* {{{ */
else if (c == '\n') {
syslog(priority, "%.*s", (int)sbuf.len, sbuf.c);
smart_string_reset(&sbuf);
- } else if ((c < 0x20) && (PG(syslog_filter) == PHP_SYSLOG_FILTER_NONE))
+ } else if ((c < 0x20) && (PG(syslog_filter) == PHP_SYSLOG_FILTER_ALL))
smart_string_appendc(&sbuf, c);
else {
const char xdigits[] = "0123456789abcdef";