Bug #81044 [NEW]: ziparchive.addglob subfolder bug

From: Date: Sun, 16 May 2021 17:12:59 +0000
Subject: Bug #81044 [NEW]: ziparchive.addglob subfolder bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233852@lists.php.net to get a copy of this message
From:             matjung at hotmail dot com
Operating system: Win 10
PHP version:      7.4.19
Package:          *Directory/Filesystem functions
Bug Type:         Bug
Bug description:ziparchive.addglob subfolder bug

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 bug report at https://bugs.php.net/bug.php?id=81044&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81044&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81044&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81044&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81044&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81044&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81044&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81044&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81044&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81044&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81044&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81044&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81044&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81044&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81044&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81044&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81044&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81044&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#233852) next »