You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2012/09/08 11:51:30 UTC

svn commit: r1382273 - /logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php

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);