Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc38d76

Browse filesBrowse files
committed
minor #10366 [FrameworkBundle] set a default value for gc_probability (fabpot)
This PR was merged into the 2.5-dev branch. Discussion ---------- [FrameworkBundle] set a default value for gc_probability | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | refs #10349 | License | MIT | Doc PR | n/a This sets the `gc_probability` to 1 by default (which is the default value in PHP). That should help mitigate #10349. Commits ------- 7e1bdd7 [FrameworkBundle] set a default value for gc_probability
2 parents 1948d36 + 7e1bdd7 commit bc38d76
Copy full SHA for bc38d76

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private function addSessionSection(ArrayNodeDefinition $rootNode)
244244
->booleanNode('cookie_secure')->end()
245245
->booleanNode('cookie_httponly')->end()
246246
->scalarNode('gc_divisor')->end()
247-
->scalarNode('gc_probability')->end()
247+
->scalarNode('gc_probability')->defaultValue(1)->end()
248248
->scalarNode('gc_maxlifetime')->end()
249249
->scalarNode('save_path')->defaultValue('%kernel.cache_dir%/sessions')->end()
250250
->integerNode('metadata_update_threshold')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.