Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8649e1

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

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
@@ -792,6 +792,10 @@ their type::
792792
// uploads a file
793793
$form['photo']->upload('/path/to/lucas.jpg');
794794

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

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

0 commit comments

Comments
 (0)