Regression? PHP 8.4 session.sid_length and session.sid_bits_per_character are deprecated

Created on 30 November 2024, 21 days ago

Problem/Motivation

Installing Drupal 11.1.x-dev with PHP 8.4 and then setting up a site is giving me the following debug notice in the logs on every page load:

Deprecated function: ini_set(): session.sid_bits_per_character INI setting is deprecated in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setOptions() (line 341 of /var/www/html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php)
#0 /var/www/html/web/core/includes/bootstrap.inc(108): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /var/www/html/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php(341): ini_set()
#3 /var/www/html/web/core/lib/Drupal/Core/Session/SessionManager.php(86): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->setOptions()
#4 /var/www/html/vendor/symfony/http-foundation/Session/Session.php(59): Drupal\Core\Session\SessionManager->start()
#5 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(81): Symfony\Component\HttpFoundation\Session\Session->start()
#6 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(50): Drupal\Core\StackMiddleware\Session->initializePersistentSession()
#7 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#8 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#9 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\Core\StackMiddleware\ContentLength->handle()
#10 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#11 /var/www/html/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\page_cache\StackMiddleware\PageCache->handle()
#12 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Asm89\Stack\Cors->handle()
#13 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#14 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#15 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#16 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#17 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#18 {main}
.

This was reported to be fixed in 📌 PHP 8.4 session.sid_length and session.sid_bits_per_character are deprecated Active , but the code in the MR in that issue is no longer present in SessionConfiguration.php.

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

base system

Created by

🇯🇵Japan ptmkenny

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024