summaryrefslogtreecommitdiff
path: root/ext/zip
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-282-1/+13
|
* Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-10-082-2/+34
|\ | | | | | | | | * PHP-7.2: Fix #78641: addGlob can modify given remove_path value
| * Fix #78641: addGlob can modify given remove_path valueChristoph M. Becker2019-10-082-2/+34
| | | | | | | | | | | | | | `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' into PHP-7.3Nikita Popov2019-05-271-1/+2
|\ \ | |/
| * Fixed bug #76345Michael Maroszek2019-05-271-1/+2
| |
| * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-158-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| * Trim trailing whitespace in *.phptPeter Kokot2018-10-144-4/+4
| |
| * Sync leading and final newlines in source code filesPeter Kokot2018-10-147-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| * Trim trailing whitespace in source code filesPeter Kokot2018-10-132-3/+3
| |
* | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-158-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | Trim trailing whitespace in *.phptPeter Kokot2018-10-143-3/+3
| |
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-147-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | Trim trailing whitespace in source code filesPeter Kokot2018-10-131-2/+2
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Remi Collet2018-10-031-1/+1
|\ \ | |/ | | | | | | * PHP-7.2: bump zip extension version
| * bump zip extension versionRemi Collet2018-10-031-1/+1
| |
* | Remove unused Git ident attributes from zip extensionPeter Kokot2018-07-2746-48/+4
| | | | | | | | | | $Id attributes were used with SVN. With Git most of the Git ident attributes in source code files are not used anymore.
* | Remove extra semicolonsGabriel Caruso2018-07-251-1/+1
| |
* | Merge branch 'PHP-7.2'Anatol Belski2018-07-131-1/+4
|\ \ | |/ | | | | | | * PHP-7.2: Improve test
| * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-07-131-1/+4
| |\ | | | | | | | | | | | | * PHP-7.1: Improve test
| | * Improve testAnatol Belski2018-07-131-1/+4
| | | | | | | | | | | | Ensure the filename is non existent indeed.
* | | Merge branch 'PHP-7.2'Anatol Belski2018-07-102-2/+26
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fix bug #76524 - ZipArchive memory leak
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-07-102-2/+26
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fix bug #76524 - ZipArchive memory leak
| | * Fix bug #76524 - ZipArchive memory leaktimurib2018-07-102-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | 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-024-4/+4
| | |
* | | Merge branch 'PHP-7.2'Anatol Belski2018-07-071-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fixed regex for checking libzip static lib
| * | Fixed regex for checking libzip static libDylan K. Taylor2018-07-071-1/+1
| | | | | | | | | | | | | | | | | | This bug caused linking issues in debug mode (see bug [#76564](https://bugs.php.net/bug.php?id=76564)) This issue affects PHP 7.2 and master.
* | | 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'Anatol Belski2018-07-031-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fixed bug #76564 ext/zip link issues
| * | Fixed bug #76564 ext/zip link issuesAnatol Belski2018-07-031-1/+1
| | | | | | | | | | | | Add zlib for linking directly, so then ext/zlib is not required.
* | | Remove old SVN keywords substitutions from the zip testsPeter Kokot2018-06-163-3/+0
| | |
* | | Merge branch 'PHP-7.2'Remi Collet2018-06-122-2/+3
|\ \ \ | |/ / | | | | | | | | | | | | * 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-122-2/+3
| | |
* | | 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-282-20/+20
| | | | | | | | | | | | 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.
* | | Merge branch 'PHP-7.2'Anatol Belski2018-05-021-1/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fix shared ext/zip build with static dependency lib
| * | Fix shared ext/zip build with static dependency libAnatol Belski2018-05-021-1/+2
| | |
| * | year++Xinchen Hui2018-01-024-4/+4
| | |
* | | Keep initialized object_handlers structures in read-only memory.Dmitry Stogov2018-03-141-3/+3
| | |
* | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-2018-18/+18
| | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | Remove empty sections in testsGabriel Caruso2018-02-141-3/+1
| | |
* | | Cleanup some tests - remove unnecessary sectionsStanislav Malyshev2018-02-042-14/+0
| | | | | | | | | | | | Also unify credits - all are under --CREDITS-- now.
* | | Trailing whitespaces on ext/*Gabriel Caruso2018-01-043-7/+7
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | Trailing whitespacesGabriel Caruso2018-01-03100-454/+454
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | year++Xinchen Hui2018-01-024-4/+4
| | |