Skip to content

fix: throw exception for unsupported DB drivers in session #9574

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

michalsn
Copy link
Member

Description
This PR fixes the session service logic by adding a check for unsupported database platforms. If a developer attempts to use DatabaseHandler with an unsupported driver (e.g., SQLSRV, OCI8, SQLite3), an InvalidArgumentException will now be thrown with a clear error message.

Problem spotted here: #9572

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn merged commit 045e12b into codeigniter4:develop May 26, 2025
50 checks passed
@michalsn
Copy link
Member Author

Thank you @paulbalandan

@michalsn michalsn deleted the fix/db-session branch May 27, 2025 16:16
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

Successfully merging this pull request may close these issues.

2 participants