From 8106c8b00a8d61197c4d79f5ef4a787bd02550b9 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Thu, 30 Jul 2015 10:57:20 +0200 Subject: [PATCH] Use PHP_VERSION_ID constant. --- src/Session/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Session/Handler.php b/src/Session/Handler.php index bbe741bd..cecb9d53 100644 --- a/src/Session/Handler.php +++ b/src/Session/Handler.php @@ -48,7 +48,7 @@ class Handler implements \SessionHandlerInterface */ public function register() { - if (version_compare(PHP_VERSION, '5.4.0') >= 0) { + if (PHP_VERSION_ID >= 50400) { session_set_save_handler($this, true); } else { session_set_save_handler(