Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

decompress() Zend/Filter/Compress/Zip fix #6026

Closed
wants to merge 5 commits into from

Conversation

thoys
Copy link
Contributor

@thoys thoys commented Mar 22, 2014

decompress didn't work when a valid parameter was given. It relied on archive that was stored in class.
This fixes it.

decompress didn't work when a valid parameter was given. It relied on archive that was stored in class.
This fixes it.
@thoys
Copy link
Contributor Author

thoys commented Mar 22, 2014

Hmm why does the build fail?, I didn't make a drastic change.


if (empty($archive) || !file_exists($archive)) {
throw new Exception\RuntimeException('ZIP Archive not found');
}

$archive = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, realpath($content));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing spaces

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This space already existed i just moved it, do i have to do anything to get your comment applied?

@Maks3w
Copy link
Member

Maks3w commented Mar 22, 2014

Please add a unit test

@thoys
Copy link
Contributor Author

thoys commented Mar 22, 2014

The unit test for Zip already exists, and calls this method with a param

@Maks3w
Copy link
Member

Maks3w commented Mar 22, 2014

Add a unit test showing your use case

@thoys
Copy link
Contributor Author

thoys commented Mar 22, 2014

Is this better?

@thoys
Copy link
Contributor Author

thoys commented Mar 25, 2014

Sorry, I didn't quite get the trailing spaces part till now. I hope this makes the deal.

@sjerdo
Copy link

sjerdo commented Mar 25, 2014

Go Travis, Go

@sjerdo
Copy link

sjerdo commented Mar 25, 2014

trailing spaces seems fixed in test. one of the three builds fails for a reason unknown to me

@Ocramius
Copy link
Member

@sjerdo the cache failure is annoying - can't do much about it, it is not related with this PR.

@thoys
Copy link
Contributor Author

thoys commented Mar 31, 2014

Can anyone trigger the Travis CI to re-test this push? It should've passed.

@Ocramius
Copy link
Member

@thoys no need to re-run travis. It was just the usual cache race condition.

@Maks3w
Copy link
Member

Maks3w commented Apr 2, 2014

Travis relunched now that tests are enabled

@Ocramius Ocramius added this to the 2.3.1 milestone Apr 2, 2014
@Ocramius Ocramius self-assigned this Apr 2, 2014
@Ocramius Ocramius closed this in 6259509 Apr 2, 2014
Ocramius added a commit that referenced this pull request Apr 2, 2014
gianarb pushed a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants