You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HttpFoundation] Deprecate upload_progress.* and url_rewriter.tags session options
Related to [issue symfony#43284](symfony#43284). Deprecate support for configuring session.upload_progress.* - these options are `PHP_INI_PERDIR` options and can not be configured at runtime via `ini_set`. Deprecate support for configuring `url_rewriter.tags` - as of PHP 7.1.0, this option is no longer used for session configuration and that setting is now `session.trans_sid_tags`. `url_rewriter.tags` is used only by `output_add_rewrite_var`.
@@ -383,6 +376,13 @@ public function setOptions(array $options)
383
376
384
377
foreach ($optionsas$key => $value) {
385
378
if (isset($validOptions[$key])) {
379
+
if (\str_starts_with($key, 'upload_progress.')) {
380
+
trigger_deprecation('symfony/http-foundation', '5.4', 'Support for the "%s" session option is deprecated. The settings prefixed with "session.upload_progress." can not be changed at runtime.', $key);
381
+
continue;
382
+
}
383
+
if ('url_rewriter.tags' === $key) {
384
+
trigger_deprecation('symfony/http-foundation', '5.4', 'Support for the "%s" session option is deprecated. Use "trans_sid_tags" instead.', $key);
385
+
}
386
386
if ('cookie_samesite' === $key && \PHP_VERSION_ID < 70300) {
387
387
// PHP < 7.3 does not support same_site cookies. We will emulate it in
0 commit comments