Fixed LoggerLoggingEvent constructor to accept any numeric value for it's timestamp...
authorIvan Habunek <ihabunek@apache.org>
Sat, 8 Sep 2012 09:51:30 +0000 (09:51 +0000)
committerIvan Habunek <ihabunek@apache.org>
Sat, 8 Sep 2012 09:51:30 +0000 (09:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/logging/log4php/trunk@1382273 13f79535-47bb-0310-9956-ffa450edef68

src/main/php/LoggerLoggingEvent.php

index 3c0e917..29ba361 100644 (file)
@@ -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);