8000 minor #10366 [FrameworkBundle] set a default value for gc_probability… · symfony/symfony@bc38d76 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc38d76

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines 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