<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/phpzip/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/phpzip/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 20 Oct 2009 01:33:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpzip/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>pcltrace.lib.php Notice errors</title><link>https://sourceforge.net/p/phpzip/bugs/20/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;PHP Notice:  Use of undefined constant line - assumed 'line'&lt;br /&gt;
PHP Notice:  Use of undefined constant file - assumed 'file'&lt;/p&gt;
&lt;p&gt;End of the file:&lt;br /&gt;
$p_entry[file] should be $p_entry['file']&lt;br /&gt;
$p_entry[line] should be $p_entry['line']&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 20 Oct 2009 01:33:20 -0000</pubDate><guid>https://sourceforge.net79d45982e5d8a3068fc628a4c509dab874d470de</guid></item><item><title>file path not removed</title><link>https://sourceforge.net/p/phpzip/bugs/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;$temp_dir = "/var/www/vhosts/websitename.co.nz/scheduled/temp/stemp/";&lt;br /&gt;
$file_path = "/home/ftparchive/photos.zip";&lt;br /&gt;
$archive = new PclZip($file_path);&lt;br /&gt;
if ($archive-&amp;gt;create($temp_dir,PCLZIP_OPT_REMOVE_ALL_PATH) == 0)&lt;br /&gt;
    {&lt;br /&gt;
... but in the zip file each file still shows a path value of: "stemp/"&lt;/p&gt;
&lt;p&gt;Steve&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 08 Sep 2009 04:33:22 -0000</pubDate><guid>https://sourceforge.net6b564932088208bba504ef508ac88e841661175a</guid></item><item><title>Error when adding files with windows drive letter </title><link>https://sourceforge.net/p/phpzip/bugs/18/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When adding files with windows drive letter, it might work, when the drive letter (generally C:) is the "default folder". But when adding files from a second drive (let say "D:"), then the create() or add() fail.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vincent Blavet</dc:creator><pubDate>Mon, 03 Mar 2008 20:33:01 -0000</pubDate><guid>https://sourceforge.net2ce9a036a68eb9121f9a20e2f3a72784b7c80b0d</guid></item><item><title>PCLZIP "Umlaut"-Problem</title><link>https://sourceforge.net/p/phpzip/bugs/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When extracting a file to a folder, german special Characters (ä,Ä,ü,Ü,ö,Ö,ß)are converted into other signs such as: Â for ü.&lt;br /&gt;
This characters can neither be read by the browser or the  server.&lt;/p&gt;
&lt;p&gt;Here is the code I used to extract the files:&lt;br /&gt;
&amp;lt;? &lt;br /&gt;
$archive = new PclZip($_FILES["zipdatei"]["tmp_name"]);&lt;br /&gt;
$list = $archive-&amp;gt;extract(PCLZIP_OPT_PATH, $galerieordner, PCLZIP_OPT_REMOVE_ALL_PATH);&lt;br /&gt;
?&amp;gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 28 Feb 2007 11:02:43 -0000</pubDate><guid>https://sourceforge.net3c007a123a7286e25baaceee3397099381b2d6ac</guid></item><item><title>Using method as callback function</title><link>https://sourceforge.net/p/phpzip/bugs/16/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I created a new zip class ("MYZIP") for some custom zip&lt;br /&gt;
functions. This new class extends the PclZip class.&lt;br /&gt;
In the new class I stored a custom PCLZIP_CB_PRE_ADD&lt;br /&gt;
function which I now wanted to call when creating a zip&lt;br /&gt;
archive.&lt;/p&gt;
&lt;p&gt;Problem: The statement&lt;br /&gt;
"function_exists($v_function_name)" did't find my function.&lt;/p&gt;
&lt;p&gt;Solution (starting at line 1685):&lt;br /&gt;
// ----- Check that the value is a valid existing function&lt;br /&gt;
if(substr($v_function_name,0,7) == "\$this-&amp;gt;")&lt;br /&gt;
$bolchk = method_exists($this,&lt;br /&gt;
str_replace("\$this-&amp;gt;","",$v_function_name));&lt;br /&gt;
else&lt;br /&gt;
$bolchk = function_exists($v_function_name);&lt;br /&gt;
if(!$bolchk) {&lt;br /&gt;
// ----- Error log&lt;/p&gt;
&lt;p&gt;Please note that you have to remove "$this" in the&lt;br /&gt;
"method_exists" function, but you need it in the "eval"&lt;br /&gt;
function, which follows later.&lt;/p&gt;
&lt;p&gt;Now you can use this statement:&lt;br /&gt;
$list = $archive-&amp;gt;add($filenames,PCLZIP_CB_PRE_ADD,&lt;br /&gt;
'$this-&amp;gt;myPreAddCallBack');&lt;/p&gt;
&lt;p&gt;/Sebastian&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 07 Feb 2006 09:36:06 -0000</pubDate><guid>https://sourceforge.net567af1fefe00a5f790b0ace20962100f5fe405f8</guid></item><item><title>mbstring overloaded strlen - -&gt; format error</title><link>https://sourceforge.net/p/phpzip/bugs/15/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;nashev@mail.ru&lt;/p&gt;
&lt;p&gt;When site using mbstring overloading of functions, &lt;br /&gt;
function strlen return charecter count in given string &lt;br /&gt;
but not byte count!&lt;/p&gt;
&lt;p&gt;And as result, pclzip library reports that bad format &lt;br /&gt;
archive after comparing, for example, readed block and &lt;br /&gt;
hiz length.&lt;/p&gt;
&lt;p&gt;To resolve this problem you can use, for example, &lt;br /&gt;
functions like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;?php &lt;/p&gt;
&lt;p&gt;function ByteCount($s) {&lt;br /&gt;
$has_mbstring = extension_loaded('mbstring') &lt;br /&gt;
||@dl(PHP_SHLIB_PREFIX.'mbstring.'.PHP_SHLIB_SUFFIX);&lt;br /&gt;
$has_mb_shadow = (int) ini_get('mbstring.&lt;br /&gt;
func_overload');&lt;/p&gt;
&lt;p&gt;if ($has_mbstring &amp;amp;&amp;amp; ($has_mb_shadow &amp;amp; 2) ) {&lt;br /&gt;
$size = mb_strlen($s,'latin1');&lt;br /&gt;
} else {&lt;br /&gt;
$size = strlen($s);&lt;br /&gt;
}&lt;br /&gt;
return $size;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;function ByteSubstr($s, $start, $length) {&lt;br /&gt;
$has_mbstring = extension_loaded('mbstring') &lt;br /&gt;
||@dl(PHP_SHLIB_PREFIX.'mbstring.'.PHP_SHLIB_SUFFIX);&lt;br /&gt;
$has_mb_shadow = (int) ini_get('mbstring.&lt;br /&gt;
func_overload');&lt;/p&gt;
&lt;p&gt;if ($has_mbstring &amp;amp;&amp;amp; ($has_mb_shadow &amp;amp; 2) ) {&lt;br /&gt;
$s2 = mb_substr($s, $start, $length, 'latin1');&lt;br /&gt;
} else {&lt;br /&gt;
$s2 = substr($s, $start, $length);&lt;br /&gt;
}&lt;br /&gt;
return $s2;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;php?&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 28 Dec 2005 15:54:27 -0000</pubDate><guid>https://sourceforge.net74f741bb464a5d9b1cc1fd32b203c7155c124b16</guid></item><item><title>Memory Error</title><link>https://sourceforge.net/p/phpzip/bugs/14/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have tried to compress a folder with many files and&lt;br /&gt;
subfolders.&lt;/p&gt;
&lt;p&gt;Error Message:&lt;br /&gt;
Fatal error: Allowed memory size of 16777216 bytes&lt;br /&gt;
exhausted (tried to allocate 3901870 bytes) in&lt;br /&gt;
/data/pclzip.lib.php on line 2427&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 24 Feb 2005 14:25:05 -0000</pubDate><guid>https://sourceforge.netc2027a307e19a93a60f1add13b2f7934e4a4e722</guid></item><item><title>Files with special characters get messed up</title><link>https://sourceforge.net/p/phpzip/bugs/13/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When adding a file with special characters (the ones I&lt;br /&gt;
have problems with are ć, ř and ĺ (uppercase Ć, Ř and&lt;br /&gt;
Ĺ)) the characters gets changed into some other strange&lt;br /&gt;
characters.&lt;/p&gt;
&lt;p&gt;The zip-file itself can be named with these characters&lt;br /&gt;
without any problems, but any files with those&lt;br /&gt;
characters in their filenames added to the zipfile are&lt;br /&gt;
affected.&lt;/p&gt;
&lt;p&gt;When opening such a zipfile using WinZip it reports the&lt;br /&gt;
original filename correctly (when looking at the&lt;br /&gt;
zipfile properties), but the filename used is the&lt;br /&gt;
warped one.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roy W. Andersen</dc:creator><pubDate>Fri, 31 Dec 2004 05:34:39 -0000</pubDate><guid>https://sourceforge.netfd599f4b447a370df72173a5f40afe92e02c98a1</guid></item><item><title>2.3 PHP notice</title><link>https://sourceforge.net/p/phpzip/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Not really sure if it's important but, since 2.3 (I've tested 2.4RC1 &lt;br /&gt;
too) this php's notice is showed a lot of times:&lt;/p&gt;
&lt;p&gt;Notice: Undefined index: filename_len in .../lib/pclzip/pclzip.lib.php &lt;br /&gt;
on line 3953&lt;/p&gt;
&lt;p&gt;Ciao, Eloy :-)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eloy Lafuente</dc:creator><pubDate>Mon, 29 Nov 2004 23:47:28 -0000</pubDate><guid>https://sourceforge.net00d11640e69898848d21ae905ce6bb590389272e</guid></item><item><title>gzdeflate</title><link>https://sourceforge.net/p/phpzip/bugs/11/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;hello&lt;br /&gt;
this is a little report on what i asked already in my last &lt;br /&gt;
tread, her are some more note because i still can not zip &lt;br /&gt;
data over 2,5 MB, i can zip 10 files each 2 MB but if one &lt;br /&gt;
of it is over ~2,5 MB exit is returned with no error!&lt;/p&gt;
&lt;p&gt;notes, sugesstion:&lt;br /&gt;
new setting:&lt;br /&gt;
define('PCLZIP_COMPRESS_LEVEL', 0); // 0 - 9, 0=none &lt;br /&gt;
9=MAX&lt;/p&gt;
&lt;p&gt;new call&lt;br /&gt;
~LINE 2371: $v_content_compressed = gzdeflate&lt;br /&gt;
($v_content, PCLZIP_COMPRESS_LEVEL);&lt;/p&gt;
&lt;p&gt;message found on php.net:&lt;br /&gt;
if you have compressed data which is greater than 2 MB &lt;br /&gt;
(system dependent), you will receive a buffer error by &lt;br /&gt;
calling the function gzinflate().&lt;br /&gt;
be sure to to compress your data by a lower &lt;br /&gt;
compression level, like 1.&lt;br /&gt;
i.e.: gzdeflate($sData, 1); &lt;/p&gt;
&lt;p&gt;this is still not the the resulution but i think it is the right &lt;br /&gt;
direction to find a solution!&lt;br /&gt;
if someone can help i would b happy!&lt;/p&gt;
&lt;p&gt;flobee&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">flobee</dc:creator><pubDate>Sun, 22 Feb 2004 18:47:37 -0000</pubDate><guid>https://sourceforge.net6f8c9811cc3c76e88134473a9875bbbfb76dbbea</guid></item></channel></rss>