cvs: php4 /ext/standard mail.c
| From: | Ben Mansell | Date: | Wed, 21 Mar 2001 15:15:31 +0000 |
| Subject: | cvs: php4 /ext/standard mail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4752@lists.php.net to get a copy of this message | ||
joosters Wed Mar 21 07:15:31 2001 EDT
Modified files:
/php4/ext/standard mail.c
Log:
UnixWare 7.1 does not have EX_TEMPFAIL or (as far as I can tell)
a concept of a temporary failure response to pclose().
Index: php4/ext/standard/mail.c
diff -u php4/ext/standard/mail.c:1.31 php4/ext/standard/mail.c:1.32
--- php4/ext/standard/mail.c:1.31 Sun Feb 25 22:07:23 2001
+++ php4/ext/standard/mail.c Wed Mar 21 07:15:31 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mail.c,v 1.31 2001/02/26 06:07:23 andi Exp $ */
+/* $Id: mail.c,v 1.32 2001/03/21 15:15:31 joosters Exp $ */
#include <stdlib.h>
#include <ctype.h>
@@ -174,7 +174,11 @@
}
fprintf(sendmail, "\n%s\n", message);
ret = pclose(sendmail);
+#if defined(EX_TEMPFAIL)
if ((ret != EX_OK)&&(ret != EX_TEMPFAIL)) {
+#else
+ if (ret != EX_OK) {
+#endif
return 0;
} else {
return 1;