Nikita Popov
7485978339
Migrate SKIPIF -> EXTENSIONS ( #7138 )
...
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00
Remi Collet
3f6a9c9b7b
Remove duplicated test
...
(was previously splitted for <5.3 and >5.3)
2021-06-07 12:11:13 +02:00
Remi Collet
6007bedac2
Merge branch 'PHP-8.0'
...
* PHP-8.0:
zip extension is now 1.19.3
2021-06-07 12:10:10 +02:00
Remi Collet
1671996ed7
zip extension is now 1.19.3
2021-06-07 12:10:01 +02:00
Máté Kocsis
172c29879e
Declare tentative return types for ext/zip ( #7053 )
2021-05-27 10:47:32 +02:00
Nikita Popov
ca8247654c
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix zip build
2021-05-07 22:42:50 +02:00
Nikita Popov
1c2e7b4ea0
Fix zip build
2021-05-07 22:42:31 +02:00
Christoph M. Becker
cc86f70de9
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #80863 : ZipArchive::extractTo() ignores references
2021-05-07 19:22:51 +02:00
Christoph M. Becker
ab3052ab26
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80863 : ZipArchive::extractTo() ignores references
2021-05-07 19:21:58 +02:00
Christoph M. Becker
57918b1a1b
Fix #80863 : ZipArchive::extractTo() ignores references
...
We need to cater to references, when traversing the files to extract.
While we're at it, we move the `zval_file` declaration into a narrower
scope.
Closes GH-6959.
2021-05-07 19:15:29 +02:00
KsaR
01b3fc03c3
Update http->https in license ( #6945 )
...
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
Máté Kocsis
b567a9d173
Use typed properties in ext/zip
...
Closes GH-6881
2021-04-26 13:21:17 +02:00
Christoph M. Becker
1c56a830ce
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #80825 : ZipArchive::isCompressionMethodSupported does not exist
2021-03-03 22:57:51 +01:00
Christoph M. Becker
4f478af16d
Fix #80825 : ZipArchive::isCompressionMethodSupported does not exist
...
`HAVE_METHOD_SUPPORTED` should have been defined after we updated to
libzip 1.7.1 months ago.
2021-03-03 22:56:42 +01:00
Dmitry Stogov
72c3ededed
Change the order of properties used for var_dump(), serialize(), comparison, etc.
...
Now properties are ordered according to their layout in zend_object structure.
2021-03-01 13:29:49 +03:00
Dmitry Stogov
13e4ce386b
Improve SPL directory and stat() cache using zend_srting* instead of char*
2021-02-26 02:28:46 +03:00
Máté Kocsis
4c6533c257
Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend
...
Closes GH-6706
2021-02-22 15:24:03 +01:00
Máté Kocsis
1954e59758
Add support for generating class entries from stubs
...
Closes GH-6289
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2021-01-26 11:50:36 +01:00
Christoph M. Becker
6adfb8c962
Fix #80648 : Fix for bug 79296 should be based on runtime version
...
Instead of checking for actually affected libzip versions, we now always
`ZIP_TRUNCATE` empty files unless `ZIP_RDONLY` is set.
Closes GH-6625.
2021-01-20 16:20:13 +01:00
Nikita Popov
3e01f5afb1
Replace zend_bool uses with bool
...
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.
2021-01-15 12:33:06 +01:00
George Peter Banyard
f40838eaaa
Rename `zip_ent parameter to zip_entry` for consistency
...
All other functions use ``zip_entry``
2021-01-08 22:26:24 +00:00
Christoph M. Becker
e470f9b389
ZipArchive methods do not return NULL
...
Closes GH-6563.
2021-01-03 16:12:10 +01:00
Remi Collet
ce18899b44
zip extension is 1.19.2
2020-11-23 15:59:15 +01:00
Christoph M. Becker
d65a520b1d
Raise E_WARNING on PHP related errors
...
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.
2020-11-06 11:00:43 +01:00
Remi Collet
e2509cf98a
report about ZSTD compression availability
2020-11-06 09:58:08 +01:00
Remi Collet
8d7ca472e5
only display libzip both headers/library versions if they differ
2020-11-06 09:58:05 +01:00
Remi Collet
e39ce172f8
bump zip extension version
2020-09-29 16:17:23 +02:00
Remi Collet
dafc72cb33
for consistency use for all *Name methods
2020-09-23 09:31:44 +02:00
Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
Máté Kocsis
36fd95b524
Generate arginfos
2020-09-16 21:28:27 +02:00
Máté Kocsis
de912821e0
Display string default values in stubs more uniformly
...
Settling on using quoted string
2020-09-16 21:27:01 +02:00
Máté Kocsis
c76910cd96
Display types in stubs more uniformly
...
In preparation for generating method signatures for the manual.
This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.
2020-09-16 21:19:36 +02:00
Máté Kocsis
c98d47696f
Consolidate new union type ZPP macro names
...
They will now follow the canonical order of types. Older macros are
left intact due to maintaining BC.
Closes GH-6112
2020-09-11 11:00:18 +02:00
Máté Kocsis
3e800e997b
Move custom type checks to ZPP
...
Closes GH-6034
2020-09-02 11:11:38 +02:00
George Peter Banyard
fa8d9b1183
Improve type declarations for Zend APIs
...
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
2020-08-28 15:41:27 +02:00
George Peter Banyard
72383ccabb
Promote warnings in ext/zip
2020-08-17 15:52:20 +02:00
Máté Kocsis
2803c8fb8d
Add all the missing parameter types to stubs
...
Closes GH-5955
2020-08-13 14:47:18 +02:00
Máté Kocsis
7aacc705d0
Add many missing closing PHP tags to tests
...
Closes GH-5958
2020-08-09 22:03:36 +02:00
Nikita Popov
84a080ef50
Avoid getThis() usages in zip extension
...
There isn't any magic going on here, we can just use ZEND_THIS
and assume it exists.
2020-08-06 11:28:35 +02:00
Nikita Popov
0dda242bde
Add GLOB_BRACE skipif
2020-08-06 10:26:32 +02:00
Remi Collet
42226fcf03
add ZipArchive::CM_XZ constant (in upcoming libzip 1.8.0)
2020-07-21 14:43:52 +02:00
George Peter Banyard
06da048622
Use HashTable directly instead of zval
2020-07-08 16:25:49 +02:00
Max Semenik
2b5de6f839
Remove proto comments from C files
...
Closes GH-5758
2020-07-06 21:13:34 +02:00
Nikita Popov
0280b83e11
Avoid some unnecessary uses of no_separation=0
...
For the rare cases where references are part of the API,
construct them explicitly. Otherwise do not allow separation.
2020-07-06 19:05:57 +02:00
Fabien Villepinte
0c6d06ecfa
Replace EXPECTF when possible
...
Closes GH-5779
2020-06-29 21:31:44 +02:00
Ayesh Karunaratne
d114812faf
[ci skip] Various typo fixes in stub comments and CHANGES file
2020-06-25 23:32:40 +02:00
Nikita Popov
c9b9f525a9
Include stub hash in generated arginfo files
...
The hash is used to check whether the arginfo file needs to be
regenerated. PHP-Parser will only be downloaded if this is actually
necessary.
This ensures that release artifacts will never try to regenerate
stubs and thus fetch PHP-Parser, as long as you do not modify any
files.
Closes GH-5739.
2020-06-24 09:55:19 +02:00
Máté Kocsis
f3b1f342c8
Deprecate the procedural API of ext/zip
...
Closes GH-5746
2020-06-23 17:39:29 +02:00
Nikita Popov
6b1e449ef4
Merge branch 'PHP-7.4'
2020-06-18 17:14:03 +02:00
Remi Collet
f3e6b123dc
check for broken libzip versions
...
Closes GH-5738.
2020-06-18 17:13:01 +02:00