-
-
Notifications
You must be signed in to change notification settings - Fork 35
PAX Extract file fix Pull#2 #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ovidiul
wants to merge
16
commits into
splitbrain:master
Choose a base branch
from
ovidiul:pull#2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
67c78c3
Update FileInfo.php
ovidiul 317d5ae
Update FileInfo.php
ovidiul 127a2b7
Update FileInfo.php
ovidiul a6471da
fixing addFile while original file size changes
ovidiul dc82c66
fixing addFile while original file size changes
ovidiul f9ef5b4
fixed broken indentation
ovidiul 1c725f5
php unit test fix
ovidiul 04b7449
php unit test fix
ovidiul e306d3d
reverse original pull
ovidiul 1e8bd79
adding PAX extract support
ovidiul 46afe61
pax extract test addon
ovidiul 38f7093
adding pax extraction tests
ovidiul 226ef21
adding pax extraction tests
ovidiul 6d89f03
adding pax extraction tests
ovidiul 205707c
adding pax extraction test archives
ovidiul 0423d08
code update
ovidiul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,38 @@ public function test_dogfood() | |
unlink($archive); | ||
} | ||
} | ||
|
||
/** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indentation seem wrong again. please make sure you use 4 spaces for indentation. not tabs! |
||
* Extract the prebuilt tar files with PAX headers | ||
*/ | ||
public function test_tarpaxextract() | ||
{ | ||
$dir = dirname(__FILE__).'/tar'; | ||
$out = sys_get_temp_dir().'/dwtartest'.md5(time()); | ||
|
||
foreach ($this->extensions as $ext) { | ||
$tar = new Tar(); | ||
$file = "$dir/pax_test.$ext"; | ||
|
||
$tar->open($file); | ||
$list = $tar->extract($out); | ||
|
||
clearstatcache(); | ||
|
||
$this->assertFileExists($out.'/4слайд-1.jpg', "Extracted $file"); | ||
$this->assertEquals(15251, filesize($out.'/4слайд-1.jpg'), "Extracted $file"); | ||
|
||
$this->assertFileExists($out.'/4слайд-2.jpg', "Extracted $file"); | ||
$this->assertEquals(16671, filesize($out.'/4слайд-2.jpg'), "Extracted $file"); | ||
|
||
$this->assertFileExists($out.'/4слайд.jpg', "Extracted $file"); | ||
$this->assertEquals(214949, filesize($out.'/4слайд.jpg'), "Extracted $file"); | ||
|
||
|
||
self::rdelete($out); | ||
} | ||
} | ||
|
||
/** | ||
* Extract the prebuilt tar files | ||
*/ | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand. You are not using the data read from
x
header. $filename is never used. You basically just read and ignore thex
header.Since your tests work, I assume the original header already contains the proper UTF-8 filename? Would a very long UTF-8 filename have an
x
and anL
header?