Skip to content

Attempt to fix Gzip failures.#341

Merged
lablnet merged 2 commits intoalphazframework:masterfrom
Maikuolan:patch-2
Dec 6, 2020
Merged

Attempt to fix Gzip failures.#341
lablnet merged 2 commits intoalphazframework:masterfrom
Maikuolan:patch-2

Conversation

@Maikuolan
Copy link
Copy Markdown
Member

(See comments at #340).

@Maikuolan
Copy link
Copy Markdown
Member Author

StyleCI complaints. '-.-

One sec.

@Maikuolan
Copy link
Copy Markdown
Member Author

Tests look good now. :-)

Copy link
Copy Markdown
Member

@lablnet lablnet left a comment

Choose a reason for hiding this comment

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

👍

@lablnet lablnet merged commit 1a739c5 into alphazframework:master Dec 6, 2020
@Maikuolan Maikuolan deleted the patch-2 branch December 6, 2020 03:10

$filename = $destination;
if ($outfile = gzopen($filename, $mode)) {
if ($outfile = gzopen($filename, 'wb'.$mode)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it should verify the compression mode before calling the gzopen function.

According to the gzcompress reference, the compression level range should be from 0 to 9.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it should verify the compression mode before calling the gzopen function.

agreed 👍

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.

3 participants