Skip to content

Commit a4d609a

Browse files
committed
proper check for php-version
1 parent a7730c9 commit a4d609a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/phar/tests/phar_oo_005.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Phar and RecursiveDirectoryIterator
44
<?php
55
if (!extension_loaded("phar")) die("skip");
66
if (!extension_loaded("spl")) die("skip SPL not available");
7-
if (!version_compare(PHP_VERSION, "5.3", ">=")) die("skip requires 5.3");
7+
if (version_compare(PHP_VERSION, "5.3", "<") or version_compare(PHP_VERSION, "5.4", ">="))
8+
die("skip requires 5.3");
89
?>
910
--INI--
1011
phar.require_hash=0

0 commit comments

Comments
 (0)