summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-221-11/+2
| | | | | | xsl, zip, Zend Closes GH-6706
* 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.
* ZipArchive methods do not return NULLChristoph M. Becker2021-01-031-2/+2
| | | | Closes GH-6563.
* Raise E_WARNING on PHP related errorsChristoph M. Becker2020-11-061-0/+4
| | | | | | | | | 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
|
* 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-021-32/+29
| | | | 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-171-83/+100
|
* 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 ZipArchive::CM_XZ constant (in upcoming libzip 1.8.0)Remi Collet2020-07-211-0/+3
|
* 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.
* [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
|
* Generate function entries for ext/zipMáté Kocsis2020-05-201-157/+59
| | | | Closes GH-5601
* Fix [-Wundef] warning in ZIP extensionGeorge Peter Banyard2020-05-181-2/+2
|
* Promote warning to exception in ZipArchive::extractTo()Máté Kocsis2020-05-061-3/+2
| | | | Closes GH-5516
* Fix UNKNOWN default values in ext/zipMáté Kocsis2020-05-061-10/+10
|
* Fix ZPP order in ext/zipMáté Kocsis2020-05-061-74/+83
|
* - add ZipArchive::EM_UNKNOWN constant - add ZipArchive::EM_TRAD_PKWARE ↵Remi Collet2020-04-021-9/+49
| | | | constant - cleanup hack for libzip 1.3.1 (have only exist for a few days) - add ZipArchive::isCompressionMethodSupported() method (libzip 1.7.0) - add ZipArchive::isEncryptionMethodSupported() method (libzip 1.7.0) - bump version to 1.19.0-dev
* use a better setter for zip_error_tRemi Collet2020-04-021-2/+2
|
* Merge branch 'PHP-7.4'Remi Collet2020-03-291-1/+2
|\ | | | | | | | | | | * PHP-7.4: NEWS Fix #79424 ext/zip: don't use gl_pathc after call to globfree
| * Merge branch 'PHP-7.3' into PHP-7.4Remi Collet2020-03-291-1/+2
| |\ | | | | | | | | | | | | * PHP-7.3: Fix #79424 ext/zip: don't use gl_pathc after call to globfree
| | * Fix #79424 ext/zip: don't use gl_pathc after call to globfreeMax Rees2020-03-291-1/+2
| | | | | | | | | | | | | | | This breaks on Linux with the musl libc, since it zeroes out gl_pathc during globfree.
* | | ZipArchive::open(): Using empty file as ZipArchive is deprecatedRemi Collet2020-03-201-2/+1
| | |
* | | Merge branch 'PHP-7.4'Remi Collet2020-03-201-0/+15
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * PHP-7.4: unneeded after fix NEWS NEWS Fix Bug #79296 ZipArchive::open fails on empty file
| * | Merge branch 'PHP-7.3' into PHP-7.4Remi Collet2020-03-201-0/+15
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.3: NEWS Fix Bug #79296 ZipArchive::open fails on empty file
| | * Fix Bug #79296 ZipArchive::open fails on empty fileRemi Collet2020-03-201-0/+15
| | |
| * | Merge branch 'PHP-7.3' into PHP-7.4Remi Collet2020-02-281-1/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
| | * Fix #79315 ZipArchive::addFile doesn't honor start/length parametersRemi Collet2020-02-281-1/+2
| | |
* | | Fix bug #77960 add compr. /encr. options for ZipArchive::addGlob and ↵Remi Collet2020-03-181-32/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ZipArchive::addPattern options parameter now accepts: - comp_method - comp_flags - enc_method - enc_password
* | | proper fixRemi Collet2020-03-091-2/+3
| | |
* | | fix use after freeRemi Collet2020-03-091-15/+15
| | |
* | | Fix #50678 files extracted by ZipArchive class lost their original modified timeRemi Collet2020-03-091-0/+7
| | |
* | | better fix for #72374Remi Collet2020-03-061-15/+8
| | |
* | | drop old constant with bad name, kept until now for BCRemi Collet2020-03-051-1/+0
| | |
* | | - make status, statusSys properties andRemi Collet2020-03-051-36/+71
| | | | | | | | | | | | ZipArchive::getStatusString() method available after archive is closed
* | | add lastId property to ZipArchiveRemi Collet2020-03-041-71/+48
| | |
* | | zip_file_replace don't need ZIP_FL_OVERWRITERemi Collet2020-03-041-1/+1
| | |
* | | - add ZipArchive::FL_RECOMPRESS, FL_ENCRYPTED, FL_OVERWRITE, FL_LOCAL, ↵Remi Collet2020-03-021-43/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | FL_CENTRAL constants - add optional "flags" parameter to ZipArchive::addEmptyDir, addFile and addFromString methods - add "flags" options to ZipArchive::addGlob and addPattern methods keeping previous behavior having FL_OVERWRITE by default - add ZipArchive::replaceFile() method
* | | Merge branch 'PHP-7.4'Remi Collet2020-02-281-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | * PHP-7.4: NEWS Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
| * \ \ Merge branch 'PHP-7.3' into PHP-7.4Remi Collet2020-02-281-1/+2
| |\ \ \ | | |/ / | |/| | | | | | | | | | * PHP-7.3: Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
| | * | Fix #79315 ZipArchive::addFile doesn't honor start/length parametersRemi Collet2020-02-281-1/+2
| | |/
| * | Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir MethodRemi Collet2020-02-031-3/+7
| | |
* | | Merge branch 'PHP-7.4'Remi Collet2020-02-031-3/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | * PHP-7.4: NEWS Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method