Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

3.9 breaks session handling on php 8.3

75 views
Skip to first unread message

Yoeri Nijs

unread,
Dec 30, 2024, 4:07:36 AM12/30/24
to Fat-Free Framework
Hi,

I tried to upgrade F3 to the latest 3.9 release since I definitely want the deprecation fixes. However, this release breaks things on php 8.3.12.

Stacktrace says this:

 session_start(): Failed to read session data: user (path: )

After some debugging, I found that fatfree-code 3.9 is causing this problem. Downgrading to 3.8 in the composer file by adding a conflict fixes this.

What is going wrong here?




ikkez

unread,
Dec 31, 2024, 12:17:28 PM12/31/24
to Fat-Free Framework
Sorry for the confusion.. I've fixed it and re-tagged version 3.9.0 again as https://github.com/f3-factory/fatfree-core/commit/227b3b03315ab86b1601d9e9fd8e07efbedf6ab9

I was actually testing if the return value is finally correct as stated in the php documentation, because https://www.php.net/manual/en/sessionhandlerinterface.read.php says:

If the record was not found, return false.

Which is what the code does, but it only seems to NOT break things beginning with php 8.4
I've forgotten to revert this change here, hence the error.. sorry for that

just update to the latest release again,.. iot should solve the issue.

thank you

Reply all
Reply to author
Forward
0 new messages