summaryrefslogtreecommitdiff
path: root/ext/standard/mail.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-10-13 04:15:09 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-10-13 04:15:09 +0000
commit3158ff714ec9e4f1110a0b684e45b867c8cc6718 (patch)
tree785d3a00564b3ab9804a1d90bda49ba7ee5e59cc /ext/standard/mail.c
parentf27387c68cd1533c1aa2114208ae9a2ed5172be5 (diff)
downloadphp-git-3158ff714ec9e4f1110a0b684e45b867c8cc6718.tar.gz
Remove sendmail patch check.
Diffstat (limited to 'ext/standard/mail.c')
-rw-r--r--ext/standard/mail.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c
index 0585be99a7..8556eff180 100644
--- a/ext/standard/mail.c
+++ b/ext/standard/mail.c
@@ -198,31 +198,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 (VCWD_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. */