Added partialy PHAR support