Skip to content

[HttpFoundation] Fix clearstatcache first arg #7890

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

Merged
merged 1 commit into from
May 12, 2017
Merged

Conversation

ogizanagi
Copy link
Contributor

According to http://php.net/manual/en/function.clearstatcache.php:

filename
Clear the realpath and the stat cache for a specific filename only; only used if clear_realpath_cache is TRUE.

So it seems either we provide the second argument and set the first one to true, either the second arg is not used at all.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

Nice catch!

@xabbuh
Copy link
Member

xabbuh commented May 12, 2017

Good catch, thanks @ogizanagi.

@xabbuh xabbuh merged commit 92cc724 into symfony:2.7 May 12, 2017
xabbuh added a commit that referenced this pull request May 12, 2017
This PR was merged into the 2.7 branch.

Discussion
----------

[HttpFoundation] Fix clearstatcache first arg

According to http://php.net/manual/en/function.clearstatcache.php:

> **filename**
    Clear the realpath and the stat cache for a specific filename only; _only used if **clear_realpath_cache** is **TRUE**_.

So it seems either we provide the second argument and set the first one to `true`, either the second arg is not used at all.

Commits
-------

92cc724 [HttpFoundation] Fix clearstatcache first arg
@ogizanagi ogizanagi deleted the patch-2 branch May 12, 2017 09:52
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.

5 participants