php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81044 ziparchive.addglob subfolder bug
Submitted: 2021-05-16 17:12 UTC Modified: 2021-05-30 04:22 UTC
From: matjung at hotmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *Directory/Filesystem functions
PHP Version: 7.4.19 OS: Win 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 - 12 = ?
Subscribe to this entry?

 
 [2021-05-16 17:12 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-17 10:27 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-05-17 10:27 UTC] 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-30 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 18:01:28 2024 UTC