mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user