]> granicus.if.org Git - php/commitdiff
- use popen_ex directly, avoid the tsrm fetch
authorPierre Joye <pajoye@php.net>
Fri, 17 Sep 2010 10:04:28 +0000 (10:04 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 17 Sep 2010 10:04:28 +0000 (10:04 +0000)
ext/standard/mail.c

index 26ae2a8d9ae97a423d39ddac7e71f63bf921da58..92d0307d257fee026a3aceade0dd6f57484d6090 100644 (file)
@@ -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