← Back to team overview

mahara-contributors team mailing list archive

[Bug 1602452] Re: Replace PEAR/Archive/Tar by Phar

 

Yeah, that should work. The "Phar" library ships with standard PHP.
Although it's mainly written for the purpose of handling executable PHP
archives (.phar files, which are like the PHP equivalent of Java's .jar
files), but since the phar format is compressed, it also includes
functions for doing plain compression and decompression.

Specifically, the PharData class lets you work with zip and tar files
without the phar metadata in them.
http://php.net/manual/en/class.phardata.php

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1602452

Title:
  Replace PEAR/Archive/Tar by Phar

Status in Mahara:
  In Progress

Bug description:
  Version: master (16.10)

  We can use PHP Phar to replace PEAR/Archive/Tar library for
  ArtefactTypeArchive.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1602452/+subscriptions


References