diff --git a/src/Processor/Backtrace.php b/src/Processor/Backtrace.php index e827bbfc..9a3cacb2 100644 --- a/src/Processor/Backtrace.php +++ b/src/Processor/Backtrace.php @@ -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); } diff --git a/src/Processor/RequestId.php b/src/Processor/RequestId.php index 61520b21..5cfcb927 100644 --- a/src/Processor/RequestId.php +++ b/src/Processor/RequestId.php @@ -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'];