]> granicus.if.org Git - php/commitdiff
- Don't forget to close the handle.
authorMarkus Fischer <mfischer@php.net>
Sat, 16 Mar 2002 15:42:34 +0000 (15:42 +0000)
committerMarkus Fischer <mfischer@php.net>
Sat, 16 Mar 2002 15:42:34 +0000 (15:42 +0000)
ext/standard/mail.c

index 68e10edc1ec6d226aa7b1c9ebdd888eb1eaab123..24127ddbf37887ffd88aa32e8be363769b76d0a6 100644 (file)
@@ -156,6 +156,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
                if (EACCES == errno) {
                        php_error(E_WARNING, "%s() permission denied; unable to execute shell to run mail delivery binary",
                                          get_active_function_name(TSRMLS_C));
+                       pclose(sendmail);
                        return 0;
                }
 #endif