<channel>pecl.php.net</channel>
<summary>allows running of complete applications out of .phar files (like Java .jar files)</summary>
<description>
-This is the extension version of PEAR's PHP_Archive package. Support for zlib and crc32 is achieved without any dependency other than the external libz. The zlib extension need not be enabled to take advantage of compressed .phar files.
+This is the extension version of PEAR's PHP_Archive package. Support for
+zlib, bz2 and crc32 is achieved without any dependency other than the external
+zlib or bz2 extension.
-.phar files should be created using pear.php.net/PHP_Archive
+.phar files can be read using the phar stream, or with the Phar class. If the SPL extension
+is available, a Phar object can be used as an array to iterate over a phar's contents
+or to read files directly from the phar.
+
+Phar archives can be created using the streams API or with the Phar class, if
+the phar.readonly ini variable is set to false.
+
+Full support for MD5 and SHA1 signatures is possible if the hash extension is present, and
+signatures can be required if the ini variable phar.require_hash is set to true.
</description>
<lead>
<name>Greg Beaver</name>
<date>2007-01-27</date>
<version>
<release>0.9.0</release>
- <api>0.9.0</api>
+ <api>1.0.0</api>
</version>
<stability>
<release>beta</release>
Initial release. This release is fully regression-tested
This extension is only compatible with phar archives compliant with PHP_Archive
- 0.9.0 (api Version 0.9.0)
+ 0.9.0 (api Version 1.0.0)
</notes>
<contents>
<dir name="/">
<min>1.4.3</min>
</pearinstaller>
</required>
+ <optional>
+ <package>
+ <name>hash</name>
+ <channel>pecl.php.net</channel>
+ <providesextension>hash</providesextension>
+ </package>
+ <package>
+ <name>bz2</name>
+ <channel>pecl.php.net</channel>
+ <providesextension>bz2</providesextension>
+ </package>
+ <extension>
+ <name>zlib</name>
+ </extension>
+ <extension>
+ <name>spl</name>
+ </extension>
+ </optional>
</dependencies>
<providesextension>phar</providesextension>
<extsrcrelease/>
#define E_RECOVERABLE_ERROR E_ERROR
#endif
-#define PHAR_VERSION_STR "0.9.0"
+#define PHAR_VERSION_STR "1.0.0"
/* x.y.z maps to 0xyz0 */
-#define PHAR_API_VERSION 0x0900
+#define PHAR_API_VERSION 0x1000
#define PHAR_API_MIN_READ 0x0900
-#define PHAR_API_MAJORVERSION 0x0000
+#define PHAR_API_MAJORVERSION 0x1000
#define PHAR_API_MAJORVER_MASK 0xF000
#define PHAR_API_VER_MASK 0xFFF0