Home » PHP » PHP_Archive
Create and Use PHP Archive files
This package is unmaintained.
Download latest release 0.14.0 (there might be newer Composer installable version)
License: PHP License
Description
PHP_Archive allows you to create a single .phar file containing an entire application.
Documentation
Maintainers
- Greg Beaver (cellog) — lead, inactive
- Marcus Boerger (helly) — lead, inactive
- Davey Shafik (davey) — lead, inactive
Dependencies
Required
- PHP (>= 5.3.0)
- PEAR Installer (>= 1.9.0)
- PEAR (>= 1.9.5)
Releases
- 0.14.0 (alpha, 2021-03-21)
Release notes
License: PHP License
* PR #4: Compatibility fix for PHP 8.0.0
- 0.13.0 (alpha, 2019-11-19)
Release notes
License: PHP License
* PR #3: Fix compatibility with PHP 7.4
- 0.12.0 (alpha, 2015-07-06)
Release notes
License: PHP License
sync with ext/phar
* add empty directory supportFix bugs
* Get rid of ereg_replace
* Fix phar compression detection
* Make tests run on PHP 5.2 - 7 - 0.11.4 (alpha, 2008-05-19)
Release notes
License: PHP License
minor bugfix release
* E_STRICT/E_DEPRECATED errors displayed - 0.11.3 (alpha, 2007-09-01)
Release notes
License: PHP License
minor bugfix release
* introspection cannot use exit within stream wrapper, PHP destabilizes, this is fixed - 0.11.2 (alpha, 2007-08-18)
Release notes
License: PHP License
major bugfix release
* fix 64-bit/32-bit compatibility of phars (Brian Shire)
* fix Bug #11858: seek to SEEK_END fails
* fix Bug #11859: mapPhar fails for all phars internally loaded
* fix Bug #11860: missing constant in PHP_Archive_Exception UNKNOWNSIG - 0.11.1 (alpha, 2007-05-29)
Release notes
License: PHP License
Remove potential notice in directory rewind()
- 0.11.0 (alpha, 2007-05-29)
Release notes
License: PHP License
Add support for introspection (web) and front controller (web)
Synchronize PHP_Archive class mapPhar() and loadPhar() with API of phar extension
fix url_stat() for non-existing directories/files
fix - 0.10.0 (alpha, 2007-02-05)
Release notes
License: PHP License
Update to match phar extension
Final API for 1.0.0 is set
Add support for:
* Phar metadata - any serialized value
* file-specific metadata - any serialized value
* bzip2 compression of files
* SHA1/MD5 signature creation (Phar extension can use this,
PHP_Archive does not on open for performance reasons)
* file permissions (always set to 0555) - 0.9.2 (alpha, 2007-01-06)
Release notes
License: PHP License
another major 32-bit/64-bit issue in PHP 5.1 where crc32() returns different values
was causing some phars to fail.This is *not* fixed in PHP 5.2, and won't be. This only affects CRCs. The workaround
found is to sprintf("%u", crc32($data)) - 0.9.1 (alpha, 2007-01-05)
Release notes
License: PHP License
fix API version so that Phar extension can also open PHP_Archive-generated archives
major 32-bit/64-bit issue in PHP 5.1 where unpack() returns different values
was causing some phars to fail. For instance:$a = pack("V", 3068571189);
var_dump(unpack("Va", $a));reports
int(3068571189) on 32 bit and
int(-1226396107) on 64 bitin PHP 5.1. This is fixed in PHP 5.2. This only affects CRCs. The workaround
found is to sprintf("%u", $crc) - 0.9.0 (alpha, 2006-12-15)
Release notes
License: PHP License
This release is fully compatible with the phar extension
Minor feature addition:
* implement Request #7362: Add archive collapsing to greatly reduce phar base size - 0.8.0 (alpha, 2006-07-18)
Release notes
License: PHP License
This release is fully compatible with the phar extension
Major BC breaks:
* the entire structure of an internal phar's manifest has changed
* mapPhar now only takes 2 parametersSmall BC breaks:
* PHP_Archive::processFile() was public static and is now private staticFeature additions:
* creating .phars that are reliant on the .phar extension is now possible
* new PHP_Archive_Manager is available for debugging pharsBug fixes:
* fix bug #7110: mapPhar security error - 0.7.0 (alpha, 2005-11-30)
Release notes
License: PHP License
major refactoring - .tar file format is no longer used
DRAMATIC improvement in efficiency of disk use, memory usage,
and processing speed. - 0.6.1 (alpha, 2005-09-05)
Release notes
License: PHP License
Bugfix release
* fix faulty dependency on unreleased Archive_Tar
* fix version_compare()'s bungling of versioning ending with -dev - 0.6.0 (alpha, 2005-08-30)
Release notes
License: PHP License
Bugfix release
* change error_reporting to E_ALL. Was stupidly using
E_ERROR | E_WARNING | E_PARSE | E_NOTICE
* change __HALT_PHP_PARSER__ to __HALT_COMPILER()
* rework fread() usage to avoid all potential bugs with chunks
larger than 8192
* drop support for PHP 4.3.x and 5.0.x. Streams are impossible to
fully support due to bugs in all PHP versions < 5.1.0. - 0.5.0 (alpha, 2005-05-03)
Release notes
License: PHP License
* Full support for multiple .phars! phar://pharname.phar/file
and phar://phar2.phar/anotherfile will work now
* Fix gz compression
* remove Archive_Tar dep for non-creation
* remove preg dep for non-creation
* bundle PHP_Archive in all created .phars - standalone! Only
compressed .phars have a dep on zlib
* Add support for filenames > 100 characters in length and unit test
* Add full support for stat()/is_file()/is_dir()/is_readable() etc., opendir()/readdir()
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #7110 | Closed | Bug | CVS | 2006-03-13 | Installing .phar fails |
| #7162 | Duplicate | Bug | 2006-03-20 | Security error during a PHP install | |
| #7362 | Closed | Req | CVS | 2006-04-10 | Add archive collapsing to greatly reduce phar base size |
| #8084 | Bogus | Bug | 0.7.0 | 2006-06-30 | error: failed to open stream |
| #11858 | Closed | Bug | 0.11.1 | 2007-08-18 | seek to SEEK_END fails |
| #11859 | Closed | Bug | CVS | 2007-08-18 | mapPhar fails for all phars internally loaded |
| #11860 | Closed | Bug | 0.11.1 | 2007-08-18 | missing constant in PHP_Archive_Exception UNKNOWNSIG |
| #12320 | Open | Bug | 0.11.3 | 2007-10-24 | Notice raised on NULL meta-data |
| #13699 | Bogus | Bug | 0.11.3 | 2008-04-16 | BZIP2 compressed files cause PHP-Thread to hang |
| #15202 | Open | Req | CVS | 2008-12-01 | Improve PHPCS results |
| #16192 | Open | Req | 0.11.4 | 2009-05-06 | Bad URL rewrite in PHP_Archive::webFrontController |
| #16904 | Open | Bug | 0.11.4 | 2009-12-15 | Phar generated phars don't load with PHP_Archive |
| #20384 | Open | Bug | Unknown | 2014-09-02 | Configure: error: GD build test failed. please check the config.log for details |
| #20981 | Open | Doc | 2015-11-10 | User note that is a documentation problem |