Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Possible bug with session native_emulation.
nickstinger
September 2016
I'm trying to use session native_emulation with PHP7 and running into an error.
I found this related description of the problem on Stackoverflow:
http://stackoverflow.com/questions/34125849/php-7-user-sessions-issue-failed-to-initialize-storage-module
And then referenced the PHP documentation:
http://php.net/manual/en/function.session-set-save-handler.php
And then I looked at the Core source code:
session_set_save_handler(
// open
function ($savePath, $sessionName) {
},
The open function is not returning true, as required, to indicate success.
I then edited the source code and added "return true;" to the method and the error went away.
nickstinger
September 2016
I may be having other native session problems too, but I have not yet confirmed their nature.
;)
After fixing the above, there were no other problems.
Harro
September 2016
Which is a bit weird, you would assume that PHP7 would complain about the lack of a return value for all other methods as well.
I've checked the docs, and updated the code so all closures return the expected return value:
https://github.com/fuel/core/commit/1cdc19cce843f0d0b63540893b3f5d9fcb9ddc7c
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
September 2016
nickstinger
September 2016