Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

check fstat result #290

Merged
merged 2 commits into from
Feb 26, 2018
Merged

check fstat result #290

merged 2 commits into from
Feb 26, 2018

Conversation

pine3ree
Copy link
Contributor

@pine3ree pine3ree commented Feb 5, 2018

fstat calls may return false (remote resources, 'php://input' streams)

@pine3ree
Copy link
Contributor Author

pine3ree commented Feb 6, 2018

I previously added a test case for remote resource (7c44b5a#diff-b0c96a6133152b0c2e2b5e59291b6c0a) that caused 2~3 connection timeouts in Travis, so I removed it.
I was thinking of keeping the test case handling the timeouts errors, but in that case we have no open pointer to pass to fstat, so that the test itself was pointless. Any hints?

@weierophinney
Copy link
Member

Honestly, the test written is fine; the point is to see if we have file information before attempting to return a member of it, which this tests.

@weierophinney weierophinney merged commit 45872fd into zendframework:master Feb 26, 2018
weierophinney added a commit that referenced this pull request Feb 26, 2018
weierophinney added a commit that referenced this pull request Feb 26, 2018
weierophinney added a commit that referenced this pull request Feb 26, 2018
weierophinney added a commit that referenced this pull request Feb 26, 2018
@weierophinney
Copy link
Member

Thanks, @pine3ree.

@pine3ree pine3ree deleted the check-fstat-result branch February 26, 2018 16:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants