Skip to content

Commit a3644f6

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: using open_basedir will disable the realpath cache fix(FileUpload): Addition on multiple files better readability
2 parents d5aaebe + 239136d commit a3644f6

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.symfony/routes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
https://{default}/:
22
cache:
33
cookies:
4-
- '*'
4+
- '*'
55
default_ttl: 0
66
enabled: true
77
headers:
8-
- Accept
9-
- Accept-Language
8+
- Accept
9+
- Accept-Language
1010
type: upstream
1111
upstream: symfonydocs:http

performance.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ such as Symfony projects, should use at least these values:
103103
; save the results for 10 minutes (600 seconds)
104104
realpath_cache_ttl=600
105105
106+
.. note::
107+
108+
PHP disables the ``realpath`` cache when the `open_basedir`_ config option
109+
is enabled.
110+
106111
.. _performance-optimize-composer-autoloader:
107112

108113
Optimize Composer Autoloader
@@ -143,3 +148,4 @@ Learn more
143148
.. _`APCu Polyfill component`: https://github.com/symfony/polyfill-apcu
144149
.. _`APCu PHP functions`: https://php.net/manual/en/ref.apcu.php
145150
.. _`cachetool`: https://github.com/gordalina/cachetool
151+
.. _`open_basedir`: https://php.net/manual/ini.core.php#ini.open-basedir

testing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,10 @@ their type::
793793
// uploads a file
794794
$form['photo']->upload('/path/to/lucas.jpg');
795795

796+
// In the case of a multiple file upload
797+
$form['my_form[field][O]']->upload('/path/to/lucas.jpg');
798+
$form['my_form[field][1]']->upload('/path/to/lisa.jpg');
799+
796800
.. tip::
797801

798802
If you purposefully want to select "invalid" select/radio values, see

0 commit comments

Comments
 (0)