The converters/php56-recode and mail/php56-imap modules are not in the correct ordering. Recode needs to load before imap when the recode and imap modules are both installed.
Confirming this as well. I renamed ext-20-imap.ini to ext-30-imap.ini to get it running again. After making sure that worked, I renamed it back and then added this to my /etc/make.conf and forced an update so it would come back with the right number: .if ${.CURDIR:M*/mail/php56-imap*} PHP_MOD_PRIO= 30 .endif So far so good with that in place until the port is fixed.
Created attachment 180728 [details] Patch to set PHP_MOD_PRIO in the port's Makefile
A commit references this bug: Author: ale Date: Mon Dec 10 14:19:24 UTC 2018 New revision: 487169 URL: https://svnweb.freebsd.org/changeset/ports/487169 Log: Update to 5.6.39 release [1]. - clean up CONFLICTS [2] - don't link with libpkg [3] - fix recode ordering issue [4] PR: 233847 [1], 226534 [2], 230980 [3], 211794 [4] Submitted by: Pascal Christen <pascal.christen@hostpoint.ch> [1], brnrd [2], amdmi3 [3], jaretbartsch@yahoo.ca [4] Changes: head/lang/php56/Makefile head/lang/php56/Makefile.ext head/lang/php56/distinfo head/mail/php56-imap/Makefile head/mail/php56-imap/files/patch-php__imap.c head/mail/php56-imap/files/patch-php__imap.h head/net-mgmt/php56-snmp/files/ head/net-mgmt/php56-snmp/files/patch-config.m4 head/security/php56-openssl/Makefile