Remi Collet
f5c1359f57
proper fix
2020-03-09 09:29:34 +01:00
Remi Collet
ef42a7afa5
fix use after free
2020-03-09 09:19:57 +01:00
Remi Collet
ed998f8a0d
Fix #50678 files extracted by ZipArchive class lost their original modified time
2020-03-09 07:09:50 +01:00
Remi Collet
be14d4e135
better fix for #72374
2020-03-06 10:27:29 +01:00
Remi Collet
541eeace59
drop old constant with bad name, kept until now for BC
2020-03-05 13:46:34 +01:00
Remi Collet
6f53605275
- make status, statusSys properties and
...
ZipArchive::getStatusString() method available after archive is closed
2020-03-05 10:57:26 +01:00
Remi Collet
0b21a89472
add lastId property to ZipArchive
2020-03-04 15:31:06 +01:00
Remi Collet
8ea3493cb6
zip_file_replace don't need ZIP_FL_OVERWRITE
2020-03-04 09:22:29 +01:00
Remi Collet
a6d86c9bba
bump zip version + NEWS
2020-03-02 16:51:55 +01:00
Remi Collet
fb8e221907
- add ZipArchive::FL_RECOMPRESS, FL_ENCRYPTED, FL_OVERWRITE, FL_LOCAL, 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
2020-03-02 16:48:53 +01:00
Remi Collet
06750d75e9
Merge branch 'PHP-7.4'
...
* PHP-7.4:
fix test
2020-02-28 10:39:43 +01:00
Remi Collet
5b82fd491a
fix test
2020-02-28 10:39:08 +01:00
Remi Collet
7f0d3f1eab
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
2020-02-28 10:35:39 +01:00
Remi Collet
d31fc591e0
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
2020-02-28 10:29:50 +01:00
Remi Collet
165d38a38d
Merge branch 'PHP-7.4'
...
* PHP-7.4:
NEWS
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
2020-02-28 10:29:30 +01:00
Remi Collet
fb881cbdfc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
2020-02-28 10:23:19 +01:00
Remi Collet
5b2d4c0ecc
Fix #79315 ZipArchive::addFile doesn't honor start/length parameters
2020-02-28 10:21:19 +01:00
Dmitry Stogov
24127d2e3f
Removed ext/zip/tests/oo_namelocate.zip
2020-02-07 16:52:26 +03:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Nikita Popov
169805777c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Apply tidy formatting
2020-02-03 13:42:08 +01:00
Nikita Popov
58b17906f5
Apply tidy formatting
...
Mostly reindent PHP scripts to spaces.
2020-02-03 13:41:31 +01:00
Remi Collet
c2a61c9d06
zip ext is now 1.17.1
2020-02-03 11:37:20 +01:00
Remi Collet
4d80c3b7e0
Merge branch 'PHP-7.4'
...
* PHP-7.4:
add test
NEWS
Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
2020-02-03 10:24:57 +01:00
Remi Collet
7fc06635c4
add test
2020-02-03 10:24:45 +01:00
Remi Collet
3c274613dc
Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
2020-02-03 10:10:17 +01:00
Remi Collet
5eb9cffa14
Merge branch 'PHP-7.4'
...
* PHP-7.4:
NEWS
Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
2020-02-03 10:09:27 +01:00
Remi Collet
0bc19a4b81
Fixed bug #73119 Wrong return for ZipArchive::addEmptyDir Method
2020-02-03 10:08:09 +01:00
Remi Collet
b915d68852
Zip: version is now 1.17.0
...
change for Windows (which have libzip 1.4 by default)
update NEWS
2020-01-31 09:10:10 +01:00
Remi Collet
3af1cee884
add ZipArchive::registerProgressCallback and ZipArchive::registerCancelCallback methods
2020-01-31 09:06:42 +01:00
Christoph M. Becker
dda67d3226
Enable ZipArchive::setMtime(Name|Index) on Windows
...
These are enabled on non Windows systems as of zip 1.16.0 with libzip
>= 1.0.0. Since Windows builds use at least libzip 1.4.0, we also
enable these methods there.
2020-01-29 18:19:54 +01:00
Remi Collet
b8d635cd22
zip extension version is now 1.16.1
2020-01-29 14:26:03 +01:00
Remi Collet
272698d7fd
Merge branch 'PHP-7.4'
...
* PHP-7.4:
zip: more constants
2020-01-29 14:25:26 +01:00
Remi Collet
bdcfdd4402
zip: more constants
2020-01-29 14:25:16 +01:00
Christoph M. Becker
3b9e822e11
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Enable support for LIBZIP_VERSION
2020-01-28 13:35:20 +01:00
Christoph M. Becker
d7052765ed
Enable support for LIBZIP_VERSION
...
This is already supported by non Windows builds for libzip >= 1.3.1,
and since we're using at least libzip 1.4.0 on Windows, we should
support it there as well.
2020-01-28 13:34:07 +01:00
Remi Collet
d91abf76e0
zip: fix lib check
2020-01-28 11:32:42 +01:00
Remi Collet
ac9a265f01
- bump zip extension version to 1.16.0 - add ZipArchive::setMtimeName and ZipArchive::setMtimeIndex methods
2020-01-28 10:53:49 +01:00
Remi Collet
cb1b26ac9c
Merge branch 'PHP-7.4'
...
* 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)
2020-01-27 16:48:54 +01:00
Remi Collet
5215f072af
- 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)
2020-01-27 16:47:28 +01:00
Remi Collet
a1d3f999c1
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add ZipArchive::CM_LZMA2 constant (since libzip 1.6.0)
2020-01-24 14:06:38 +01:00
Remi Collet
b9dff1160e
Add ZipArchive::CM_LZMA2 constant (since libzip 1.6.0)
2020-01-24 14:06:19 +01:00
Máté Kocsis
d1764ca330
Make error messages more consistent by fixing capitalization
...
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
2020-01-17 14:52:46 +01:00
Máté Kocsis
0b4778c377
Fix #78880 : Another bunch of spelling errors
2020-01-16 09:46:47 +01:00
Máté Kocsis
bbcfa66e06
Use RETURN_THROWS() after zend_fetch_resource*()
2020-01-03 19:20:56 +01:00
Nikita Popov
f23378d84a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Remove unnecessary strncpy in zip
2020-01-03 12:03:31 +01:00
Nikita Popov
3e5675d730
Remove unnecessary strncpy in zip
...
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.
2020-01-03 11:53:03 +01:00
Máté Kocsis
12ce73a5bb
Use RETURN_THROWS() after zend_value_error()
2019-12-31 16:58:15 +01:00
Máté Kocsis
345703724c
Use RETURN_THROWS() during ZPP in most of the extensions
...
Except for some bigger ones: reflection, sodium, spl
2019-12-31 11:46:11 +01:00
Máté Kocsis
27e83d0fb8
Add union return types for function stubs
2019-11-11 14:54:55 +01:00
Fabien Villepinte
a555cc0b3d
Clean DONE tags from tests
...
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.
Closes GH-4872.
2019-11-07 21:31:47 +01:00