From: Pierre Joye Date: Fri, 17 Sep 2010 10:04:28 +0000 (+0000) Subject: - use popen_ex directly, avoid the tsrm fetch X-Git-Tag: php-5.4.0alpha1~191^2~926 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c17f8ecd6a4d8fac8d5db189172a5deadb326a5f;p=php - use popen_ex directly, avoid the tsrm fetch --- diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 26ae2a8d9a..92d0307d25 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -280,7 +280,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char #endif #ifdef PHP_WIN32 - sendmail = popen(sendmail_cmd, "wb"); + sendmail = popen_ex(sendmail_cmd, "wb", NULL, NULL TSRMLS_CC); #else /* 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