Avoid session double-start in Setup.php
authorBrad Jorsch <bjorsch@wikimedia.org>
Sat, 12 Jan 2019 19:16:52 +0000 (14:16 -0500)
committerReedy <reedy@wikimedia.org>
Wed, 16 Jan 2019 15:10:42 +0000 (15:10 +0000)
commit632c3b6a171bb39e167fe4b43f86f42e0933abc2
treec74402836f0281d708236d78495cb1ec4c3a53e5
parent899f475d0dad8ea0a24f706fc8ac07e3097d6191
Avoid session double-start in Setup.php

In PHP before 7.3, the double start doesn't really matter: session_id()
changes the ID even if it was already started, and the warning from
session_start() can just be ignored. Which is what we did.

In PHP 7.3, now session_id() also warns and no longer changes the ID. To
preserve the previous behavior, we'll need to explicitly close the old
session and open the new one.

Bug: T213489
Change-Id: I02a5be1c3adb326927c156fdd00663bccee37477
RELEASE-NOTES-1.31
includes/Setup.php