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

Update the meta information when getMetadata() is called #1423

Merged
merged 2 commits into from
Aug 10, 2015
Merged

Update the meta information when getMetadata() is called #1423

merged 2 commits into from
Aug 10, 2015

Conversation

akrabat
Copy link
Member

@akrabat akrabat commented Aug 10, 2015

This ensures that the metadata isn't stale if the stream has changed.
Also remove test for setting metadata in constructor as we no longer do this.

Fixes #1399

This ensures that the metadata isn't stale if the stream has changed.
Also remove test for setting metadata in constructor as we no longer do
this.
@campersau
Copy link
Contributor

I think this does not fix #1399 completely because this only fixes getMetadata and not getSize which uses fstat.

@akrabat
Copy link
Member Author

akrabat commented Aug 10, 2015

Thanks @campersau - does that look better?

@silentworks
Copy link
Member

What happens If I call getSize before getMetadata? would this not result in stale size?

@silentworks
Copy link
Member

I should really read code more, ignore last comment.

silentworks added a commit that referenced this pull request Aug 10, 2015
Update the meta information when getMetadata() is called
@silentworks silentworks merged commit 593fd92 into slimphp:3.x Aug 10, 2015
@akrabat akrabat added this to the 3.0.0 Beta 2 milestone Aug 16, 2015
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