sas Mon Feb 26 12:26:07 2001 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
Provide proper function aliases, if the sendmail functions
don't exist.
Submitted by: Nadir Amra <[EMAIL PROTECTED]>
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.309
php4/ext/standard/basic_functions.c:1.310
--- php4/ext/standard/basic_functions.c:1.309 Sun Feb 25 22:07:16 2001
+++ php4/ext/standard/basic_functions.c Mon Feb 26 12:26:07 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.309 2001/02/26 06:07:16 andi Exp $ */
+/* $Id: basic_functions.c,v 1.310 2001/02/26 20:26:07 sas Exp $ */
#include "php.h"
#include "php_main.h"
@@ -503,8 +503,13 @@
PHP_FE(diskfreespace, NULL)
/* functions from mail.c */
+#ifdef HAVE_SENDMAIL
PHP_FE(mail, NULL)
PHP_FE(ezmlm_hash, NULL)
+#else
+ PHP_FALIAS(mail, warn_not_available, NULL)
+ PHP_FALIAS(ezmlm_hash, warn_not_available, NULL)
+#endif
/* functions from syslog.c */
#ifdef HAVE_SYSLOG_H
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]