PHP8에서 session.auto_start 체크가 안되는 경우

intval로 변환하여 0이 나오도록한 뒤 0과 strict type check
This commit is contained in:
Kangjun Heo == P.Knowledge 2021-03-28 20:41:33 +09:00 committed by GitHub
parent 19e7f6b3e8
commit 23b967647f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -320,9 +320,9 @@ class installController extends install
$license_agreement_time = intval(trim(FileHandler::readFile($this->flagLicenseAgreement)));
if(isset($_SESSION['license_agreement']) && (!$license_agreement_time || ($license_agreement_time == $_SESSION['license_agreement'])))
{
$sess_autostart = ini_get('session.auto_start');
$sess_autostart = intval(ini_get('session.auto_start'));
if($sess_autostart === 0 || $sess_autostart === "")
if($sess_autostart === 0)
{
$checklist['session'] = true;
}