#40228 [Fbk-Opn]: extractTo not extracting empty directories

2007-01-25 Thread php-bugs at spuetz dot ath dot cx
 ID:   40228
 User updated by:  php-bugs at spuetz dot ath dot cx
 Reported By:  php-bugs at spuetz dot ath dot cx
-Status:   Feedback
+Status:   Open
 Bug Type: Zip Related
 Operating System: Linux
 PHP Version:  5.2.0
 Assigned To:  pajoye
 New Comment:

http://mas.screenwork-dev.de/test.zip

md5 hash is 5f681fa09b179d4763421ea724b3a207


Previous Comments:


[2007-01-25 00:21:27] [EMAIL PROTECTED]

Can you provide a link to the test.zip archive please?

Thanks,



[2007-01-25 00:19:26] php-bugs at spuetz dot ath dot cx

It still doesn't work with:

$ php -v
PHP 5.2.1RC4-dev (cli) (built: Jan 25 2007 01:13:23) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies



[2007-01-24 23:53:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip





[2007-01-24 23:50:22] php-bugs at spuetz dot ath dot cx

Description:

I have a issue with extractTo(), it's not extracting empty directories.

Reproduce code:
---
$ mkdir -p test/empty
$ zip -r test.zip test
adding: test/ (stored 0%)
adding: test/empty/ (stored 0%)
$ rm -rf test
$ php -r '$zip = new ZipArchive();  $zip-open(test.zip);
$zip-extractTo(./);'


Expected result:

unzip works as expected:

$ unzip test.zip 
Archive:  test.zip
   creating: test/
   creating: test/empty/
find
.
./test
./test/empty
./test.zip


Actual result:
--
$ find
.
./test
./test.zip






-- 
Edit this bug report at http://bugs.php.net/?id=40228edit=1


#40228 [Fbk-Opn]: extractTo not extracting empty directories

2007-01-24 Thread php-bugs at spuetz dot ath dot cx
 ID:   40228
 User updated by:  php-bugs at spuetz dot ath dot cx
 Reported By:  php-bugs at spuetz dot ath dot cx
-Status:   Feedback
+Status:   Open
 Bug Type: Zip Related
 Operating System: Linux
 PHP Version:  5.2.0
 New Comment:

It still doesn't work with:

$ php -v
PHP 5.2.1RC4-dev (cli) (built: Jan 25 2007 01:13:23) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


Previous Comments:


[2007-01-24 23:53:55] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip





[2007-01-24 23:50:22] php-bugs at spuetz dot ath dot cx

Description:

I have a issue with extractTo(), it's not extracting empty directories.

Reproduce code:
---
$ mkdir -p test/empty
$ zip -r test.zip test
adding: test/ (stored 0%)
adding: test/empty/ (stored 0%)
$ rm -rf test
$ php -r '$zip = new ZipArchive();  $zip-open(test.zip);
$zip-extractTo(./);'


Expected result:

unzip works as expected:

$ unzip test.zip 
Archive:  test.zip
   creating: test/
   creating: test/empty/
find
.
./test
./test/empty
./test.zip


Actual result:
--
$ find
.
./test
./test.zip






-- 
Edit this bug report at http://bugs.php.net/?id=40228edit=1