Skip to content
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

Fix bug #65028 #392

Merged
merged 1 commit into from
Jul 24, 2013
Merged

Fix bug #65028 #392

merged 1 commit into from
Jul 24, 2013

Conversation

smalyshev
Copy link
Contributor

Fix bug #65028: Phar::buildFromDirectory creates corrupt archives for so...me specific contents.

Somewhat hackish solution - see https://bugs.php.net/bug.php?id=65028 for the description of the bug and suspected cause.

@weltling
Copy link
Contributor

I can reproduce this in master, despite this patch is built upon 5.4. The fix works, tests pass on windows/linux

@weltling
Copy link
Contributor

Maybe one improvement though, at the end of the test one could list the files in the copied phar and compare to the original. I've used RecursiveIteratorIterator to do that.

"style/Fusonic/40components.css",
"style/_emptyDirectory",
"index.php",
// "a", // This will make the test pass
Copy link
Member

Choose a reason for hiding this comment

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

Assuming that the test passes after fixing the issue this comment is misleading ;-)

Choose a reason for hiding this comment

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

hahaha

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it should pass anyway, I just copied the test directly from the bug and forgot to remove the comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants