]> granicus.if.org Git - php/commitdiff
Fixed bug #36689 (Removed arbitrary limit on the length of syslog messages).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 21 Mar 2006 00:59:08 +0000 (00:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 21 Mar 2006 00:59:08 +0000 (00:59 +0000)
NEWS
ext/standard/syslog.c

diff --git a/NEWS b/NEWS
index bd677afa71615b517759a047b9e01cb3e45b4713..908a5f3b8a957924fac4f63277035e79ae06fea9 100644 (file)
--- 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)
index b3057039e83cacfddf4ee0c2382d3847d75835b9..c07e119d7287c34af384ca9d81bc8d437dead864 100644 (file)
@@ -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;
 }
 /* }}} */