]> granicus.if.org Git - php/commitdiff
- Fix problem with some plain c pedantic compilers
authorMarcus Boerger <helly@php.net>
Mon, 7 Mar 2005 08:04:47 +0000 (08:04 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 7 Mar 2005 08:04:47 +0000 (08:04 +0000)
ext/spl/spl_directory.c

index 869456c42b413a2afa8f1ff61042e87be3fd5f9a..cccc9867a2d2b52b76ee821b952c1c203c531743 100755 (executable)
@@ -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) \