cvs: php4 /ext/standard mail.c
| From: | Markus Fischer | Date: | Sat, 16 Mar 2002 15:42:34 +0000 |
| Subject: | cvs: php4 /ext/standard mail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10240@lists.php.net to get a copy of this message | ||
mfischer Sat Mar 16 10:42:34 2002 EDT
Modified files:
/php4/ext/standard mail.c
Log:
- Don't forget to close the handle.
Index: php4/ext/standard/mail.c
diff -u php4/ext/standard/mail.c:1.49 php4/ext/standard/mail.c:1.50
--- php4/ext/standard/mail.c:1.49 Sat Mar 16 07:45:43 2002
+++ php4/ext/standard/mail.c Sat Mar 16 10:42:34 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mail.c,v 1.49 2002/03/16 12:45:43 mfischer Exp $ */
+/* $Id: mail.c,v 1.50 2002/03/16 15:42:34 mfischer Exp $ */
#include <stdlib.h>
#include <ctype.h>
@@ -156,6 +156,7 @@
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