From 1d54f897cab72c3ecd4e37cee634a85da3057b8b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 7 Mar 2005 08:04:47 +0000 Subject: [PATCH] - Fix problem with some plain c pedantic compilers --- ext/spl/spl_directory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 869456c42b..cccc9867a2 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -1196,9 +1196,11 @@ static int spl_file_object_call(INTERNAL_FUNCTION_PARAMETERS, spl_file_object *i } /* }}} */ #define FileFunctionCall(func_name, arg2) \ +{ \ zend_function *func_ptr; \ zend_hash_find(EG(function_table), #func_name, sizeof(#func_name), (void **) &func_ptr); \ - spl_file_object_call(INTERNAL_FUNCTION_PARAM_PASSTHRU, intern, func_ptr, arg2) + spl_file_object_call(INTERNAL_FUNCTION_PARAM_PASSTHRU, intern, func_ptr, arg2); \ +} /* {{{ FileFunction */ #define FileFunction(func_name) \ -- 2.50.1