Return-Path: X-Original-To: apmail-logging-log4php-dev-archive@www.apache.org Delivered-To: apmail-logging-log4php-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29C777AA0 for ; Wed, 23 Nov 2011 12:00:01 +0000 (UTC) Received: (qmail 95361 invoked by uid 500); 23 Nov 2011 12:00:01 -0000 Delivered-To: apmail-logging-log4php-dev-archive@logging.apache.org Received: (qmail 95334 invoked by uid 500); 23 Nov 2011 12:00:01 -0000 Mailing-List: contact log4php-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4PHP Dev" List-Id: Delivered-To: mailing list log4php-dev@logging.apache.org Received: (qmail 95327 invoked by uid 99); 23 Nov 2011 12:00:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 12:00:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 11:59:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D65399955F for ; Wed, 23 Nov 2011 11:59:39 +0000 (UTC) Date: Wed, 23 Nov 2011 11:59:39 +0000 (UTC) From: "Daniel Wong (Updated) (JIRA)" To: log4php-dev@logging.apache.org Message-ID: <535594663.5739.1322049579879.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1820502237.5729.1322049100253.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LOG4PHP-163) LoggerPatternConverter formats max incorrectly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4PHP-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Wong updated LOG4PHP-163: -------------------------------- Attachment: patchfile > LoggerPatternConverter formats max incorrectly > ---------------------------------------------- > > Key: LOG4PHP-163 > URL: https://issues.apache.org/jira/browse/LOG4PHP-163 > Project: Log4php > Issue Type: Bug > Components: Code > Affects Versions: 2.3 > Reporter: Daniel Wong > Priority: Trivial > Labels: patch > Attachments: patchfile > > Original Estimate: 1h > Remaining Estimate: 1h > > When formatting using %.10F notation, the number is truncated from the end of string. Rather, it should truncate to the size of $this->max > Propose for line LoggerPatternConverter.php:98 > $sbuf .= substr($s, -($this->max), $this->max); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira