-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP8 - Fatal error with some imap attachments? #734
Comments
@josaphatim What do you think? |
@mcbmcb0, @marclaporte I couldn't really reproduce that by as error is clear I'll proposed a merge request |
@mcbmcb0 Please confirm the issue is solved in master. |
Hi EDIT: but i do now notice: |
This is the fix for it #759. |
@mcbmcb0 Please confirm the issue is solved in master. |
yes, this issue now resolved. thanks |
💬 Question
I've put this as a questions tho I think its a bug due to php making count types compulsory. but I don't know how to reliably reproduce it:
the offending code is:
for ($i=0;$i<count($struct['disposition']['attachment']);$i++) {
I assume there are no attachments tho they are expected. This line has not been updated in the latest current release. I've hacked a quick fix until someone can replicate this and/or patch it:
for ($i=0;$i<count( is_countable($struct['disposition']['attachment']??null) ? $struct['disposition']['attachment']: [] );$i++) {
thanks
The text was updated successfully, but these errors were encountered: