--- fileinfo.c 2006-11-07 22:18:51.000000000 +0100 +++ fileinfo.c.oden 2009-02-17 22:52:55.000000000 +0100 @@ -120,6 +120,15 @@ PHP_FILEINFO_API zend_object_value finfo /* {{{ finfo_class_functions */ +#if ZEND_MODULE_API_NO >= 20060613 +function_entry finfo_class_functions[] = { + ZEND_ME_MAPPING(finfo, finfo_open, NULL, 0) + ZEND_ME_MAPPING(set_flags, finfo_set_flags,NULL, 0) + ZEND_ME_MAPPING(file, finfo_file, NULL, 0) + ZEND_ME_MAPPING(buffer, finfo_buffer, NULL, 0) + {NULL, NULL, NULL, NULL} +}; +#else function_entry finfo_class_functions[] = { #if PHP_VERSION_ID >= 50200 ZEND_ME_MAPPING(finfo, finfo_open, NULL, ZEND_ACC_PUBLIC) @@ -134,6 +143,7 @@ function_entry finfo_class_functions[] = #endif {NULL, NULL, NULL} }; +#endif /* }}} */ #else