From d4988e2d1e7789e4b2502981a68d4ffdf2572a18 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 18 May 2007 17:53:07 +0000 Subject: [PATCH] - Make phar class optional, allowing PHP_Archive instead --- ext/phar/phar/phar.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; -- 2.40.0