Fixed php version comparison bug in 0.1
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment