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.3 incompatibilty with ini_set() #99

Open
bglass opened this issue Aug 21, 2019 · 0 comments
Open

php 7.3 incompatibilty with ini_set() #99

bglass opened this issue Aug 21, 2019 · 0 comments

Comments

@bglass
Copy link

bglass commented Aug 21, 2019

Running on php 7.3 (Debian 10) gives the following issue:

PHP Recoverable fatal error: ini_set(): Cannot set 'user' save handler by ini_set() or session_module_name() in /some_path/include/begin.inc.php on line 111

As a workaround, I commented out the call to ini_set in begin.inc.php:111, like this:
if (strtolower(ini_get('session.save_handler')) == 'user' ) { // || ini_set('session.save_handler', 'user')) {

After this modification, everything seems to work fine.

I was inspired by symphonycms/symphonycms#2783, where a contributer wrote:

The solution is to simply delete line 60. Setting a custom save handler is just a matter of using session_set_save_handler(). There is no reason why PHP should ever have allowed the 'user' option to be specified with ini_set.

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