Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
SKip sessionhandlerinterface test in old php
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Aug 28, 2014
1 parent dc816d9 commit e20e4e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/igbinary_047.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Check for serialization handler, SessionHandlerInterface
--SKIPIF--
<?php
// http://php.net/manual/en/class.sessionhandlerinterface.php (PHP 5 >= 5.4.0)
if (version_compare(phpversion(), "6.4.0", "<")) {
exit("skip php version less than 5.4.x");
}

if (!extension_loaded('session')) {
exit('skip session extension not loaded');
}
Expand Down

0 comments on commit e20e4e4

Please sign in to comment.