]> granicus.if.org Git - php/commitdiff
- Make phar class optional, allowing PHP_Archive instead
authorMarcus Boerger <helly@php.net>
Fri, 18 May 2007 17:53:07 +0000 (17:53 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 18 May 2007 17:53:07 +0000 (17:53 +0000)
ext/phar/phar/phar.php

index f117793595549158325ecfd3fef3ff86f44a4211..9c65acbf64004f266b6d8ce2be09db597ac1aa00 100755 (executable)
@@ -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;