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

Bug 65701 #459

Closed
wants to merge 1 commit into from
Closed

Bug 65701 #459

wants to merge 1 commit into from

Conversation

bor0
Copy link
Contributor

@bor0 bor0 commented Sep 18, 2013

https://bugs.php.net/bug.php?id=65701

Do not use cache for file file copy

@bor0
Copy link
Contributor Author

bor0 commented Sep 18, 2013

Basically copy() copies the file, but filesize() displays wrong information because copy calls stat, and stat stores in cache information that gets old after copy is completed.

@bor0
Copy link
Contributor Author

bor0 commented Sep 19, 2013

PR updated accordingly (UT changes)

@smalyshev
Copy link
Contributor

I think a better solution would be to add a flag for _php_stream_stat_path so that it would not cache the result. Caching the result only to throw it out is not the best way.

https://bugs.php.net/bug.php?id=65701

Do not use cache for file file copy
@bor0
Copy link
Contributor Author

bor0 commented Apr 14, 2014

PR updated as per suggestion.

@php-pulls
Copy link

Comment on behalf of stas at php.net:

merged

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