Skip to content

Fix: avoid crash when Safe unserialize is unavailable - #649

Merged
Rom1-B merged 1 commit into
mainfrom
support_45747
Aug 7, 2026
Merged

Fix: avoid crash when Safe unserialize is unavailable#649
Rom1-B merged 1 commit into
mainfrom
support_45747

Conversation

@Rom1-B

@Rom1-B Rom1-B commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes !45747
  • The mapping and injection screens crashed with an UndefinedFunctionError because Safe\unserialize() is not shipped yet by any released GLPI 11.0.x core version. Session data is now unserialized through a shared helper that uses the Safe variant only when it actually exists, falling back to native unserialize() otherwise.

Screenshots (if appropriate):

@Rom1-B
Rom1-B requested review from Herafia and Lainow August 6, 2026 14:53
@Rom1-B
Rom1-B merged commit f3092ce into main Aug 7, 2026
3 checks passed
@Rom1-B
Rom1-B deleted the support_45747 branch August 7, 2026 08:26
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