Skip to content

Commit 06ff0e8

Browse files
committed
move comment
1 parent a3bfd4a commit 06ff0e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/zip/php_zip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,9 +1452,6 @@ PHP_METHOD(ZipArchive, open)
14521452
ze_obj->filename = NULL;
14531453
}
14541454

1455-
/* reduce BC break introduce in libzip 1.6.0
1456-
"Do not accept empty files as valid zip archives any longer" */
1457-
14581455
/* open for write without option to empty the archive */
14591456
#ifdef ZIP_RDONLY
14601457
if ((flags & (ZIP_TRUNCATE | ZIP_RDONLY)) == 0) {
@@ -1466,6 +1463,9 @@ PHP_METHOD(ZipArchive, open)
14661463
/* exists and is empty */
14671464
if (VCWD_STAT(resolved_path, &st) == 0 && st.st_size == 0) {
14681465
php_error_docref(NULL, E_DEPRECATED, "Using empty file as ZipArchive is deprecated");
1466+
1467+
/* reduce BC break introduce in libzip 1.6.0
1468+
"Do not accept empty files as valid zip archives any longer" */
14691469
flags |= ZIP_TRUNCATE;
14701470
}
14711471
}

0 commit comments

Comments
 (0)