8000 bug #22352 [HttpFoundation] Add `use_strict_mode` in validOptions for… · symfony/symfony@63592a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63592a6

Browse files
committed
bug #22352 [HttpFoundation] Add use_strict_mode in validOptions for session (sstok)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] Add `use_strict_mode` in validOptions for session | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #9258 | License | MIT | Doc PR | PHP ini `session.use_strict_mode` was added in PHP 5.5.2 so I didn't target 2.8 as this still uses PHP 5.3. https://secure.php.net/manual/en/session.configuration.php#ini.session.use-strict-mode Commits ------- 130ee32 Add `use_strict_mode` in validOptions for session
2 parents 6928f12 + 130ee32 commit 63592a6

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
@@ -81,6 +81,7 @@ class NativeSessionStorage implements SessionStorageInterface
8181
* name, "PHPSESSID"
8282
* referer_check, ""
8383
* serialize_handler, "php"
84+
* use_strict_mode, "0"
8485
* use_cookies, "1"
8586
* use_only_cookies, "1"
8687
* use_trans_sid, "0"
@@ -335,7 +336,7 @@ public function setOptions(array $options)
335336
'entropy_file', 'entropy_length', 'gc_divisor',
336337
'gc_maxlifetime', 'gc_probability', 'hash_bits_per_character',
337338
'hash_function', 'name', 'referer_check',
338-
'serialize_handler', 'use_cookies',
339+
'serialize_handler', 'use_strict_mode', 'use_cookies',
339340
'use_only_cookies', 'use_trans_sid', 'upload_progress.enabled',
340341
'upload_progress.cleanup', 'upload_progress.prefix', 'upload_progress.name',
341342
'upload_progress.freq', 'upload_progress.min-freq', 'url_rewriter.tags',

0 commit comments

Comments
 (0)
0