logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1382273 - /logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php
Date Sat, 08 Sep 2012 09:51:30 GMT
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);



Mime
View raw message