Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Linux, Apache, PHP 5.2, eZ Publish 4.4 alpha6
Description
Using extractCurrent() to extract a single file, and then extract() to dump the whole archive, the file I extracted first is now empty (0 byte length).
I have test code to reproduce this, and a patch that fixes it for me. If the patch is correct, the issue is that zero is incorrectly assumed equal to false.
I see the issue only with one particular eZ Publish package file (ezpkg/tar.gz) so it could be a problem with that file as well. GNU tar/gz extracts it without problems or warnings, though. I cannot post this file publicly. I can give it to current or former eZ employees, please contact me.