]> granicus.if.org Git - php/commitdiff
Fix for bug #23229 (syslog function truncates messages): remove the hard-coded
authorAdam Harvey <aharvey@php.net>
Fri, 26 Feb 2010 18:01:03 +0000 (18:01 +0000)
committerAdam Harvey <aharvey@php.net>
Fri, 26 Feb 2010 18:01:03 +0000 (18:01 +0000)
500 character error message limit imposed when using error_log=syslog.

main/main.c

index fcbd4f6096c0c9daf7d7ccf377ee63bb7d35b9a8..8c2669a3f13ef3a465731d08e45f4d80729398ec 100644 (file)
@@ -501,7 +501,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;
                }