From: Andrey Hristov Date: Fri, 30 Jul 1999 13:17:29 +0000 (+0000) Subject: Fix for bug #1907. X-Git-Tag: php-4.0b2~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1a84e442e8fe918e5d5151c0a354dc640799abf;p=php Fix for bug #1907. --- diff --git a/main/main.c b/main/main.c index 7bc830723a..b0adfc4eba 100644 --- a/main/main.c +++ b/main/main.c @@ -270,7 +270,7 @@ void php3_log_err(char *log_message) /* Try to use the specified logging location. */ if (PG(error_log) != NULL) { #if HAVE_SYSLOG_H - if (strcmp(PG(error_log), "syslog")) { + if (!strcmp(PG(error_log), "syslog")) { syslog(LOG_NOTICE, log_message); return; } else {