This is not a request for help (as I found a solution already) but a heads up to help anyone else in the same situation...
I was running OSTicket 1.17.4 on PHP 8.0.18, on Windows Server with IIS, and decided it was time to upgrade to 1.18.2.
I noted that PHP 8.2 to 8.4 is now required, so of course I went directly to 8.4.6 and had it set up and mostly working before realising (in dashboard -> information) that imap was not present.
After a little bit of digging it turns out that php_imap is deprecated and has been removed from PHP core in 8.4:
https://php.watch/versions/8.4/imap-unbundled
It looks like it is still possible to download the source and compile a custom build of PHP 8.4 with imap included however while that's "relatively" easy to do on Linux its a royal pain in the backside to do that on Windows if you don't already have visual studio etc set up... (I'm using precompiled versions of PHP)
So I ended up going back to PHP 8.3.20 which is the last version to include php_imap as part of the core installation.
I haven't seen any warnings about the lack of php_imap in PHP 8.4 on the OSTicket download or setup pages so I'd imagine I won't be the only one caught out by this.
Are the OSTicket devs looking into alternative methods of supporting imap functionality from PHP 8.4 onwards, as noted in the link above ? (And a warning on the download page not to use 8.4 if you need IMAP support might be prudent or even remove 8.4 from the supported versions list)
While PHP 8.3.20 is a solution for now it's not a permanent one as it will eventually get too out of date.