Skip to content

PHP 8.3 Session issue? #11601

Closed
Closed

Description

@RouatbiH

Description

Using PHP 8.2.4 and older with phpMyAdmin 5.2.1 working fine but when i use it with PHP 8.3.0 it gives this php session error
image
and some times this
image

I'm not sure if it's a phpMyAdmin issue or a php issue.

PHP Version

PHP 8.3.0alpha3

Operating System

Windows 10

Activity

  1. ndossche commented on Jul 6, 2023

    @ndossche
    Member

    I can reproduce this. I'll run a bisect.

  2. ndossche commented on Jul 6, 2023

    @ndossche
    Member

    First bad commit: b3e33be
    cc @iluuu1994

    Probably, ext/session was relying on some behaviour that got changed in this commit.

  3. iluuu1994 commented on Jul 6, 2023

    @iluuu1994
    Member

    Weird. I can't immediately think of how this change could cause such an issue. Are you looking into it? If not I will do so.

  4. ndossche commented on Jul 6, 2023

    @ndossche
    Member

    @iluuu1994 I'm not checking it out atm, I'm busy with other stuff :)

  5. iluuu1994 commented on Jul 6, 2023

    @iluuu1994
    Member

    The problem is that the code doesn't handle the graceful and unwind exit exceptions, I'll check what the best solution is.

  6. usarise commented on Jul 6, 2023

    @usarise
    Contributor

    @iluuu1994 The code executes, but writes broken data to the session

  7. usarise commented on Jul 6, 2023

    @usarise
    Contributor

    A key is written to the session without any value data

  8. iluuu1994 commented on Jul 6, 2023

    @iluuu1994
    Member

    @usarise The issue is in my patch (b3e33be). It's missing the handling of some special exceptions that get thrown when you exit() out of a request. It's catching these when it shouldn't, causing a fatal error and probably not properly closing and writing to the session. I will need to fix that. But thanks for checking. 🙂

  9. added a commit that references this issue on Jul 6, 2023
    dae12d8
  10. added a commit that references this issue on Jan 31, 2024
    11aee73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions