While parsing message body it can happen (happened to me :) that the (parsed) section subtype is empty, resulting in a bad (uncatchable) error in the following lines (all the
$objNew->$subtype
calls are bound to fail badly).
A first workaround would be at least check for empty $subtype, and exclude the whole following section if is actually empty
(I have the fixed branch in my local system, I'll try to push + pull request in a few hours).
Bug See here: https://github.com/SSilence/php-imap-client/blob/a897a58f99638ab60536e947073d497e8154cb12/ImapClient/IncomingMessage.php#L365
While parsing message body it can happen (happened to me :) that the (parsed) section subtype is empty, resulting in a bad (uncatchable) error in the following lines (all the
$objNew->$subtype
calls are bound to fail badly).
A first workaround would be at least check for empty $subtype, and exclude the whole following section if is actually empty
(I have the fixed branch in my local system, I'll try to push + pull request in a few hours).