summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/zip/zip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/zip/zip.c b/ext/zip/zip.c
index dfcc99dc0a..dbc013b8c2 100644
--- a/ext/zip/zip.c
+++ b/ext/zip/zip.c
@@ -142,6 +142,8 @@ PHP_FUNCTION(zip_read)
RETURN_FALSE;
}
+ entry->fp = NULL;
+
ZEND_REGISTER_RESOURCE(return_value, entry, le_zip_entry);
}
/* }}} */