Skip to content

Commit

Permalink
zendframework#7095 - as per PHP 5.4, $_SERVER['REQUEST_TIME_FLOAT']
Browse files Browse the repository at this point in the history
… is available
  • Loading branch information
Ocramius committed Jan 13, 2015
1 parent b1b8db9 commit cfae0de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/Zend/Log/Processor/RequestId.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ protected function getIdentifier()
return $this->identifier;
}

$requestTime = (PHP_VERSION_ID >= 50400)
? $_SERVER['REQUEST_TIME_FLOAT']
: $_SERVER['REQUEST_TIME'];
$requestTime = $_SERVER['REQUEST_TIME_FLOAT'];

if (Console::isConsole()) {
$this->identifier = md5($requestTime);
Expand Down

0 comments on commit cfae0de

Please sign in to comment.