mirror of
https://github.com/php/php-src.git
synced 2024-12-27 10:50:19 +08:00
The sendmail_path executable check breaks setups that use parameters
for sendmail - including the default setup - so I'm disabling it for now.
This commit is contained in:
parent
4d06f166c4
commit
90f7a474ac
@ -200,10 +200,11 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
|
||||
#else
|
||||
/* make sure that sendmail_path contains a valid executable, failure to do
|
||||
* would make PHP abruptly exit without a useful error message. */
|
||||
if (access(sendmail_path, X_OK)) {
|
||||
/* if (access(sendmail_path, X_OK)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Permission denied: unable to execute shell to run mail delivery binary '%s'", sendmail_path);
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
/* Since popen() doesn't indicate if the internal fork() doesn't work
|
||||
* (e.g. the shell can't be executed) we explicitely set it to 0 to be
|
||||
|
Loading…
Reference in New Issue
Block a user