]> granicus.if.org Git - php/commitdiff
The sendmail_path executable check breaks setups that use parameters
authorStanislav Malyshev <stas@php.net>
Mon, 1 Sep 2003 08:18:31 +0000 (08:18 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 1 Sep 2003 08:18:31 +0000 (08:18 +0000)
for sendmail - including the default setup - so I'm disabling it for now.

ext/standard/mail.c

index d47e14f23e2a1445f6ca597bdbc3885bce9a5321..1d5805e930a7dcbf528b7834773de1769662f0ce 100644 (file)
@@ -197,10 +197,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