8000 [FIX] Realpath improvement in PHP 7.2 by Guikingone · Pull Request #8753 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[FIX] Realpath improvement in PHP 7.2 #8753

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

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,12 @@ real and absolute file system paths. This increases the performance for
applications like Symfony that open many PHP files, especially on Windows
systems.

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

.. code-block:: ini

; php.ini
; 4096k is the default value in PHP 7.2
realpath_cache_size=4096K
realpath_cache_ttl=600

Expand Down
0