summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix Bug #79296 ZipArchive::open fails on empty fileRemi Collet2020-03-201-0/+15
|
* Fix #79315 ZipArchive::addFile doesn't honor start/length parametersRemi Collet2020-02-281-1/+2
|
* 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.
* | 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.
* | Merge branch 'PHP-7.2'Anatol Belski2018-07-101-2/+5
|\ \ | |/ | | | | | | * PHP-7.2: Fix bug #76524 - ZipArchive memory leak
| * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-07-101-2/+5
| |\ | | | | | | | | | | | | * PHP-7.1: Fix bug #76524 - ZipArchive memory leak
| | * Fix bug #76524 - ZipArchive memory leaktimurib2018-07-101-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Bugfix #76524: Free up zip internal state and adjust the tests for Windows Bugfix #76524: Fix possible use after free for libzip 1.3.1 Bugfix #76524: Make the test independent of platform
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Fixed incorrrecr zval_dtor() usage to replace value of argument passed by ↵Dmitry Stogov2018-07-051-2/+2
| | | | | | | | | | | | reference, that may lead to memory leaks.
* | | Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-5/+5
| | | | | | | | | | | | | | | | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
* | | Merge branch 'PHP-7.2'Remi Collet2018-06-121-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.2: NEWS Add OPSYS_CPM constant as documented and to match libzip naming
| * | Add OPSYS_CPM constant as documented and to match libzip namingRemi Collet2018-06-121-1/+2
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-311-10/+4
| | |
* | | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-15/+15
| | | | | | | | | | | | where we sure about string persistence.
* | | Avoid useless checks, using zend_string_efree(), in cases where the string ↵Dmitry Stogov2018-05-081-2/+2
| | | | | | | | | | | | is known to be a temporary allocated zend_string.
* | | Keep initialized object_handlers structures in read-only memory.Dmitry Stogov2018-03-141-3/+3
| | |
* | | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Merge branch 'PHP-7.2'Remi Collet2017-12-191-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.2: NEWS display headers (buildtime) and library (runtime) versions in phpinfo (libzip >= 1.3.1)
| * | display headers (buildtime) and library (runtime) versions in phpinfo ↵Remi Collet2017-12-191-0/+5
| | | | | | | | | | | | (libzip >= 1.3.1)
* | | Cleanup type conversionDmitry Stogov2017-12-071-6/+3
| | |
* | | Add zend_object_alloc() APINikita Popov2017-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using ecalloc() to create objects is expensive, because the dynamic-size memset() is unreasonably slow. Make sure we only zero the main object structure with known size, as the properties are intialized separately anyway. Technically we do not need to zero the embedded zend_object structure either, but as long as the memset argument is constant, a couple more bytes don't really matter.
* | | Merge branch 'PHP-7.2'Remi Collet2017-11-201-2/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Better fix bug #75540 Segfault with libzip 1.3.1 - only 1.3.1 is affected - fix use after free
| * | Merge branch 'PHP-7.1' into PHP-7.2Remi Collet2017-11-201-2/+3
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Better fix bug #75540 Segfault with libzip 1.3.1 - only 1.3.1 is affected - fix use after free
| | * Merge branch 'PHP-7.0' into PHP-7.1Remi Collet2017-11-201-2/+3
| | |\ | | | | | | | | | | | | | | | | * PHP-7.0: Better fix bug #75540 Segfault with libzip 1.3.1 - only 1.3.1 is affected - fix use after free
| | | * Better fix bug #75540 Segfault with libzip 1.3.1Remi Collet2017-11-201-2/+3
| | | | | | | | | | | | | | | | | | | | - only 1.3.1 is affected - fix use after free
* | | | Merge branch 'PHP-7.2'Remi Collet2017-11-201-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.2: NEWS NEWS NEWS fix bug #75540 Segfault with libzip 1.3.1
| * | | Merge branch 'PHP-7.1' into PHP-7.2Remi Collet2017-11-201-0/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | * PHP-7.1: NEWS NEWS fix bug #75540 Segfault with libzip 1.3.1
| | * | Merge branch 'PHP-7.0' into PHP-7.1Remi Collet2017-11-201-0/+3
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | * PHP-7.0: NEWS fix bug #75540 Segfault with libzip 1.3.1
| | | * fix bug #75540 Segfault with libzip 1.3.1Remi Collet2017-11-201-0/+3
| | | |
* | | | Enable and fix printf() format warningsNikita Popov2017-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add _unchecked() variants of zend_spprintf and zend_strpprintf for cases where we specifically want to disable these checks, such as use of %H.
* | | | Fix remaining signedness warningsAnatol Belski2017-11-141-1/+1
| | | |
* | | | Patch core for PCRE2 supportAnatol Belski2017-11-131-9/+16
| | | | | | | | | | | | | | | | RFC https://wiki.php.net/rfc/pcre2-migration
* | | | Use interned strings for "magic" property of internal classes. (not copyied ↵Dmitry Stogov2017-11-011-2/+7
| | | | | | | | | | | | | | | | into SHM)
* | | | Move cwd_state and path related routines to size_tAnatol Belski2017-07-271-4/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having `int` there is no real profit in the size or speed, while unsigned improves security and overall integration. ZPP supplied strings can be then accepted directly and structs can be still handled with smaller unsigned types for size reasons, which is safe. Yet some related places are to go. basic move tsrm_realpath_r to size_t fix conditions and sync with affected places touch ocurrences of php_sys_readlink usage follow up on phar path handling remove duplicated check move zend_resolve_path and related pieces to size_t touch yet resolve path related places remove cast missing pieces missing piece yet cleanups for php_sys_readlink for ssize_t fix wrong return
* | | ZipArchive implements countable, added ZipArchive::count() methodRemi Collet2017-07-101-0/+28
| | |
* | | Fixed Bug #73803 Reflection of ZipArchive does not show public propertiesRemi Collet2017-03-211-0/+3
| | |
* | | Zip: add support for encrypted archiveRemi Collet2017-03-021-14/+109
|/ /
* | Merge branch 'PHP-7.0' into PHP-7.1Remi Collet2017-03-011-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: make type consistent with glob_t.gl_pathc
| * make type consistent with glob_t.gl_pathcRemi Collet2017-03-011-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Stanislav Malyshev2017-01-151-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: Update more functions with path check
| * Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2017-01-151-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: Update more functions with path check
| | * Update more functions with path checkStanislav Malyshev2017-01-151-1/+1
| | |
| | * More string length checks & fixesStanislav Malyshev2016-11-031-3/+3
| | |
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2017-01-061-5/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fix #70103: Fix bug 70103 when ZTS is enabled
| * | Fix #70103: Fix bug 70103 when ZTS is enabledMitch Hagstrand2017-01-061-5/+5
| | | | | | | | | | | | Used snprintf to copy the basename string before it is freed
* | | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-061-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.0: Fix #70103: ZipArchive::addGlob ignores remove_all_path option news entry for PR #1430