]> granicus.if.org Git - php/commitdiff
fix build on PHP 5.2, prepare release of 2.0.0a2
authorGreg Beaver <cellog@php.net>
Thu, 27 Mar 2008 06:38:53 +0000 (06:38 +0000)
committerGreg Beaver <cellog@php.net>
Thu, 27 Mar 2008 06:38:53 +0000 (06:38 +0000)
ext/phar/package.php
ext/phar/package.xml
ext/phar/phar.c
ext/phar/php_phar.h

index c054c4c7497fe2fe156a55eb78c67070b4bcc639..4a43eecddfb936e20da7bad2f6e0701c4be2f08c 100644 (file)
@@ -23,6 +23,8 @@ Major feature functionality release
  * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg]
  * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg]
  * add Phar::delete() [Greg]
+
+Changes since 2.0.0a1: fix build in PHP 5.2
 ';
 
 if (!class_exists("Phar") && !extension_loaded("Phar")) {
index c0bfe67e883a60cea5c4c208b57f87df322d3c7e..116da934de2a4e54763e8e5a9fb2464d94298b08 100644 (file)
@@ -29,10 +29,10 @@ avaiable then SHA-256 and SHA-512 signatures are supported as well.</description
   <email>helly@php.net</email>
   <active>yes</active>
  </lead>
- <date>2008-03-26</date>
- <time>00:20:32</time>
+ <date>2008-03-27</date>
+ <time>01:38:33</time>
  <version>
-  <release>2.0.0a1</release>
+  <release>2.0.0a2</release>
   <api>1.1.1</api>
  </version>
  <stability>
@@ -65,6 +65,8 @@ Major feature functionality release
  * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg]
  * add Phar::delete() [Greg]
 
+Changes since 2.0.0a1: fix build in PHP 5.2
+
  </notes>
  <contents>
   <dir baseinstalldir="/" name="/">
@@ -527,14 +529,14 @@ Major feature functionality release
  <changelog>
   <release>
    <version>
-    <release>2.0.0a1</release>
+    <release>2.0.0a2</release>
     <api>1.1.1</api>
    </version>
    <stability>
     <release>alpha</release>
     <api>alpha</api>
    </stability>
-   <date>2008-03-26</date>
+   <date>2008-03-27</date>
    <license uri="http://www.php.net/license">PHP License</license>
    <notes>
 
@@ -561,8 +563,44 @@ Major feature functionality release
  * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg]
  * add Phar::delete() [Greg]
 
+Changes since 2.0.0a1: fix build in PHP 5.2
+
    </notes>
   </release>
+  <release>
+   <version>
+    <release>2.0.0a1</release>
+    <api>1.1.1</api>
+   </version>
+   <stability>
+    <release>alpha</release>
+    <api>alpha</api>
+   </stability>
+   <date>2008-03-26</date>
+   <license uri="http://www.php.net/license">PHP License</license>
+   <notes>Major feature functionality release
+ * new default stub allows running of phar-based phars without phar extension [Greg/Steph]
+ * add support for tar-based and zip-based phar archives [Greg]
+ * add Phar::isTar(), Phar::isZip(), and Phar::isPhar() [Greg]
+ * add Phar::convertToTar(), Phar::convertToZip(), and Phar::convertToPhar() [Greg]
+ * add Phar::compress() [Greg]
+ * conversion to compressed or to other file formats automatically copies the archive
+   to a new extension (i.e. &quot;.phar&quot; to &quot;.phar.tar&quot; or &quot;.tar&quot; to &quot;.tar.gz&quot;) [Steph]
+ * add Phar::webPhar() for running a web-based application unmodified
+   directly from a phar archive [Greg]
+ * file functions (fopen-based and stat-based) can be instructed to only look for
+   relative paths within a phar via Phar::interceptFileFuncs()
+ * add PharData class to allow manipulation/creation of non-executable tar and zip archives. [Steph]
+   non-executable tar/zip manipulation is allowed even when phar.readonly=1 [Greg]
+ * paths with . and .. work (phar://blah.phar/a/../b.php =&gt; phar://blah.phar/b.php) [Greg]
+ * add support for mkdir()/rmdir() and support for empty directories to phar file format [Greg]
+ * add option to compress the entire phar file for phar/tar file format [Greg]
+ * implement Phar::isCompressed() returning 0, Phar::GZ or Phar::BZ2 [Greg]
+ * implement Phar::copy(string $from, string $to) [Greg]
+ * implement Phar::buildFromIterator(Iterator $it[, string $base_directory]) [Greg]
+ * implement Phar::mount() for mounting external paths or files to locations inside a phar [Greg]
+ * add Phar::delete() [Greg]</notes>
+  </release>
   <release>
    <version>
     <release>1.2.1</release>
index a2fa0594db2f4f5529153496d98004930aab233b..1d75019b7ec600b3d76c0fb0141666c8203c8827 100644 (file)
@@ -2703,10 +2703,10 @@ int phar_zend_open(const char *filename, zend_file_handle *handle TSRMLS_DC) /*
                                phar_archive_data *pphar = NULL;
                                /* retrieving an include within the current directory, so use this if possible */
                                if (SUCCESS == (zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), arch, arch_len, (void **) &pphar))) {
-                                       if (!(entry = phar_find_in_include_path(entry, entry_len, &phar TSRMLS_CC))) {
+                                       if (!(entry = phar_find_in_include_path(entry, entry_len, &pphar TSRMLS_CC))) {
                                                /* this file is not in the phar, use the original path */
                                                if (SUCCESS == phar_orig_zend_open(filename, handle TSRMLS_CC)) {
-                                                       if (SUCCESS == phar_mount_entry(phar, handle->opened_path ? handle->opened_path : (char *) filename, strlen(handle->opened_path ? handle->opened_path : filename), (char *) filename, strlen(filename) TSRMLS_CC)) {
+                                                       if (SUCCESS == phar_mount_entry(pphar, handle->opened_path ? handle->opened_path : (char *) filename, strlen(handle->opened_path ? handle->opened_path : filename), (char *) filename, strlen(filename) TSRMLS_CC)) {
                                                                if (handle->opened_path) {
                                                                        efree(handle->opened_path);
                                                                }
index 8c88f085cd2034246256ac90acac417cba74fe2c..1f53fa66419f64c317cf736aa5cad40a2e764235 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef PHP_PHAR_H
 #define PHP_PHAR_H
 
-#define PHP_PHAR_VERSION      "2.0.0a1"
+#define PHP_PHAR_VERSION      "2.0.0a2"
 
 #include "ext/standard/basic_functions.h"
 extern zend_module_entry phar_module_entry;