cvs: pecl /fileinfo fileinfo.c
| From: | Derick Rethans | Date: | Tue, 10 Oct 2006 09:52:06 +0000 |
| Subject: | cvs: pecl /fileinfo fileinfo.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6475@lists.php.net to get a copy of this message | ||
derick Tue Oct 10 09:52:06 2006 UTC
Modified files:
/pecl/fileinfo fileinfo.c
Log:
- Make fileinfo compile with PHP 5.2 as well.
http://cvs.php.net/viewvc.cgi/pecl/fileinfo/fileinfo.c?r1=1.14&r2=1.15&diff_format=u
Index: pecl/fileinfo/fileinfo.c
diff -u pecl/fileinfo/fileinfo.c:1.14 pecl/fileinfo/fileinfo.c:1.15
--- pecl/fileinfo/fileinfo.c:1.14 Tue Dec 20 19:17:00 2005
+++ pecl/fileinfo/fileinfo.c Tue Oct 10 09:52:06 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: fileinfo.c,v 1.14 2005/12/20 19:17:00 iliaa Exp $ */
+/* $Id: fileinfo.c,v 1.15 2006/10/10 09:52:06 derick Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -121,10 +121,17 @@
/* {{{ finfo_class_functions
*/
function_entry finfo_class_functions[] = {
- ZEND_ME_MAPPING(finfo, finfo_open, NULL)
- ZEND_ME_MAPPING(set_flags, finfo_set_flags,NULL)
- ZEND_ME_MAPPING(file, finfo_file, NULL)
- ZEND_ME_MAPPING(buffer, finfo_buffer, NULL)
+#if PHP_VERSION_ID >= 50200
+ ZEND_ME_MAPPING(finfo, finfo_open, NULL, ZEND_ACC_PUBLIC)
+ ZEND_ME_MAPPING(set_flags, finfo_set_flags,NULL, ZEND_ACC_PUBLIC)
+ ZEND_ME_MAPPING(file, finfo_file, NULL, ZEND_ACC_PUBLIC)
+ ZEND_ME_MAPPING(buffer, finfo_buffer, NULL, ZEND_ACC_PUBLIC)
+#else
+ ZEND_ME_MAPPING(finfo, finfo_open, NULL)
+ ZEND_ME_MAPPING(set_flags, finfo_set_flags,NULL)
+ ZEND_ME_MAPPING(file, finfo_file, NULL)
+ ZEND_ME_MAPPING(buffer, finfo_buffer, NULL)
+#endif
{NULL, NULL, NULL}
};
/* }}} */