Skip to content

Commit 012de24

Browse files
committed
minor #7890 [HttpFoundation] Fix clearstatcache first arg (ogizanagi)
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
2 parents 78b3c10 + 92cc724 commit 012de24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ Please note that this will not work when the ``X-Sendfile`` header is set.
533533

534534
If you *just* created the file during this same request, the file *may* be sent
535535
without any content. This may be due to cached file stats that return zero for
536-
the size of the file. To fix this issue, call ``clearstatcache(false, $file)``
536+
the size of the file. To fix this issue, call ``clearstatcache(true, $file)``
537537
with the path to the binary file.
538538

539539
.. _component-http-foundation-json-response:

0 commit comments

Comments
 (0)