]> granicus.if.org Git - php/commitdiff
Provide proper function aliases, if the sendmail functions
authorSascha Schumann <sas@php.net>
Mon, 26 Feb 2001 20:26:07 +0000 (20:26 +0000)
committerSascha Schumann <sas@php.net>
Mon, 26 Feb 2001 20:26:07 +0000 (20:26 +0000)
don't exist.

Submitted by: Nadir Amra <amra@us.ibm.com>

ext/standard/basic_functions.c

index bb0a0681d0371533414fe108f08957c5486c2206..cf1300270bc64d3d9531c6ab0255002fd4d527ca 100644 (file)
@@ -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