From: Marcus Boerger Date: Fri, 18 May 2007 17:53:07 +0000 (+0000) Subject: - Make phar class optional, allowing PHP_Archive instead X-Git-Tag: RELEASE_1_4~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4988e2d1e7789e4b2502981a68d4ffdf2572a18;p=php - Make phar class optional, allowing PHP_Archive instead --- diff --git a/ext/phar/phar/phar.php b/ext/phar/phar/phar.php index f117793595..9c65acbf64 100755 --- a/ext/phar/phar/phar.php +++ b/ext/phar/phar/phar.php @@ -23,7 +23,7 @@ if (!extension_loaded("phar")) } } -foreach(array("SPL", "Reflection", "Phar") as $ext) +foreach(array("SPL", "Reflection") as $ext) { if (!extension_loaded($ext)) { @@ -32,12 +32,6 @@ 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;