summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/fileinfo/fileinfo.c5
-rw-r--r--ext/fileinfo/package.xml6
2 files changed, 8 insertions, 3 deletions
diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c
index 1ddc9ca3a1..04fe848d84 100644
--- a/ext/fileinfo/fileinfo.c
+++ b/ext/fileinfo/fileinfo.c
@@ -103,7 +103,12 @@ PHP_FILEINFO_API zend_object_value finfo_objects_new(zend_class_entry *class_typ
intern = ecalloc(1, sizeof(struct finfo_object));
intern->zo.ce = class_type;
intern->zo.properties = NULL;
+#if ZEND_EXTENSION_API_NO > 220050000
intern->zo.guards = NULL;
+#else
+ intern->zo.in_get = 0;
+ intern->zo.in_set = 0;
+#endif
intern->ptr = NULL;
retval.handle = zend_objects_store_put(intern, finfo_objects_dtor, NULL, NULL TSRMLS_CC);
diff --git a/ext/fileinfo/package.xml b/ext/fileinfo/package.xml
index 48711ed4f9..fd3fdab384 100644
--- a/ext/fileinfo/package.xml
+++ b/ext/fileinfo/package.xml
@@ -21,10 +21,10 @@ file and for text files proper language encoding.
<license>PHP</license>
<release>
<state>stable</state>
- <version>1.0.1</version>
- <date>2005-11-24</date>
+ <version>1.0.2</version>
+ <date>2005-12-05</date>
<notes>
- 1) PHP 5.1.0 Compatibility
+ 1) Allow build against 5.1 and 5.0 versions of PHP
</notes>
<filelist>
<file role="src" name="config.m4"/>