Browse Source

Fix for bug #23229 (syslog function truncates messages): remove the hard-coded

500 character error message limit imposed when using error_log=syslog.
experimental/the_5_4_that_isnt_5_4
Adam Harvey 17 years ago
parent
commit
1f19a7dc6c
  1. 2
      main/main.c

2
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;
}

Loading…
Cancel
Save