Bug #81044 [Fbk->NoF]: ziparchive.addglob subfolder bug
| From: | php-bugs at lists dot php dot net | Date: | Sun, 30 May 2021 04:22:13 +0000 |
| Subject: | Bug #81044 [Fbk->NoF]: ziparchive.addglob subfolder bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234093@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81044&edit=1
ID: 81044
Updated by: php-bugs@lists.php.net
Reported by: matjung at hotmail dot com
Summary: ziparchive.addglob subfolder bug
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *Directory/Filesystem functions
Operating System: Win 10
PHP Version: 7.4.19
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-05-17 10:27:18] cmb@php.net
Can you reproduce this with glob()[1] as well? What is the ouput
of
fsutil reparsePoint query t:
[1] <https://www.php.net/glob>
------------------------------------------------------------------------
[2021-05-16 17:12:59] matjung at hotmail dot com
Description:
------------
---
From manual page: https://php.net/ziparchive.addglob
---
Claim
If $zip->addGlob("t:/folder/*")
finds sub folders Then
ZipArchive::close(): Read error: No such file or directory in
does not work
If $zip->addGlob("t:/folder/*")
does not find any sub folders Then closing works
PHP Version 7.4.4
Windows NT 10.0 build 19042 (Windows 10) AMD64
object(ZipArchive)#1 (5) { ["status"]=> int(0) ["statusSys"]=> int(0)
["numFiles"]=> int(6)
ZLib Support enabled
Stream Wrapper compress.zlib://
Stream Filter zlib.inflate, zlib.deflate
Compiled Version 1.2.11
Linked Version 1.2.11
zip
Zip enabled
Zip version 1.15.6
Libzip headers version 1.5.2
Libzip library version 1.5.2
Test script:
---------------
see above
Expected result:
----------------
If ZipArchive contains elements it should be able to write and close it.
If a filename or folder that glob found provokes an error then ZipArchive should output an error
message indicating which filename or folder provoked the error.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81044&edit=1