Skip to content

Commit 502485d

Browse files
committed
use PHP_VERSION_ID available since php 5.2.7
http://php.net/manual/en/function.phpversion.php
1 parent efd6f5b commit 502485d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Saml2/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ public static function query($dom, $query, $context = null)
862862
*/
863863
public static function isSessionStarted()
864864
{
865-
if (version_compare(phpversion(), '5.4.0', '>=')) {
865+
if (PHP_VERSION_ID >= 50400) {
866866
return session_status() === PHP_SESSION_ACTIVE ? true : false;
867867
} else {
868868
return session_id() === '' ? false : true;

0 commit comments

Comments
 (0)