-
-
Notifications
You must be signed in to change notification settings - Fork 652
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
Deprecation on localhost/mail.php due to php.net/function.hexdec on PHP 7.4 #798
Comments
I'm facing the same problem. Is it possible to add this correction around line 838 of
|
Perharps a better alternative will be to replace outdated PEAR Mail_mimeDecode package, by a new alternative solution. See https://stackoverflow.com/questions/4721410/best-way-to-handle-email-parsing-decoding-in-php I suggest eXorus answer with his solution https://github.com/php-mime-mail-parser/php-mime-mail-parser |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@masiorama @tiktaz can you guys let me know how to reproduce it. I'm unable to get this error with PHP 7.4 |
Hi @cytopia neither I was able to reproduce the error. Since then (when I opened the issue) I migrated my dev env to WSL2, installing Devilbox inside Ubuntu (on WSL2), and I have the previous env no more. What I can say is that building up the same stack I see no error in the mail section of Devilbox dashboard. |
Alright, I'll give it a few more days to wait for @tiktaz and check if he's still facing this issue and if not I'm gonna close this one. |
I've been experiencing this issue for some time with PHP7.4 and still am after updating to Devilbox 1.10.1 today. Thanks |
@lesteak Can you provide instructions on how one could reproduce this issue. |
Sorry I quit my last job and I'm not using Devilbox for the new one. |
@llaville I had a look, unfortunately it's not gonna do it, as I do need support starting from PHP 5.3 onwards. |
I am going to close this issue due to not being able to reproduce it (might have gone away with recent updates). What I tried:
I've never encountered the deprecation warning. If you encounter this again, please let me know exactly how it was triggered |
@massiws can you reproduce this behaviour with the "Send test Email" feature in the intranet? |
It showed up again to me too. |
I would require a command or a php snippet with which I can produce an email that triggers this error. |
@masiorama what I am suggesting is any means of creating such an email. Whenever I create emails with UTF-8 chars they all display nicely on the vhost page. I don't see the errors, thus I can't really troubleshoot it. So all I need is the piece of code with which you send the email. Does this make sense now? |
So you mean the deprecation is triggered by any email already trapped by devilbox? If so tomorrow I will check if the multiple messages are gone if I remove all emails, and I will dig a bit deeper and keep you posted, thanks. |
Yes, it is seemlingly the "view/show emails" page. Also @massiws mentioned that those mails were send by other means and the error is shown on that page. |
@cytopia indeed removing previous trapped emails the deprecations are gone and, as @massiws said, using "send test email" does not trigger them. In my case the trapped emails were not customized "password recovery" email sent by laravel instance configured like this:
|
I don't have a laravel setup (at least not one with a registration page). Can you share the mbox file from inside the container at |
ISSUE TYPE
I switched to PHP 7.4 the ambient for some of my projects, and visiting devilbox/mail dashboad I notice a lot of warning like this:
Checking the php function it is stated that
hexdec() will ignore any non-hexadecimal characters it encounters. As of PHP 7.4.0 supplying any invalid characters is deprecated.
Right now I have not time to investigate a bit more.
Will write down more infos as soon as possible.
Cheers!
The text was updated successfully, but these errors were encountered: