Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/4980' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Processor/Backtrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public function process(array $event)
*/
protected function getBacktrace()
{
if (version_compare(PHP_VERSION, '5.4.0') >= 0) {
if (PHP_VERSION_ID >= 50400) {
return debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, $this->traceLimit);
}

if (version_compare(PHP_VERSION, '5.3.6') >= 0) {
if (PHP_VERSION_ID >= 50306) {
return debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Processor/RequestId.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function getIdentifier()
return $this->identifier;
}

$requestTime = (version_compare(PHP_VERSION, '5.4.0') >= 0)
$requestTime = (PHP_VERSION_ID >= 50400)
? $_SERVER['REQUEST_TIME_FLOAT']
: $_SERVER['REQUEST_TIME'];

Expand Down

0 comments on commit c35719b

Please sign in to comment.