]> granicus.if.org Git - php/commitdiff
MFB: proper check for php-version
authorAlexey Zakhlestin <indeyets@php.net>
Tue, 21 Oct 2008 13:00:29 +0000 (13:00 +0000)
committerAlexey Zakhlestin <indeyets@php.net>
Tue, 21 Oct 2008 13:00:29 +0000 (13:00 +0000)
ext/phar/tests/phar_oo_005.phpt

index 119e013699af46a81e31f880da5a27de5287c3c8..2d4cbd082ce5b3d714f15165bb4130fcaf27f95a 100755 (executable)
@@ -4,7 +4,8 @@ Phar and RecursiveDirectoryIterator
 <?php
 if (!extension_loaded("phar")) die("skip");
 if (!extension_loaded("spl")) die("skip SPL not available");
-if (!version_compare(PHP_VERSION, "5.3", "==")) die("skip requires 5.3");
+if (version_compare(PHP_VERSION, "5.3", "<") or version_compare(PHP_VERSION, "5.4", ">="))
+    die("skip requires 5.3");
 ?>
 --INI--
 phar.require_hash=0