-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
ext/imap/tests/bug77020.phpt tries to send mail #11629
Comments
Setting sendmail_path would work for Linux. But the WIN32 code seems to take a different path unfortunately. |
Why there is an |
The extension needs to be deprecated, really. It's a wrapper around the old UW-IMAP c-client library that has been abandoned for 15 years. Asterisk (the VOIP server) is the only other project I know of that still depends on it. One thing at a time though. |
Description
I noticed today that this test actually tries to send mail:
In the docs, the
imap_mail()
function is a bit mysterious, but if you readext/imap/php_imap.c
, then basically, it runssendmail
:I was a little surprised to see it try to relay through my mail server (which is what
/usr/bin/sendmail
is configured to do by default):I can probably fix this in our distribution package by setting
sendmail_path = /bin/true
or something like that, but I think it's a big enough surprise to report. A similar solution might work in the test itself, but I don't know what we could use on Windows.PHP Version
php-8.2.8
Operating System
No response
The text was updated successfully, but these errors were encountered: