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
 [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

Pull Requests

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 Dec 26 17:01:31 2024 UTC