Skip to content

PHP 7.2 compatibility fix #1

Description

@d-angelovski

Hi,

I use your library on one of the projects, and testing the project on a PHP 7.2, there is issue with the Read method in MySqlStorage.php (line 71).

The error I get is: session_start(): Failed to read session data: user (path: /var/lib/php/session) in ...

The fix would be to add return '' if the result data is null:
`if(is_null($result['data']))
return '';

return $result['data'];`

This is the issue described:
https://www.php.net/manual/en/function.session-start.php#120589

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions