summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlexey Zakhlestin <indeyets@php.net>2008-10-21 12:59:45 +0000
committerAlexey Zakhlestin <indeyets@php.net>2008-10-21 12:59:45 +0000
commita4d609ab0462d3ad2509f8e31b3f184a2e44c98a (patch)
tree126941d51c570420a53f978eb1725e36713277e4 /ext
parenta7730c9c8cc0141391978e26d0facec64d0ed7b6 (diff)
downloadphp-git-a4d609ab0462d3ad2509f8e31b3f184a2e44c98a.tar.gz
proper check for php-version
Diffstat (limited to 'ext')
-rwxr-xr-xext/phar/tests/phar_oo_005.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/phar/tests/phar_oo_005.phpt b/ext/phar/tests/phar_oo_005.phpt
index 15762e433b..2d4cbd082c 100755
--- a/ext/phar/tests/phar_oo_005.phpt
+++ b/ext/phar/tests/phar_oo_005.phpt
@@ -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