diff options
Diffstat (limited to 'ext/phar/phar/phar.php')
-rwxr-xr-x | ext/phar/phar/phar.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/ext/phar/phar/phar.php b/ext/phar/phar/phar.php index 13538777a5..53aa76f60a 100755 --- a/ext/phar/phar/phar.php +++ b/ext/phar/phar/phar.php @@ -12,37 +12,37 @@ if (!extension_loaded('phar')) { - if (!class_exists('PHP_Archive', 0)) { - echo "Neither Extension Phar nor class PHP_Archive are available.\n"; - exit(1); - } - if (!in_array('phar', stream_get_wrappers())) { - stream_wrapper_register('phar', 'PHP_Archive'); - } - if (!class_exists('Phar',0)) { - require 'phar://'.__FILE__.'/phar.inc'; - } + if (!class_exists('PHP_Archive', 0)) { + echo "Neither Extension Phar nor class PHP_Archive are available.\n"; + exit(1); + } + if (!in_array('phar', stream_get_wrappers())) { + stream_wrapper_register('phar', 'PHP_Archive'); + } + if (!class_exists('Phar',0)) { + require 'phar://'.__FILE__.'/phar.inc'; + } } foreach(array("SPL", "Reflection") as $ext) { - if (!extension_loaded($ext)) { - echo "$argv[0] requires PHP extension $ext.\n"; - exit(1); - } + if (!extension_loaded($ext)) { + echo "$argv[0] requires PHP extension $ext.\n"; + exit(1); + } } function command_include($file) { - $file = 'phar://' . __FILE__ . '/' . $file; - if (file_exists($file)) { - include($file); - } + $file = 'phar://' . __FILE__ . '/' . $file; + if (file_exists($file)) { + include($file); + } } function command_autoload($classname) { - command_include(strtolower($classname) . '.inc'); + command_include(strtolower($classname) . '.inc'); } Phar::mapPhar(); |