From 1736cb4759d6d00880cac7b2d8cce41f76cb09cf Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sat, 19 Nov 2005 21:41:08 +0000 Subject: [PATCH] PHP-5.1 compatibility --- ext/fileinfo/fileinfo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c index c992ff910b..ac85c6f7ba 100644 --- a/ext/fileinfo/fileinfo.c +++ b/ext/fileinfo/fileinfo.c @@ -100,10 +100,8 @@ PHP_FILEINFO_API zend_object_value finfo_objects_new(zend_class_entry *class_typ zend_object_value retval; struct finfo_object *intern; - intern = emalloc(sizeof(struct finfo_object)); + intern = ecalloc(1, sizeof(struct finfo_object)); intern->zo.ce = class_type; - intern->zo.in_get = 0; - intern->zo.in_set = 0; intern->zo.properties = NULL; intern->ptr = NULL; -- 2.50.1