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 directory errors on windows and google analytics ga method undefine error #360

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

geehon
Copy link
Contributor

@geehon geehon commented Oct 26, 2023

DIRECTORY_SEPARATOR will cause directory errors on windows ziparchive manual

@@ -96,7 +96,7 @@ public function setBaseFolder(string $baseFolder): self
private function prefixFilename(string $filename): string
{
if ($this->baseFolder !== '') {
return sprintf('%s%s%s', $this->baseFolder, DIRECTORY_SEPARATOR, $filename);
return sprintf('%s%s%s', $this->baseFolder, '/', $filename);
Copy link
Contributor

Choose a reason for hiding this comment

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

This didn't work on windows? How peculiar. Are you on wsl?

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 didn't work on windows? How peculiar. Are you on wsl?

Not on wsl. I found out it was a slash encoding issue.
Unzip the downloaded file and the result is as follows.

image

@luispabon
Copy link
Contributor

Great stuff, thanks for your contribution 👍

@luispabon luispabon merged commit 476ebd4 into phpdocker-io:master Oct 26, 2023
1 check passed
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.

2 participants