summaryrefslogtreecommitdiff
path: root/ext/zip
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-8.0'Christoph M. Becker2021-03-031-1/+1
|\ | | | | | | | | * PHP-8.0: Fix #80825: ZipArchive::isCompressionMethodSupported does not exist
| * Fix #80825: ZipArchive::isCompressionMethodSupported does not existChristoph M. Becker2021-03-031-1/+1
| | | | | | | | | | `HAVE_METHOD_SUPPORTED` should have been defined after we updated to libzip 1.7.1 months ago.
* | Change the order of properties used for var_dump(), serialize(), comparison, ↵Dmitry Stogov2021-03-012-18/+18
| | | | | | | | | | | | etc. Now properties are ordered according to their layout in zend_object structure.
* | Improve SPL directory and stat() cache using zend_srting* instead of char*Dmitry Stogov2021-02-261-4/+2
| |
* | Generate class entries from stubs for com, standard, xmlreader, xmlwriter, ↵Máté Kocsis2021-02-223-15/+68
| | | | | | | | | | | | xsl, zip, Zend Closes GH-6706
* | Add support for generating class entries from stubsMáté Kocsis2021-01-262-1/+4
| | | | | | | | | | | | Closes GH-6289 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* | Replace zend_bool uses with boolNikita Popov2021-01-151-2/+2
|/ | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Rename ``zip_ent`` parameter to ``zip_entry`` for consistencyGeorge Peter Banyard2021-01-082-4/+4
| | | | All other functions use ``zip_entry``
* ZipArchive methods do not return NULLChristoph M. Becker2021-01-033-7/+7
| | | | Closes GH-6563.
* zip extension is 1.19.2Remi Collet2020-11-231-1/+1
|
* Raise E_WARNING on PHP related errorsChristoph M. Becker2020-11-064-2/+10
| | | | | | | | | If Zip operations fails due to PHP error conditions before libzip even has been called, there is no meaningful indication what failed; the functions just return false, and the Zip status indicated that no error did occur. Therefore we raise `E_WARNING` in these cases. Closes GH-6356.
* report about ZSTD compression availabilityRemi Collet2020-11-061-0/+6
|
* only display libzip both headers/library versions if they differRemi Collet2020-11-061-4/+7
|
* bump zip extension versionRemi Collet2020-09-291-1/+1
|
* for consistency use for all *Name methodsRemi Collet2020-09-232-11/+9
|
* Run tidyNikita Popov2020-09-182-2/+2
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Generate arginfosMáté Kocsis2020-09-161-2/+2
|
* Display string default values in stubs more uniformlyMáté Kocsis2020-09-161-1/+1
| | | | Settling on using quoted string
* Display types in stubs more uniformlyMáté Kocsis2020-09-162-5/+5
| | | | | | In preparation for generating method signatures for the manual. This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.
* Consolidate new union type ZPP macro namesMáté Kocsis2020-09-111-1/+1
| | | | | | | They will now follow the canonical order of types. Older macros are left intact due to maintaining BC. Closes GH-6112
* Move custom type checks to ZPPMáté Kocsis2020-09-023-39/+33
| | | | Closes GH-6034
* Improve type declarations for Zend APIsGeorge Peter Banyard2020-08-281-1/+2
| | | | | | | | | Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
* Promote warnings in ext/zipGeorge Peter Banyard2020-08-175-109/+143
|
* Add all the missing parameter types to stubsMáté Kocsis2020-08-132-3/+11
| | | | Closes GH-5955
* Add many missing closing PHP tags to testsMáté Kocsis2020-08-097-0/+7
| | | | Closes GH-5958
* Avoid getThis() usages in zip extensionNikita Popov2020-08-061-10/+2
| | | | | There isn't any magic going on here, we can just use ZEND_THIS and assume it exists.
* Add GLOB_BRACE skipifNikita Popov2020-08-061-1/+1
|
* add ZipArchive::CM_XZ constant (in upcoming libzip 1.8.0)Remi Collet2020-07-212-1/+4
|
* Use HashTable directly instead of zvalGeorge Peter Banyard2020-07-081-13/+13
|
* Remove proto comments from C filesMax Semenik2020-07-061-120/+60
| | | | Closes GH-5758
* Avoid some unnecessary uses of no_separation=0Nikita Popov2020-07-061-2/+2
| | | | | For the rare cases where references are part of the API, construct them explicitly. Otherwise do not allow separation.
* Replace EXPECTF when possibleFabien Villepinte2020-06-296-6/+6
| | | | Closes GH-5779
* [ci skip] Various typo fixes in stub comments and CHANGES fileAyesh Karunaratne2020-06-251-1/+1
|
* Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* Deprecate the procedural API of ext/zipMáté Kocsis2020-06-2316-31/+252
| | | | Closes GH-5746
* Merge branch 'PHP-7.4'Nikita Popov2020-06-181-1/+1
|\
| * check for broken libzip versionsRemi Collet2020-06-181-1/+1
| | | | | | | | Closes GH-5738.
* | [skip ci] typoRemi Collet2020-06-081-1/+1
| |
* | move commentRemi Collet2020-06-071-3/+3
| |
* | Fixed bug #79678 Build fails due to undeclared ZIP_RDONLYRemi Collet2020-06-071-0/+4
| |
* | encode param is optionalRemi Collet2020-06-052-4/+4
| |
* | bump zip versionRemi Collet2020-06-051-1/+1
| |
* | Support libzip 1.6 on WindowsChristoph M. Becker2020-05-291-2/+3
| |
* | Generate function entries for ext/zipMáté Kocsis2020-05-204-160/+235
| | | | | | | | Closes GH-5601
* | relax test (TS issue)Remi Collet2020-05-181-2/+2
| |
* | Fix [-Wundef] warning in ZIP extensionGeorge Peter Banyard2020-05-182-3/+3
| |
* | Trim trailing whitespaces and fix code styleRod Elias2020-05-129-50/+50
| | | | | | | | Closes GH-5554.
* | Promote warning to exception in ZipArchive::extractTo()Máté Kocsis2020-05-062-4/+6
| | | | | | | | Closes GH-5516
* | Fix UNKNOWN default values in ext/zipMáté Kocsis2020-05-063-23/+23
| |
* | Fix ZPP order in ext/zipMáté Kocsis2020-05-061-74/+83
| |