]> granicus.if.org Git - php/commitdiff
PHP-5.1 compatibility
authorMichael Wallner <mike@php.net>
Sat, 19 Nov 2005 21:41:08 +0000 (21:41 +0000)
committerMichael Wallner <mike@php.net>
Sat, 19 Nov 2005 21:41:08 +0000 (21:41 +0000)
ext/fileinfo/fileinfo.c

index c992ff910bd1749c8ac086f8915deb8a9175c99c..ac85c6f7bac75f0bd8ea258cb7529904ce26e056 100644 (file)
@@ -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;