cvs: pecl /phar package.php package.xml phar.c php_phar.h
| From: | Greg Beaver | Date: | Thu, 27 Mar 2008 06:38:51 +0000 |
| Subject: | cvs: pecl /phar package.php package.xml phar.c php_phar.h | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-10087@lists.php.net to get a copy of this message | ||
cellog Thu Mar 27 06:38:51 2008 UTC
Modified files:
/pecl/phar package.php package.xml phar.c php_phar.h
Log:
fix build on PHP 5.2, prepare release of 2.0.0a2
http://cvs.php.net/viewvc.cgi/pecl/phar/package.php?r1=1.36&r2=1.37&diff_format=u
Index: pecl/phar/package.php
diff -u pecl/phar/package.php:1.36 pecl/phar/package.php:1.37
--- pecl/phar/package.php:1.36 Wed Mar 26 03:55:36 2008
+++ pecl/phar/package.php Thu Mar 27 06:38:51 2008
@@ -23,6 +23,8 @@
* 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")) {
http://cvs.php.net/viewvc.cgi/pecl/phar/package.xml?r1=1.52&r2=1.53&diff_format=u
Index: pecl/phar/package.xml
diff -u pecl/phar/package.xml:1.52 pecl/phar/package.xml:1.53
--- pecl/phar/package.xml:1.52 Wed Mar 26 05:20:41 2008
+++ pecl/phar/package.xml Thu Mar 27 06:38:51 2008
@@ -29,10 +29,10 @@
<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 @@
* 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 @@
<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,10 +563,46 @@
* 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. ".phar" to ".phar.tar" or
".tar" to ".tar.gz") [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 => 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>
<api>1.1.0</api>
</version>
http://cvs.php.net/viewvc.cgi/pecl/phar/phar.c?r1=1.325&r2=1.326&diff_format=u
Index: pecl/phar/phar.c
diff -u pecl/phar/phar.c:1.325 pecl/phar/phar.c:1.326
--- pecl/phar/phar.c:1.325 Mon Mar 24 12:53:27 2008
+++ pecl/phar/phar.c Thu Mar 27 06:38:51 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: phar.c,v 1.325 2008/03/24 12:53:27 helly Exp $ */
+/* $Id: phar.c,v 1.326 2008/03/27 06:38:51 cellog Exp $ */
#define PHAR_MAIN 1
#include "phar_internal.h"
@@ -2703,10 +2703,10 @@
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);
}
@@ -2835,7 +2835,7 @@
php_info_print_table_header(2, "Phar: PHP Archive support", "enabled");
php_info_print_table_row(2, "Phar EXT version", PHP_PHAR_VERSION);
php_info_print_table_row(2, "Phar API version", PHP_PHAR_API_VERSION);
- php_info_print_table_row(2, "CVS revision", "$Revision: 1.325 $");
+ php_info_print_table_row(2, "CVS revision", "$Revision: 1.326 $");
php_info_print_table_row(2, "Phar-based phar archives", "enabled");
php_info_print_table_row(2, "Tar-based phar archives", "enabled");
php_info_print_table_row(2, "ZIP-based phar archives", "enabled");
http://cvs.php.net/viewvc.cgi/pecl/phar/php_phar.h?r1=1.12&r2=1.13&diff_format=u
Index: pecl/phar/php_phar.h
diff -u pecl/phar/php_phar.h:1.12 pecl/phar/php_phar.h:1.13
--- pecl/phar/php_phar.h:1.12 Wed Mar 26 03:55:36 2008
+++ pecl/phar/php_phar.h Thu Mar 27 06:38:51 2008
@@ -17,12 +17,12 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_phar.h,v 1.12 2008/03/26 03:55:36 cellog Exp $ */
+/* $Id: php_phar.h,v 1.13 2008/03/27 06:38:51 cellog Exp $ */
#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;