summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-03-29 17:33:44 +0000
committerSascha Schumann <sas@php.net>2000-03-29 17:33:44 +0000
commit6c8f9bf3b499f481062b02f7039b07062bb6644c (patch)
tree0c7f51712c2ed064963ddeb82482fbfcf81e6666 /ext/standard/basic_functions.c
parente9d126a7d3382f70b63d5544a043709dad0cfd38 (diff)
downloadphp-git-6c8f9bf3b499f481062b02f7039b07062bb6644c.tar.gz
Do not add dl function, if libdl is not present.
PR: #3947 Declare user_shutdown_function_name() as static to kill warning.
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c4
1 files changed, 3 insertions, 1 deletions
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();