helly Mon Mar 7 03:04:48 2005 EDT Modified files: /php-src/ext/spl spl_directory.c Log: - Fix problem with some plain c pedantic compilers http://cvs.php.net/diff.php/php-src/ext/spl/spl_directory.c?r1=1.32&r2=1.33&ty=u Index: php-src/ext/spl/spl_directory.c diff -u php-src/ext/spl/spl_directory.c:1.32 php-src/ext/spl/spl_directory.c:1.33 --- php-src/ext/spl/spl_directory.c:1.32 Sun Mar 6 20:00:29 2005 +++ php-src/ext/spl/spl_directory.c Mon Mar 7 03:04:47 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: spl_directory.c,v 1.32 2005/03/07 01:00:29 helly Exp $ */ +/* $Id: spl_directory.c,v 1.33 2005/03/07 08:04:47 helly Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -1196,9 +1196,11 @@ } /* }}} */ #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) \
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php