cvs: pear /File_Archive Archive.php package.xml

From: Date: Fri, 15 Jul 2005 17:33:41 +0000
Subject: cvs: pear /File_Archive Archive.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33062@lists.php.net to get a copy of this message
vincentlascaux Fri Jul 15 13:33:41 2005 EDT Modified files: /pear/File_Archive Archive.php package.xml Log: Comment the not complete cab reader Prepare for release http://cvs.php.net/diff.php/pear/File_Archive/Archive.php?r1=1.78&r2=1.79&ty=u Index: pear/File_Archive/Archive.php diff -u pear/File_Archive/Archive.php:1.78 pear/File_Archive/Archive.php:1.79 --- pear/File_Archive/Archive.php:1.78 Mon Jul 11 07:53:50 2005 +++ pear/File_Archive/Archive.php Fri Jul 15 13:33:40 2005 @@ -29,7 +29,7 @@ * @author Vincent Lascaux <vincentlascaux@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.gnu.org/copyleft/lesser.html LGPL - * @version CVS: $Id: Archive.php,v 1.78 2005/07/11 11:53:50 vincentlascaux Exp $ + * @version CVS: $Id: Archive.php,v 1.79 2005/07/15 17:33:40 vincentlascaux Exp $ * @link http://pear.php.net/package/File_Archive */ @@ -640,8 +640,8 @@ * * @param string $extension the checked extension * @return bool whether this file can be understood reading its extension - * Currently, supported extensions are tar, zip, gz, tgz, tbz, bz2 - * and bzip2 + * Currently, supported extensions are tar, zip, gz, tgz, tbz, bz2, + * bzip2, ar, deb */ function isKnownExtension($extension) { @@ -654,7 +654,7 @@ $extension == 'bzip2' || $extension == 'ar' || $extension == 'deb' || - $extension == 'cab' /* || + /* $extension == 'cab' || $extension == 'rar' */; } @@ -712,12 +712,12 @@ require_once 'File/Archive/Reader/Ar.php'; return new File_Archive_Reader_Ar($source, $sourceOpened); - case 'cab': +/* case 'cab': require_once 'File/Archive/Reader/Cab.php'; return new File_Archive_Reader_Cab($source, $sourceOpened); -/* case 'rar': + case 'rar': require_once "File/Archive/Reader/Rar.php"; return new File_Archive_Reader_Rar($source, $sourceOpened); */ http://cvs.php.net/diff.php/pear/File_Archive/package.xml?r1=1.25&r2=1.26&ty=u Index: pear/File_Archive/package.xml diff -u pear/File_Archive/package.xml:1.25 pear/File_Archive/package.xml:1.26 --- pear/File_Archive/package.xml:1.25 Thu Jun 23 07:36:17 2005 +++ pear/File_Archive/package.xml Fri Jul 15 13:33:40 2005 @@ -26,20 +26,27 @@ </maintainers> <release> <version>1.4.2</version> - <date></date> + <date>2005-07-15</date> <state>stable</state> <notes> + Improved zip reader (File_Archive_Zip_Reader implements more options of the PKZip standard) - + Caching method have changed: + + Some change in the Cache_File use: - The fileNameProtection is forced to false when setting the cache option - Add a File_Archive_cleanCache function To remove the cached compressed version of the files that are no longer present on the system, call $cache->clean(false, 'callback_File_Archive_cleanCache'); where $cache is the Cache_Lite object passed to File_Archive. - + Introduce option 'blocSize' that indicates the size of the blocs copied from a reader to a writer when + + Introduce 'blockSize' option that indicates the size of the blocs copied from a reader to a writer when extracting a file. The default has been set to 64kB but is subject to change in future releases + + + File_Archive::cache to cache a reader if you read it several times in the same script + + + 'cacheCondition' option. With this option, you can specify you want to cache all the http + transfer for example. Caching an http transfer ensure that the file won't be downloaded several times + + + File_Archive::readUploadedFile creates a reader on an uploaded file </notes> <filelist> <dir name="File" role="php">

« previous php.pear.cvs (#33062) next »