ID:               23229
 Comment by:       pickscrape at gmail dot com
 Reported By:      cassano at monroe dot net
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Linux 2.4.18-27
 PHP Version:      4.3.1
 New Comment:

Happens in PHP 5.2.10 too. This limit is short enough to make most 
backtraces completely useless.


Previous Comments:
------------------------------------------------------------------------

[2003-04-15 15:20:59] 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;
}
/* }}} */

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23229&edit=1

Reply via email to