<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/phpzip/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/phpzip/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpzip/bugs/</id><updated>2009-10-20T01:33:20Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>pcltrace.lib.php Notice errors</title><link href="https://sourceforge.net/p/phpzip/bugs/20/" rel="alternate"/><published>2009-10-20T01:33:20Z</published><updated>2009-10-20T01:33:20Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net79d45982e5d8a3068fc628a4c509dab874d470de</id><summary type="html">&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;</summary></entry><entry><title>file path not removed</title><link href="https://sourceforge.net/p/phpzip/bugs/19/" rel="alternate"/><published>2009-09-08T04:33:22Z</published><updated>2009-09-08T04:33:22Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net6b564932088208bba504ef508ac88e841661175a</id><summary type="html">&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;</summary></entry><entry><title>Error when adding files with windows drive letter </title><link href="https://sourceforge.net/p/phpzip/bugs/18/" rel="alternate"/><published>2008-03-03T20:33:01Z</published><updated>2008-03-03T20:33:01Z</updated><author><name>Vincent Blavet</name><uri>https://sourceforge.net/u/vblavet/</uri></author><id>https://sourceforge.net2ce9a036a68eb9121f9a20e2f3a72784b7c80b0d</id><summary type="html">&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;</summary></entry><entry><title>PCLZIP "Umlaut"-Problem</title><link href="https://sourceforge.net/p/phpzip/bugs/17/" rel="alternate"/><published>2007-02-28T11:02:43Z</published><updated>2007-02-28T11:02:43Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3c007a123a7286e25baaceee3397099381b2d6ac</id><summary type="html">&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;</summary></entry><entry><title>Using method as callback function</title><link href="https://sourceforge.net/p/phpzip/bugs/16/" rel="alternate"/><published>2006-02-07T09:36:06Z</published><updated>2006-02-07T09:36:06Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net567af1fefe00a5f790b0ace20962100f5fe405f8</id><summary type="html">&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;</summary></entry><entry><title>mbstring overloaded strlen - -&gt; format error</title><link href="https://sourceforge.net/p/phpzip/bugs/15/" rel="alternate"/><published>2005-12-28T15:54:27Z</published><updated>2005-12-28T15:54:27Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net74f741bb464a5d9b1cc1fd32b203c7155c124b16</id><summary type="html">&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;</summary></entry><entry><title>Memory Error</title><link href="https://sourceforge.net/p/phpzip/bugs/14/" rel="alternate"/><published>2005-02-24T14:25:05Z</published><updated>2005-02-24T14:25:05Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netc2027a307e19a93a60f1add13b2f7934e4a4e722</id><summary type="html">&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;</summary></entry><entry><title>Files with special characters get messed up</title><link href="https://sourceforge.net/p/phpzip/bugs/13/" rel="alternate"/><published>2004-12-31T05:34:39Z</published><updated>2004-12-31T05:34:39Z</updated><author><name>Roy W. Andersen</name><uri>https://sourceforge.net/u/ensnared/</uri></author><id>https://sourceforge.netfd599f4b447a370df72173a5f40afe92e02c98a1</id><summary type="html">&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;</summary></entry><entry><title>2.3 PHP notice</title><link href="https://sourceforge.net/p/phpzip/bugs/12/" rel="alternate"/><published>2004-11-29T23:47:28Z</published><updated>2004-11-29T23:47:28Z</updated><author><name>Eloy Lafuente</name><uri>https://sourceforge.net/u/stronk7/</uri></author><id>https://sourceforge.net00d11640e69898848d21ae905ce6bb590389272e</id><summary type="html">&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;</summary></entry><entry><title>gzdeflate</title><link href="https://sourceforge.net/p/phpzip/bugs/11/" rel="alternate"/><published>2004-02-22T18:47:37Z</published><updated>2004-02-22T18:47:37Z</updated><author><name>flobee</name><uri>https://sourceforge.net/u/flobee/</uri></author><id>https://sourceforge.net6f8c9811cc3c76e88134473a9875bbbfb76dbbea</id><summary type="html">&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;</summary></entry></feed>