Skip to content

Commit 65b65a2

Browse files
committed
minor #20204 [FrameworkBundle] Remove default value for gc_probability config option (raphael-geffroy)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [FrameworkBundle] Remove default value for `gc_probability` config option Fixes #20196 Commits ------- 31a33bf [FrameworkBundle] Remove default value for `gc_probability` config option
2 parents 75e2f46 + 31a33bf commit 65b65a2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

reference/configuration/framework.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -1845,13 +1845,19 @@ If not set, ``php.ini``'s `session.gc_divisor`_ directive will be relied on.
18451845
gc_probability
18461846
..............
18471847

1848-
**type**: ``integer`` **default**: ``1``
1848+
**type**: ``integer``
18491849

18501850
This defines the probability that the garbage collector (GC) process is
18511851
started on every session initialization. The probability is calculated by
18521852
using ``gc_probability`` / ``gc_divisor``, e.g. 1/100 means there is a 1%
18531853
chance that the GC process will start on each request.
18541854

1855+
If not set, ``php.ini``'s `session.gc_probability`_ directive will be relied on.
1856+
1857+
.. versionadded:: 7.2
1858+
1859+
Relying on ``php.ini``'s directive as default for ``gc_probability`` was introduced in symfony 7.2.
1860+
18551861
gc_maxlifetime
18561862
..............
18571863

@@ -3893,6 +3899,7 @@ The attributes can also be added to interfaces directly::
38933899
.. _`session.cookie_samesite`: https://www.php.net/manual/en/session.configuration.php#ini.session.cookie-samesite
38943900
.. _`session.cookie_secure`: https://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
38953901
.. _`session.gc_divisor`: https://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
3902+
.. _`session.gc_probability`: https://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
38963903
.. _`session.gc_maxlifetime`: https://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
38973904
.. _`session.sid_length`: https://www.php.net/manual/en/session.configuration.php#ini.session.sid-length
38983905
.. _`session.sid_bits_per_character`: https://www.php.net/manual/en/session.configuration.php#ini.session.sid-bits-per-character

0 commit comments

Comments
 (0)