From: Marcus Boerger Date: Mon, 14 May 2007 18:37:30 +0000 (+0000) Subject: - Require phar version 1.2.0+ X-Git-Tag: RELEASE_1_2_0~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a20584b6a9fe96cd4257fd7aca870432831a282;p=php - Require phar version 1.2.0+ --- diff --git a/ext/phar/phar/phar.php b/ext/phar/phar/phar.php index f918032b44..ca7f8d2d61 100755 --- a/ext/phar/phar/phar.php +++ b/ext/phar/phar/phar.php @@ -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;