PHP :: Request #23229 :: syslog function truncates messages
| Request #23229 | syslog function truncates messages | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2003-04-15 15:20 UTC | Modified: | 2010-02-26 18:17 UTC |
|
||||||||||
| From: | cassano at monroe dot net | Assigned: | aharvey (profile) | |||||||||||
| Status: | Closed | Package: | Feature/Change Request | |||||||||||
| PHP Version: | 5.2.10 | OS: | Linux 2.4.18-27 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2003-04-15 15:20 UTC] cassano at monroe dot net
The PHP syslog function is truncating messages longer than 500 characters which is currently stopping our ability to respond to error states in our multi-logging environment(i.e. things other than PHP).
Please change this to something more appropiate like 16384 bytes.
Here is the PHP syslog function.
/* {{{ proto bool syslog(int priority, string message)
Generate a system log message */
PHP_FUNCTION(syslog)
{
long priority;
char *message;
int message_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &priority,
&message, &message_len) == FAILURE) {
return;
}
/*
* CAVEAT: if the message contains patterns such as "%s",
* this will cause problems.
*/
php_syslog(priority, "%.500s", message);
RETURN_TRUE;
}
/* }}} */
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-02-26 13:34 UTC] pickscrape at gmail dot com
[2010-02-26 13:57 UTC] mbtaylor at gmail dot com
[2010-02-26 16:04 UTC] aharvey@php.net
[2010-02-26 17:00 UTC] aharvey@php.net
[2010-02-26 17:02 UTC] aharvey@php.net
[2010-02-26 18:17 UTC] aharvey@php.net