From 1be62560c5cdd52c7c5cfe61dc9db0b3281583e0 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 6 Dec 2005 00:27:01 +0000 Subject: [PATCH] 1.0.2 --- ext/fileinfo/fileinfo.c | 5 +++++ ext/fileinfo/package.xml | 6 +++--- 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. PHP stable - 1.0.1 - 2005-11-24 + 1.0.2 + 2005-12-05 - 1) PHP 5.1.0 Compatibility + 1) Allow build against 5.1 and 5.0 versions of PHP -- 2.40.0