mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Fix syslog call
This commit is contained in:
parent
4f0842663f
commit
df5e0cb0a5
@ -275,7 +275,7 @@ void php_log_err(char *log_message)
|
||||
if (PG(error_log) != NULL) {
|
||||
#ifdef HAVE_SYSLOG_H
|
||||
if (!strcmp(PG(error_log), "syslog")) {
|
||||
php_syslog(LOG_NOTICE, log_message);
|
||||
php_syslog(LOG_NOTICE, "%.500s", log_message);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user