Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 182E6D2EB for ; Sat, 8 Sep 2012 09:52:18 +0000 (UTC) Received: (qmail 95799 invoked by uid 500); 8 Sep 2012 09:52:17 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 95763 invoked by uid 500); 8 Sep 2012 09:52:17 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 95736 invoked by uid 99); 8 Sep 2012 09:52:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2012 09:52:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2012 09:52:14 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A3E1523889B8; Sat, 8 Sep 2012 09:51:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1382273 - /logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php Date: Sat, 08 Sep 2012 09:51:30 -0000 To: commits@logging.apache.org From: ihabunek@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120908095130.A3E1523889B8@eris.apache.org> Author: ihabunek Date: Sat Sep 8 09:51:30 2012 New Revision: 1382273 URL: http://svn.apache.org/viewvc?rev=1382273&view=rev Log: Fixed LoggerLoggingEvent constructor to accept any numeric value for it's timestamp, not just floats. Modified: logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php Modified: logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php?rev=1382273&r1=1382272&r2=1382273&view=diff ============================================================================== --- logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php (original) +++ logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php Sat Sep 8 09:51:30 2012 @@ -127,7 +127,7 @@ class LoggerLoggingEvent { } $this->level = $level; $this->message = $message; - if($timeStamp !== null && is_float($timeStamp)) { + if($timeStamp !== null && is_numeric($timeStamp)) { $this->timeStamp = $timeStamp; } else { $this->timeStamp = microtime(true);