Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.2 compatibility fix #1

Open
d-angelovski opened this issue Oct 27, 2019 · 0 comments
Open

PHP 7.2 compatibility fix #1

d-angelovski opened this issue Oct 27, 2019 · 0 comments

Comments

@d-angelovski
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant