Skip to content
New issue

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

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

Already on GitHub? # to your account

Prevent "Warning: ini_set(): A session is active. You cannot change t… #15

Merged
merged 1 commit into from
Dec 10, 2018

Conversation

pbowyer
Copy link

@pbowyer pbowyer commented Dec 6, 2018

…he session module's ini settings at this time in sfBasicSecurityUser.class.php on line 257"

PHP 7.2 changed the ini_set behaviour for session keys (see FriendsOfSymfony1/symfony1#183 for a discussion). This patch prevents the warning.

…he session module's ini settings at this time in sfBasicSecurityUser.class.php on line 257"

PHP 7.2 changed the `ini_set` behaviour for session keys (see FriendsOfSymfony1/symfony1#183 for a discussion). This patch prevents the warning.
@boutell
Copy link
Member

boutell commented Dec 10, 2018

Would this patch break on PHP 5.4? That is supported (until 2023) by CentOS/RHEL, which is our platform for a tiny handful of remaining sites. Thanks

@pbowyer
Copy link
Author

pbowyer commented Dec 10, 2018

It will work with PHP 5.4 as session_status() was added in that version: http://php.net/manual/en/function.session-status.php

Test code: https://3v4l.org/msSYl

@boutell boutell merged commit 067c229 into punkave:1.4 Dec 10, 2018
@boutell
Copy link
Member

boutell commented Dec 10, 2018

Thanks!

@boutell
Copy link
Member

boutell commented Dec 10, 2018

(That is a super useful site)

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

Successfully merging this pull request may close these issues.

2 participants