fix(imp): repair PHP 8.4 use imports and iTip handling for calendar r…#64
Merged
Conversation
ralflang
requested changes
Jun 12, 2026
ralflang
left a comment
Member
There was a problem hiding this comment.
Don't change order of parameter types allowd. Don't catch random throwables. Catch what you know you can handle specifically.
…eplies Move Horde\Util\Variables imports out of docblocks to fix PHP 8.4 compatibility fatals in Ajax Imple classes. Register application/ics for the iTip mime driver and improve From-header parsing in Itip viewer.
Contributor
Author
|
i applied changes. thanks for the review |
ralflang
approved these changes
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix IMP iTip handling and PHP 8.4 use imports for calendar replies
Package:
horde/impAuthor: Torben Dannhauer torben@dannhauer.de
Summary
Fixes webmail handling of calendar invitation replies (iTip REPLY) and a PHP 8.4 fatal error that prevented opening confirmation mails in IMP after an attendee accepts via ActiveSync.
Motivation
After an iPhone user accepts a meeting via EAS
MeetingResponse, the organizer receives an iTip REPLY message. Opening that message in IMP failed with:The root cause was
use Horde\Util\Variables;placed inside PHPDoc blocks instead of after the opening<?phptag. IMP also did not registerapplication/icsfor the iTip mime driver, so some invitation layouts were not rendered.Changes
PHP 8.4 compatibility
Move
use Horde\Util\Variables;out of docblocks into valid PHP scope:lib/Ajax/Imple/ItipRequest.phplib/Ajax/Imple/PassphraseDialog.phplib/Ajax/Imple/VcardImport.phplib/Ajax/Imple/ImportEncryptKey.phpiTip viewer
lib/Mime/Viewer/Itip.php: safer From-header parsing via_senderFromHeader()for auto-update / reply handlingconfig/mime_drivers.php: registerapplication/icsfor theitipmime driver (alongsidetext/calendar)Files
lib/Ajax/Imple/ItipRequest.phpuseimport placementlib/Ajax/Imple/PassphraseDialog.phpuseimport placementlib/Ajax/Imple/VcardImport.phpuseimport placementlib/Ajax/Imple/ImportEncryptKey.phpuseimport placementlib/Mime/Viewer/Itip.phpconfig/mime_drivers.phpapplication/icsin iTip driverTest plan
php -lon all modified PHP filesapplication/icsinvitation partsvendor/bin/phpunit test/Imp/Unit/Mime/Viewer/ItipTest.phpif availableCommit message