bc190ca2 by Chris Boden

Fixed php version comparison bug in 0.1

1 parent 988ae995
...@@ -6,7 +6,7 @@ Description: Various classes to help out with stuff ...@@ -6,7 +6,7 @@ Description: Various classes to help out with stuff
6 Author: Tenzing 6 Author: Tenzing
7 */ 7 */
8 8
9 if (phpversion() < '5.2.2') { 9 if (version_compare(PHP_VERSION, '5.2.2') !== 1) {
10 die('PHP version 5.2.2 or greater is required'); 10 die('PHP version 5.2.2 or greater is required');
11 } 11 }
12 12
......