summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir MethodRemi Collet2020-02-031-3/+7
| |/ /
* | | add ZipArchive::registerProgressCallback and ↵Remi Collet2020-01-311-0/+156
| | | | | | | | | | | | ZipArchive::registerCancelCallback methods
* | | Merge branch 'PHP-7.4'Remi Collet2020-01-291-0/+24
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: zip: more constants
| * | zip: more constantsRemi Collet2020-01-291-0/+24
| | |
* | | - bump zip extension version to 1.16.0 - add ZipArchive::setMtimeName and ↵Remi Collet2020-01-281-0/+65
| | | | | | | | | | | | ZipArchive::setMtimeIndex methods
* | | Merge branch 'PHP-7.4'Remi Collet2020-01-271-0/+6
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: - bump zip extension version to 1.15.6 - add ZipArchive::LIBZIP_VERSION - skip bug53885.phpt with libzip 1.6.0 (empty file is no more valid archive)
| * | - bump zip extension version to 1.15.6Remi Collet2020-01-271-0/+6
| | | | | | | | | | | | | | | - add ZipArchive::LIBZIP_VERSION - skip bug53885.phpt with libzip 1.6.0 (empty file is no more valid archive)
* | | Merge branch 'PHP-7.4'Remi Collet2020-01-241-0/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Add ZipArchive::CM_LZMA2 constant (since libzip 1.6.0)
| * | Add ZipArchive::CM_LZMA2 constant (since libzip 1.6.0)Remi Collet2020-01-241-0/+3
| | |
* | | Use RETURN_THROWS() after zend_fetch_resource*()Máté Kocsis2020-01-031-7/+7
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-031-3/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Remove unnecessary strncpy in zip
| * | Remove unnecessary strncpy in zipNikita Popov2020-01-031-3/+2
| | | | | | | | | | | | | | | | | | This causes a warning on GCC 9 and is unnecessary to boot: We only use "cwd" for the open_basedir check, so we can just as well pass in the original string.
* | | Use RETURN_THROWS() after zend_value_error()Máté Kocsis2019-12-311-1/+1
| | |
* | | Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-47/+47
| | | | | | | | | | | | Except for some bigger ones: reflection, sodium, spl
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-10-081-2/+6
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #78641: addGlob can modify given remove_path value
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-10-081-2/+6
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #78641: addGlob can modify given remove_path value
| | * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-10-081-2/+6
| | |\ | | | | | | | | | | | | | | | | * PHP-7.2: Fix #78641: addGlob can modify given remove_path value
| | | * Fix #78641: addGlob can modify given remove_path valueChristoph M. Becker2019-10-081-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `remove_path` points to the given string, so we must not modify it. Instead we use a duplicate, if we need the modification. We may want to switch to `zend_string`s in master.
* | | | Fix #72374: remove_path strips first char of filenametyage2019-10-021-2/+3
| | | |
* | | | Elevate warning to ValueError for invalid ZipArchive objectChristoph M. Becker2019-09-291-2/+2
| | | |
* | | | Add missing zend_parse_parameters_none()Christoph M. Becker2019-09-291-0/+20
| | | |
* | | | Add ZipArchive arginfo stubsChristoph M. Becker2019-09-291-215/+40
| | | |
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-09-291-0/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix build for libzip < 0.11.2
| * | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-09-291-0/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fix build for libzip < 0.11.2
| | * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-09-291-0/+2
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.2: Fix build for libzip < 0.11.2
| | | * Fix build for libzip < 0.11.2Christoph M. Becker2019-09-291-0/+2
| | | | | | | | | | | | | | | | | | | | We must not define method entries, if the actual method definitions or the arginfo structures are not defined.
* | | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | | | | | | | | | | | | | Closes GH-4732.
* | | | Merge branch 'PHP-7.4'Remi Collet2019-09-091-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-7.4: zip edxtension is now 1.15.5 fix type consistency after 8f897f1040f00210f4a5cdd82a88a1fe3e558955
| * | | fix type consistency afterRemi Collet2019-09-091-3/+3
| | | | | | | | | | | | | | | | 8f897f1040f00210f4a5cdd82a88a1fe3e558955
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-08-261-23/+42
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Replace deprecated libzip functions
| * | | Replace deprecated libzip functionsChristoph M. Becker2019-08-261-23/+42
| | | | | | | | | | | | | | | | | | | | | | | | We replace all deprecated libzip functions with their recommended substitutes, and add proper comment length checks including a test case.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-08-131-11/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove dead code
| * | | Remove dead codeChristoph M. Becker2019-08-131-11/+0
| | | |
* | | | Added zip arginfo stubsStephen Reay2019-08-131-45/+1
| | | |
* | | | Add do...while(0) for RETURN_* and ZVAL_* APIstwosee2019-06-121-1/+1
| | | | | | | | | | | | | | | | Closes GH-4255.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-061-13/+13
|\ \ \ \ | |/ / /
| * | | php_zip_pcre: Match pattern before stating for directoriesNikita Popov2019-06-061-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For two reasons: First, it's generally cheaper to match a regex than perform a stat (especially on Windows). Second, it will not fail on concurrent modification of a directory in parts that are not matched by the pattern, such as the spurious failure in ext/zip/tests/bug72660.phpt.
| * | | Cheaper checks for exceptions thrown from __toString()Dmitry Stogov2019-06-061-12/+15
| | | |
| * | | Allow exceptions in __toString()Nikita Popov2019-06-051-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
| * | | Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function ↵Dmitry Stogov2019-04-241-4/+4
| | | | | | | | | | | | | | | | by reference
* | | | Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function ↵Dmitry Stogov2019-04-241-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | by reference
| * | | | Use ZEND_TRA_ASSIGN_REF_... macros for by reference arguments of internal ↵Dmitry Stogov2019-04-241-4/+4
| |/ / / | | | | | | | | | | | | functions.
* | | | Merge branch 'PHP-7.4'Gabriel Caruso2019-04-141-8/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove HAVE_* for always available extensions
| * | | Remove HAVE_* for always available extensionsGabriel Caruso2019-04-141-8/+0
| | | |
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-03-171-3/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove unused variables
| * | | Remove unused variablesFabien Villepinte2019-03-171-3/+0
| | | |
* | | | Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-48/+15
|/ / / | | | | | | | | | insted of zval(s).
* | | Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | | Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
| | |
* | | Implement typed propertiesNikita Popov2019-01-111-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>