Do not add dl function, if libdl is not present.

PR: #3947

Declare user_shutdown_function_name() as static to kill warning.
This commit is contained in:
Sascha Schumann 2000-03-29 17:33:44 +00:00
parent e9d126a7d3
commit 6c8f9bf3b4

View 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();