php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76043 Support creating password protected archives
Submitted: 2018-03-02 08:57 UTC Modified: 2018-03-06 13:35 UTC
From: cweiske@php.net Assigned: cmb (profile)
Status: Closed Package: Zip Related
PHP Version: 7.2.3 OS:
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 !
Your email address:
MUST BE VALID
Solve the problem:
45 + 36 = ?
Subscribe to this entry?

 
 [2018-03-02 08:57 UTC] cweiske@php.net
Description:
------------
The password set via ZipArchive::setPassword() is currently only used when reading from Zip archives, not when creating new archives.

It would be nice if I was able to create password protected zip archives.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-02 19:10 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-03-02 19:10 UTC] cmb@php.net
It seems to me that is possible as of PHP 7.2.0 via
<http://www.php.net/manual/en/ziparchive.setencryptionname.php>.
 [2018-03-06 13:35 UTC] cweiske@php.net
-Status: Feedback +Status: Closed
 [2018-03-06 13:35 UTC] cweiske@php.net
Yes, it's already there. Sorry for the noise and thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 01:01:28 2024 UTC