From: Adam Harvey <aharvey@php.net> Date: Fri, 26 Feb 2010 18:01:03 +0000 (+0000) Subject: Fix for bug #23229 (syslog function truncates messages): remove the hard-coded X-Git-Tag: php-5.4.0alpha1~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f19a7dc6c69bef7e322ae007f91fd5cb57d0c5b;p=php Fix for bug #23229 (syslog function truncates messages): remove the hard-coded 500 character error message limit imposed when using error_log=syslog. --- diff --git a/main/main.c b/main/main.c index e074e71ed7..79138df20a 100644 --- a/main/main.c +++ b/main/main.c @@ -568,7 +568,7 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC) if (PG(error_log) != NULL) { #ifdef HAVE_SYSLOG_H if (!strcmp(PG(error_log), "syslog")) { - php_syslog(LOG_NOTICE, "%.500s", log_message); + php_syslog(LOG_NOTICE, "%s", log_message); PG(in_error_log) = 0; return; }