Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > 66bef7efabce47f4998d4303ccb2da99 > files > 2

php-fileinfo-1.0.4-15mdv2009.1.src.rpm

--- 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