Skip to content

BaseSessionDriver - self::$trueValue is set to false in the constructor resulting on the session file and cookie not being created. #1

@TiagoTeixeira85

Description

@TiagoTeixeira85

Problem Statement

The constructor for BaseSessionDriver class evaluates the following code $isPHP7 && self::$trueValue = true && self::$falseValue = false; to false for variable self::$trueValue.
So when Files class calls the open() method, the return value for the function self::true() returns false, resulting on the session file and cookie not being created.

Tested on PHP 7.4.30 using the Files driver using version 1.1-stable

Fix solution
Changing the aforementioned evaluation code to $isPHP7 && (self::$trueValue = true) && ((self::$falseValue = false) === false); fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions