Use PHP_VERSION_ID constant.

This commit is contained in:
Daniele Alessandri
2015-07-30 10:56:54 +02:00
parent 8aec51b34f
commit 0c0cbbafff
+1 -1
View File
@@ -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(