From: Marcus Boerger Date: Mon, 7 Mar 2005 08:04:47 +0000 (+0000) Subject: - Fix problem with some plain c pedantic compilers X-Git-Tag: RELEASE_0_3~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d54f897cab72c3ecd4e37cee634a85da3057b8b;p=php - Fix problem with some plain c pedantic compilers --- 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) \