]> granicus.if.org Git - php/commitdiff
Do not add dl function, if libdl is not present.
authorSascha Schumann <sas@php.net>
Wed, 29 Mar 2000 17:33:44 +0000 (17:33 +0000)
committerSascha Schumann <sas@php.net>
Wed, 29 Mar 2000 17:33:44 +0000 (17:33 +0000)
PR: #3947

Declare user_shutdown_function_name() as static to kill warning.

ext/standard/basic_functions.c

index 6377c5574d6a57a64e7d7b5b8c6a86caeff18a37..91052accb0ae9aa79e80351b6bd4c5be145bd860 100644 (file)
@@ -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();