mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
Fix for bug #23229 (syslog function truncates messages): remove the hard-coded
500 character error message limit imposed when using error_log=syslog.
This commit is contained in:
1 parent
e9692ffd2a
commit
6b6cdc8dde
1 file changed
+1
-1
+1
-1
@@ -655,7 +655,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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user