summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/imap/php_imap.c4
-rw-r--r--ext/standard/basic_functions.c2
-rw-r--r--ext/standard/basic_functions.h1
-rw-r--r--main/php.h2
4 files changed, 4 insertions, 5 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index d1432e7fa8..a808e23a07 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -137,9 +137,9 @@ function_entry imap_functions[] = {
PHP_FE(imap_errors, NULL)
PHP_FE(imap_last_error, NULL)
#ifndef PHP_WIN32
- PHP_FALIAS(imap_mail, warn_not_available, NULL)
-#else
PHP_FE(imap_mail, NULL)
+#else
+ PHP_FALIAS(imap_mail, warn_not_available, NULL)
#endif
PHP_FE(imap_search, NULL)
PHP_FE(imap_utf7_decode, NULL)
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 13f8e1961f..1fa66fc1ca 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -2054,7 +2054,7 @@ PHP_FUNCTION(get_extension_funcs)
/* This function is not directly accessible to end users */
-PHP_FUNCTION(warn_not_available)
+PHPAPI PHP_FUNCTION(warn_not_available)
{
php_error(E_WARNING, "%s() is not supported in this PHP build", get_active_function_name());
RETURN_FALSE;
diff --git a/ext/standard/basic_functions.h b/ext/standard/basic_functions.h
index b87b58264e..ddd7507b3a 100644
--- a/ext/standard/basic_functions.h
+++ b/ext/standard/basic_functions.h
@@ -106,7 +106,6 @@ PHP_FUNCTION(get_loaded_extensions);
PHP_FUNCTION(extension_loaded);
PHP_FUNCTION(get_extension_funcs);
-PHP_FUNCTION(warn_not_available);
/* From the INI parser */
PHP_FUNCTION(parse_ini_file);
diff --git a/main/php.h b/main/php.h
index c8a0a3699c..8b6b9dd11b 100644
--- a/main/php.h
+++ b/main/php.h
@@ -382,7 +382,7 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
#endif
-PHP_FUNCTION(warn_not_available);
+PHPAPI PHP_FUNCTION(warn_not_available);
#endif