ID: 39537
Updated by: [EMAIL PROTECTED]
Reported By: hscheidegger at zumbach dot ch
-Status: Open
+Status: Bogus
Bug Type: Zip Related
Operating System: Windows XP
PHP Version: 5.2.0
Assigned To: pajoye
New Comment:
Yes, it is case sensitive. It is in my todo to add a extended extract
function. It will use the common flags (like ZIPARCHIVE::FL_NOCASE) or
can based on special filters (like regexp or *.jpeg for example).
About your application hanging, it is a separate issue (if any), please
open a new bug for it. I closed this one (bogus).
Previous Comments:
------------------------------------------------------------------------
[2006-11-18 11:33:15] hscheidegger at zumbach dot ch
I didn't know that the params of $zip->extractTo() are case sensitive,
which is unusual for windows.
Nevertheless I have some cases, where the application hangs and I have
to reboot the machine.
Give me some days to check this out.
------------------------------------------------------------------------
[2006-11-17 18:46:34] [EMAIL PROTECTED]
I cannot reproduce it on windows and unix, using CLI, apache2 , IIS or
CGI.
What's the status after the extractTo call? Can you paste it here? do a
var_dump($zip); after having called it.
------------------------------------------------------------------------
[2006-11-16 21:27:43] hscheidegger at zumbach dot ch
When I do:
$zip->extractTo('/my/destination/dir/');
every file in the archive is extracted.
When I do:
$zip->extractTo('/my/destination/dir/', 'pear_item.gif');
no file is extracted and no error message appear.
When I do:
$zip->extractTo('/my/destination/dir/',
array('pear_item.gif','testfromfile.php'));
no file is extracted and no error message appear.
------------------------------------------------------------------------
[2006-11-16 18:33:41] [EMAIL PROTECTED]
What is the actual result you get?
------------------------------------------------------------------------
[2006-11-16 18:23:02] hscheidegger at zumbach dot ch
use the script from the php documentation found here:
http://ch2.php.net/manual/en/function.ziparchive-extractto.php
<?php
$zip = new ZipArchive;
$res = $zip->open('test_im.zip');
if ($res === TRUE) {
$zip->extractTo('/my/destination/dir/', array('pear_item.gif',
'testfromfile.php'));
$zip->close();
echo 'ok';
} else {
echo 'failed';
}
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39537
--
Edit this bug report at http://bugs.php.net/?id=39537&edit=1