From 6c8f9bf3b499f481062b02f7039b07062bb6644c Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Wed, 29 Mar 2000 17:33:44 +0000 Subject: [PATCH] Do not add dl function, if libdl is not present. PR: #3947 Declare user_shutdown_function_name() as static to kill warning. --- ext/standard/basic_functions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 6377c5574d..91052accb0 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -322,8 +322,10 @@ function_entry basic_functions[] = { PHP_FALIAS(join, implode, NULL) PHP_FE(sql_regcase, NULL) +#ifdef HAVE_LIBDL /* functions from dl.c */ PHP_FE(dl, NULL) +#endif /* functions from file.c */ PHP_FE(pclose, NULL) @@ -1417,7 +1419,7 @@ void user_shutdown_function_dtor(php_shutdown_function_entry *shutdown_function_ } -int user_shutdown_function_call(php_shutdown_function_entry *shutdown_function_entry) +static int user_shutdown_function_call(php_shutdown_function_entry *shutdown_function_entry) { zval retval; CLS_FETCH(); -- 2.50.1