]> granicus.if.org Git - php/commitdiff
up API version to 1.0.0 - the file format is solid, prepare for release sometime...
authorGreg Beaver <cellog@php.net>
Sun, 28 Jan 2007 03:59:30 +0000 (03:59 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 28 Jan 2007 03:59:30 +0000 (03:59 +0000)
ext/phar/package.xml
ext/phar/phar_internal.h
ext/phar/tests/001.phpt

index e6103cfacef53260b70068eb0041b9fe431ffd86..b97b6f4f1dd03d93fe72c9458f91368506fb851c 100644 (file)
@@ -7,9 +7,19 @@ http://pear.php.net/dtd/package-2.0.xsd">
  <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>
@@ -26,7 +36,7 @@ This is the extension version of PEAR's PHP_Archive package. Support for zlib an
  <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>
@@ -37,7 +47,7 @@ This is the extension version of PEAR's PHP_Archive package. Support for zlib an
   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="/">
@@ -139,6 +149,24 @@ This is the extension version of PEAR's PHP_Archive package. Support for zlib an
     <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/>
index 2ad55ace6152f8811d5579d6a03991a792f9aafe..2b098bcc5195f84761f1d537292a532eaefa53d7 100755 (executable)
 #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
 
index a6ea381458a3498061341e9c19b7a45fe0f6022a..61e9de455ee860b74a5ea83c1d922fb1bff5d024 100644 (file)
@@ -8,5 +8,5 @@ var_dump(Phar::apiVersion());
 ?>
 ===DONE===
 --EXPECT--
-string(5) "0.9.0"
+string(5) "1.0.0"
 ===DONE===