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

Correctly avoid warnings in Plack::App:::WrapCGI #484

Merged
merged 1 commit into from
Dec 18, 2014
Merged

Correctly avoid warnings in Plack::App:::WrapCGI #484

merged 1 commit into from
Dec 18, 2014

Conversation

frioux
Copy link
Contributor

@frioux frioux commented Dec 17, 2014

The old version could accidentally drop data consisting of simply 0

}
$res .= do { local $/; <$stdoutr> } || '';
$v = do { local $/; <$stdoutr> };
Copy link
Member

Choose a reason for hiding this comment

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

I'm sure it's safe, but don't like that the variable $v is shared for two different purposes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gotcha. You ok with still using $v but defining it in a block so that it's not the "same" $v?

Copy link
Member

Choose a reason for hiding this comment

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

yeah, sounds fine.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.11%) when pulling 2555e03 on frioux:patch-3 into 79b2dc8 on plack:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.16%) when pulling bff8cb4 on frioux:patch-3 into 79b2dc8 on plack:master.

miyagawa added a commit that referenced this pull request Dec 18, 2014
Correctly avoid warnings in Plack::App:::WrapCGI
@miyagawa miyagawa merged commit 58be250 into plack:master Dec 18, 2014
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.

None yet

3 participants