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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cweiske@php.net
New email:
PHP Version: OS:

 

 [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: Thu Apr 25 11:01:30 2024 UTC