Skip to content

Conversation

@nazar-pc
Copy link
Contributor

Few unused variables removed.
One ambiguous situation resolved.
join(...) > implode(...).
One case of 2 isset() statements combined together.

P.S. I'm curious if anyone would love to see this thing refactored to something understandable (even keeping in single file) or it would be a waste of time?

Few unused variables removed.
One ambiguous situation resolved.
`join(...)` > `implode(...)`.
One case of 2 `isset()` statements combined together.
if ($compression && in_array("compress.zlib", stream_get_filters())) {
$output_file = 'compress.zlib://' . $output_file . '.gz';
}

Copy link
Member

Choose a reason for hiding this comment

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

Dumb question: why did you remove the compression support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you look few lines higher, $compression variable is always 0, so this code is basically dead.

Copy link
Member

Choose a reason for hiding this comment

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

Well, obviously the question was really dumb. :)

I'll have a closer look at this PR within the next days. At least some clean up of the script seems indeed overdue.

@cmb69
Copy link
Member

cmb69 commented Jun 22, 2016

The rest looks definitely fine to me.

@php-pulls php-pulls merged commit ddf1c08 into php:master Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants