From: Andi Gutmans Date: Sat, 27 May 2000 18:55:11 +0000 (+0000) Subject: - I'm not sure if PHP_NOT_IN_THIS_BUILD is the way to handle these X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afccb5861212d0931fcf61ef8f4e4141700025f2;p=php - I'm not sure if PHP_NOT_IN_THIS_BUILD is the way to handle these - functions but in any case I have changed it to PHP_NOT_IN_THIS_BUILD() --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 7277ac99ce..838d28ed73 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -872,7 +872,7 @@ PHP_FUNCTION(putenv) } } #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif } /* }}} */ diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 801282bc76..3cc610c502 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -179,7 +179,7 @@ PHP_FUNCTION(crypt) return_value->type = IS_STRING; pval_copy_constructor(return_value); #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif /* HAVE_CRYPT */ } /* }}} */ diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index b00937393c..3626d29e21 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -686,7 +686,7 @@ PHP_FUNCTION(strftime) #if HAVE_STRFTIME _php_strftime(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif } /* }}} */ @@ -698,7 +698,7 @@ PHP_FUNCTION(gmstrftime) #if HAVE_STRFTIME _php_strftime(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1); #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif } /* }}} */ diff --git a/ext/standard/dns.c b/ext/standard/dns.c index 181d450b5d..6bad85efbf 100644 --- a/ext/standard/dns.c +++ b/ext/standard/dns.c @@ -207,7 +207,7 @@ PHP_FUNCTION(checkdnsrr) } RETURN_TRUE; #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif } /* }}} */ @@ -315,7 +315,7 @@ PHP_FUNCTION(getmxrr) } RETURN_TRUE; #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif } /* }}} */ diff --git a/ext/standard/file.c b/ext/standard/file.c index 17e00ed7cd..f9f230dce1 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -877,7 +877,7 @@ PHP_FUNCTION(socket_set_timeout) php_sockset_timeout(socketd, &t); RETURN_TRUE; #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif /* HAVE_SYS_TIME_H */ } diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c index 39a85726cc..6fe9d18c3b 100644 --- a/ext/standard/microtime.c +++ b/ext/standard/microtime.c @@ -134,7 +134,7 @@ PHP_FUNCTION(getrusage) PHP_RUSAGE_PARA(ru_stime.tv_sec); #undef PHP_RUSAGE_PARA #else - PHP_NOT_IN_THIS_BUILD; + PHP_NOT_IN_THIS_BUILD(); #endif /* HAVE_GETRUSAGE */ } diff --git a/main/php.h b/main/php.h index db2e966091..3be9d6af67 100644 --- a/main/php.h +++ b/main/php.h @@ -367,7 +367,7 @@ PHPAPI int cfg_get_string(char *varname, char **result); #endif -#define PHP_NOT_IN_THIS_BUILD { \ +#define PHP_NOT_IN_THIS_BUILD() { \ php_error(E_WARNING, "%s: not supported in this PHP build",get_active_function_name()); \ RETURN_FALSE; \ }