ze_obj->filename = NULL;
}
- /* reduce BC break introduce in libzip 1.6.0
- "Do not accept empty files as valid zip archives any longer" */
-
/* open for write without option to empty the archive */
#ifdef ZIP_RDONLY
if ((flags & (ZIP_TRUNCATE | ZIP_RDONLY)) == 0) {
/* exists and is empty */
if (VCWD_STAT(resolved_path, &st) == 0 && st.st_size == 0) {
php_error_docref(NULL, E_DEPRECATED, "Using empty file as ZipArchive is deprecated");
+
+ /* reduce BC break introduce in libzip 1.6.0
+ "Do not accept empty files as valid zip archives any longer" */
flags |= ZIP_TRUNCATE;
}
}