Commit graph

200 commits

Author SHA1 Message Date
Christoph Michael Becker
988d0167dc Fix #80318: The $method property of ZipArchive::setEncryptionIndex type should be int
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351247 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 22:50:51 +00:00
Christoph Michael Becker
b95d28e6ec Fix return types
Functions which return false on failure should state that in their
signature as well.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +00:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
c6b9dbcba6 Fix the return value of \zip_open()
zip_open() can also return false [0].

[0] https://github.com/php/php-src/blob/php-7.4.4/ext/zip/php_zip.c#L1160

Based on a patch contributed by Thomas Gerbet <thomas.gerbet@enalean.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351062 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-29 18:32:31 +00:00
Christoph Michael Becker
3f1917852e Fix #80292: Incorrect use of code in manual's example codes
While not really a bug, that line is misleading.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351027 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-28 13:10:39 +00:00
Remi Collet
002b7dd50a fix parameters name to match reflection one as it matters with 8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350617 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-23 07:41:40 +00:00
Remi Collet
462e369806 fix parameters name to match reflection one as it matters with 8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350616 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-23 07:40:44 +00:00
George Peter Banyard
a1b24d4e73 See also section should be the last section.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350552 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-12 17:23:15 +00:00
Remi Collet
e5d37ea6a0 add ZipArchive::CM_ZSTD constant
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350185 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-21 13:06:39 +00:00
Remi Collet
69795fb4c7 document zip procedural API as deprecated in 8.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350175 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-20 10:26:13 +00:00
Christoph Michael Becker
6318fc9e8b Mark ZipArchive methods as public
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350084 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-25 20:44:07 +00:00
Remi Collet
ed67344bbd new constant in zip 1.19.0 / php 8.0.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350037 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-15 14:03:21 +00:00
Yoshinari Takaoka
520d8f432f set svn properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350012 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-05 19:23:51 +00:00
Remi Collet
e80d8de42c new method in zip 1.19.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350010 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-05 15:22:10 +00:00
Christoph Michael Becker
ba38a95b6a Fix other typos
Detected by codespell

Patch provided by tandre@php.net.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349710 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-27 06:53:54 +00:00
Christoph Michael Becker
aebf045bfb Fix miscellaneous typos
Detected by codespell

Patch provided by tandre@php.net.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349708 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-27 06:43:55 +00:00
Christoph Michael Becker
f5c5171d6f Fix #79418: configure --enable-zip results in failure
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349534 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-27 16:32:30 +00:00
Remi Collet
0ba5122adc ZipArchive::open comment about empty file not valid any more
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349502 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-20 13:45:41 +00:00
Remi Collet
2d40b914f5 typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349496 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-19 06:58:50 +00:00
Remi Collet
1fb3a5e8f4 doc for zip 1.18.1
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349489 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-18 13:22:47 +00:00
Remi Collet
b709972b45 add another ex from #79157
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349488 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-18 12:35:51 +00:00
Remi Collet
4dc46c4a95 ZipArchive::addGlob/Pattern retrun array of added files
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349487 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-18 12:24:31 +00:00
Remi Collet
0ca029646c ZipArchive::open accept ZipArchive::RDONLY mode
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349472 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-16 13:05:02 +00:00
Christoph Michael Becker
0d36c0ae79 Fix style
According to the style guidelines[1], the indentation should be one space, and
personalization ("you") is to be avoided.

[1] <http://doc.php.net/tutorial/style.php>

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349463 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-15 23:20:09 +00:00
Remi Collet
c870cfa314 ZipArchive::extractTo: add notice about default permissions, following #79383
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349461 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-15 17:55:23 +00:00
Remi Collet
93ae6ca0ae ZipArchive::{add,replace}File: start/length paramaters are now used
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349360 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-09 13:27:07 +00:00
Christoph Michael Becker
0fc2058daf Fix typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349351 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-08 10:05:38 +00:00
Christoph Michael Becker
337876a8bf Fix order of sections
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349350 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-08 10:05:21 +00:00
Remi Collet
954f9dce1f fix xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349314 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 10:52:31 +00:00
Remi Collet
55b62ad140 ZipArchive::getStatusString, status and statusSys available for closed archive
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349311 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 10:39:55 +00:00
Remi Collet
f0453adf76 add lastId property to ZipArchvie
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349304 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-04 15:57:28 +00:00
Yoshinari Takaoka
c2bebb37ef fixed description and example text.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349302 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-04 10:51:01 +00:00
Yoshinari Takaoka
ad0da591b1 added svn:property
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349300 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-04 10:38:40 +00:00
Remi Collet
3306b1b1af fix default value for ZipArchive::replaceFile()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349299 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-04 08:21:08 +00:00
Remi Collet
753678e8d4 update zip requirements
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349295 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-03 15:05:42 +00:00
Remi Collet
4cb0a309c9 add ZipArchive::replaceFile() method
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349293 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-03 07:58:32 +00:00
Remi Collet
298c5edd24 add flags in options of ZipArchive::addGlob (and addPattern)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349283 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-02 16:29:25 +00:00
Remi Collet
9cbc3cf859 add flags parameter to ZipArchive::addFile
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349282 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-02 16:24:31 +00:00
Remi Collet
09bf6f612b add flags parameter to ZipArchive::addEmptyDir
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349281 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-02 16:19:48 +00:00
Remi Collet
7e49b1947f add flags parameter to ZipArchive::addFromString
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349280 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-02 16:15:06 +00:00
Remi Collet
271d8379a9 new constants in zip 1.18.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349279 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-02 16:04:12 +00:00
Remi Collet
7250e516f3 add ZipArchive::RDONLY macro
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349107 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-03 11:31:29 +00:00
Christoph Michael Becker
6eb8b7b9b1 Fix description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349093 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-02 17:06:18 +00:00
Yoshinari Takaoka
49204a8622 fixed typo.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349078 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-01 00:28:25 +00:00
Yoshinari Takaoka
af3996d6c4 added $Revision$ keyword, some svn:keywords properties.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349077 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-01 00:16:00 +00:00
Remi Collet
325d39b707 add ZipArchive::setMtimIndex example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349074 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-31 13:59:58 +00:00
Remi Collet
a5f267f0db add ZipArchive::registerCancelCallback and ZipArchive::registerProgressCallback (zip 1.17.0)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349073 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-31 13:49:05 +00:00
Remi Collet
002296ac09 ZIp: add new constants introduced in 7.4.3 / 1.16.1
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349053 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-29 13:46:11 +00:00
Remi Collet
2a9eefd1d6 ZIp: add new methods introduced in 8.0.0 / 1.16.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349052 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-29 10:50:11 +00:00
Remi Collet
07d867ba42 ZIp: add new constants introduced in 7.4.3 / 1.16.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349051 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-29 10:01:13 +00:00