Skip to content

Commit 1b1f39a

Browse files
committed
bug symfony#24494 [HttpFoundation] Add missing session.lazy_write config option (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] Add missing session.lazy_write config option | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - See http://php.net/manual/en/session.configuration.php#ini.session.lazy-write Commits ------- dbc9a44 [HttpFoundation] Add missing session.lazy_write config option
2 parents 79c1f5e + dbc9a44 commit 1b1f39a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class NativeSessionStorage implements SessionStorageInterface
7676
* gc_probability, "1"
7777
* hash_bits_per_character, "4"
7878
* hash_function, "0"
79+
* lazy_write, "1"
7980
* name, "PHPSESSID"
8081
* referer_check, ""
8182
* serialize_handler, "php"
@@ -337,7 +338,7 @@ public function setOptions(array $options)
337338
'cookie_lifetime', 'cookie_path', 'cookie_secure',
338339
'entropy_file', 'entropy_length', 'gc_divisor',
339340
'gc_maxlifetime', 'gc_probability', 'hash_bits_per_character',
340-
'hash_function', 'name', 'referer_check',
341+
'hash_function', 'lazy_write', 'name', 'referer_check',
341342
'serialize_handler', 'use_strict_mode', 'use_cookies',
342343
'use_only_cookies', 'use_trans_sid', 'upload_progress.enabled',
343344
'upload_progress.cleanup', 'upload_progress.prefix', 'upload_progress.name',

0 commit comments

Comments
 (0)