]> granicus.if.org Git - php/commitdiff
- Require phar version 1.2.0+
authorMarcus Boerger <helly@php.net>
Mon, 14 May 2007 18:37:30 +0000 (18:37 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 14 May 2007 18:37:30 +0000 (18:37 +0000)
ext/phar/phar/phar.php

index f918032b44cfc746c8d84486d87bcafab7d3b47c..ca7f8d2d6173bbb998ddaba0a1c13dc84eb271a5 100755 (executable)
@@ -18,6 +18,12 @@ foreach(array("SPL", "Reflection", "Phar") as $ext)
        }
 }
 
+if (version_compare(phpversion('phar'), '1.2.0', '<'))
+{
+       echo "Phar extension version 1.2.0 or later requireed.\n";
+       exit(1);
+}
+
 function command_include($file)
 {
        $file = 'phar://' . __FILE__ . '/' . $file;