Procházet zdrojové kódy

Use PHP_VERSION_ID constant.

Daniele Alessandri před 9 roky
rodič
revize
8106c8b00a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Session/Handler.php

+ 1 - 1
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(