From da62e960e207c13fe937d01ba5bc434be43f9f78 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 13 Oct 2003 04:15:25 +0000 Subject: [PATCH] MFH: Remove sendmail patch check. --- ext/standard/mail.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 80b543f306..6f65165cc2 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -195,31 +195,6 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char #ifdef PHP_WIN32 sendmail = popen(sendmail_cmd, "wb"); #else - /* make sure that sendmail_path contains a valid executable, failure to do - * would make PHP abruptly exit without a useful error message. */ - { - char *s=NULL, *p; - - if ((s = strchr(sendmail_path, ' '))) { - p = estrndup(sendmail_path, s - sendmail_path); - } else { - p = sendmail_path; - } - if (access(p, X_OK)) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Permission denied: unable to execute shell to run mail delivery binary '%s'", sendmail_path); - if (extra_cmd != NULL) { - efree(sendmail_cmd); - } - if (s) { - efree(p); - } - return 0; - } - if (s) { - efree(p); - } - } - /* 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 * sure we don't catch any older errno value. */ -- 2.50.1