8000 minor #8753 [FIX] Realpath improvement in PHP 7.2 (Guikingone, weaver… · symfony/symfony-docs@4bf342d · GitHub
[go: up one dir, main page]

Skip to content

Commit 4bf342d

Browse files
committed
minor #8753 [FIX] Realpath improvement in PHP 7.2 (Guikingone, weaverryan)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #8753). Discussion ---------- [FIX] Realpath improvement in PHP 7.2 As PHP 7.2 provide a default value of 4096k (as seen https://github.com/php/php-src/blob/php-7.2.0RC6/UPGRADING#L357), the line about this improvement can be deleted. Commits ------- f10c7b3 tweaking language a519d8e fix(syntax): added a space before has 17a0b8a fix(tip): Add the tip block for realpth_cache_size e177ca9 [FIX](Realpath)
2 parents d0328db + f10c7b3 commit 4bf342d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

performance.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ real and absolute file system paths. This increases the performance for
7979
applications like Symfony that open many PHP files, especially on Windows
8080
systems.
8181

82-
By default, PHP sets a ``realpath_cache_size`` of ``16K`` which is too low for
83-
Symfony. Consider updating this value at least to ``4096K``. In addition, cached
84-
paths are only stored for ``120`` seconds by default. Consider updating this
85-
value too using the ``realpath_cache_ttl`` option:
82+
Consider increasing the ``realpath_cache_size`` and ``realpath_cache_ttl``:
8683

8784
.. code-block:: ini
8885
8986
; php.ini
87+
; 4096k is the default value in PHP 7.2
9088
realpath_cache_size=4096K
9189
realpath_cache_ttl=600
9290

0 commit comments

Comments
 (0)
0