From: Ilia Alshanetsky Date: Tue, 21 Mar 2006 00:59:08 +0000 (+0000) Subject: Fixed bug #36689 (Removed arbitrary limit on the length of syslog messages). X-Git-Tag: php-5.1.3RC2~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79e7432c971e904c84b7774674fc71f805091fd4;p=php Fixed bug #36689 (Removed arbitrary limit on the length of syslog messages). --- diff --git a/NEWS b/NEWS index bd677afa71..908a5f3b8a 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,8 @@ PHP NEWS defined). (Tony) - Fixed bug #36697 (Transparency is lost when using imagecreatetruecolor). (Pierre) +- Fixed bug #36689 (Removed arbitrary limit on the length of syslog messages). + (Ilia) - Fixed bug #36629 (SoapServer::handle() exits on SOAP faults). (Dmitry) - Fixed Bug #36614 (Segfault when using Soap). (Dmitry) - Fixed bug #36568 (memory_limit setting on win32 has no effect). (Dmitry) diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index b3057039e8..c07e119d72 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -267,12 +267,7 @@ PHP_FUNCTION(syslog) return; } - /* - * CAVEAT: if the message contains patterns such as "%s", - * this will cause problems. - */ - - php_syslog(priority, "%.500s", message); + php_syslog(priority, "%s", message); RETURN_TRUE; } /* }}} */