Commit graph

212 commits

Author SHA1 Message Date
Kim Hallberg
289efd69f9
Fix notes section being in wrong order for reference/zip (#568) 2021-04-30 15:52:17 +02:00
Sergey Panteleev
aab33d6443
Removed references to PHP 5, PHP 7.0 (#544) 2021-04-23 11:35:26 +03:00
Christoph M. Becker
845a3263f0 Remove obsolete versions.xml entries
These methods have long been removed from PECL/zip, and apparently
never made it to ext/zip.
2021-01-17 15:39:59 +01:00
Yoshinari Takaoka
ed78b6690b Added PHP 8 into versions.xml for zip based on stubs.
Closes GH-345.
2021-01-17 15:38:28 +01:00
George Peter Banyard
d24e819ef1 Fix docs after stubs fix in php-src 2021-01-08 22:36:52 +00:00
Christoph M. Becker
e727888942 The procedural Zip API is deprecated as of PHP 8.0.0 2021-01-02 13:08:29 +01:00
Máté Kocsis
c0a030bf35 Generate zip methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-302.
2021-01-02 12:16:20 +01:00
Christoph Michael Becker
d9466fcf93 Fix #80526: Typo in the example
Closes GH-280.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352117 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-17 13:18:46 +00:00
Christoph Michael Becker
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753 Revert revision 351727 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
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