From: Sascha Schumann Date: Mon, 26 Feb 2001 20:26:07 +0000 (+0000) Subject: Provide proper function aliases, if the sendmail functions X-Git-Tag: php-4.0.5RC1~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95b3347d8be3b08718be3561ad52ef8c829fc591;p=php Provide proper function aliases, if the sendmail functions don't exist. Submitted by: Nadir Amra --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index bb0a0681d0..cf1300270b 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -503,8 +503,13 @@ function_entry basic_functions[] = { 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