Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22, php-8.0.0beta2 |
|
#
be5ba201 |
| 18-Aug-2020 |
Máté Kocsis |
Promote warnings to exceptions in ext/phar Closes GH-6008
|
Revision tags: php-7.3.22RC1, php-7.4.10RC1 |
|
#
046cc5e4 |
| 07-Aug-2020 |
Máté Kocsis |
Add another round of missing parameter types to stubs Closes GH-5950
|
#
7b9f37c3 |
| 07-Aug-2020 |
Máté Kocsis |
Fix ZPP order in ext/phar
|
Revision tags: php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21, php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8 |
|
#
0c238ede |
| 07-Jul-2020 |
Tyson Andre |
[RFC] Only unserialize Phar metadata when getMetadata() is called In other words, don't automatically unserialize when the magic phar:// stream wrappers are used. RFC: https://wiki.p
[RFC] Only unserialize Phar metadata when getMetadata() is called In other words, don't automatically unserialize when the magic phar:// stream wrappers are used. RFC: https://wiki.php.net/rfc/phar_stop_autoloading_metadata Also, change the signature from `getMetadata()` to `getMetadata(array $unserialize_options = [])`. Start throwing earlier if setMetadata() is called and serialization threw. See https://externals.io/message/110856 and https://bugs.php.net/bug.php?id=76774 This was refactored to add a phar_metadata_tracker for the following reasons: - The way to properly copy a zval was previously implicit and undocumented (e.g. is it a pointer to a raw string or an actual value) - Avoid unnecessary serialization and unserialization in the most common case - If a metadata value is serialized once while saving a new/modified phar file, this allows reusing the same serialized string. - Have as few ways to copy/clone/lazily parse metadata (etc.) as possible, so that code changes can be limited to only a few places in the future. - Performance is hopefully not a concern - copying a string should be faster than unserializing a value, and metadata should be rare in most cases. Remove unnecessary skip in a test(Compression's unused) Add additional assertions about usage of persistent phars Improve robustness of `Phar*->setMetadata()` - Add sanity checks for edge cases freeing metadata, when destructors or serializers modify the phar recursively. - Typical use cases of php have phar.readonly=1 and would not be affected. Closes GH-5855
show more ...
|
#
2160f5ce |
| 20-Jul-2020 |
Nikita Popov |
Call zpp_none in PharFileInfo::__destruct() Using __destruct() with internal classes is dubious, but not so simple to avoid here because the code extends SPL classes.
|
Revision tags: php-7.2.32, php-8.0.0alpha2, php-7.3.20 |
|
#
2b5de6f8 |
| 01-Jul-2020 |
Max Semenik |
Remove proto comments from C files Closes GH-5758
|
#
785497c8 |
| 25-Jun-2020 |
Nikita Popov |
Fix leaks in Phar::webPhar()
|
Revision tags: php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1 |
|
#
15846ff1 |
| 17-Jun-2020 |
Nikita Popov |
Add ZVAL_OBJ_COPY macro For the common ZVAL_OBJ + GC_ADDREF pattern. This mirrors the existing ZVAL_STR_COPY API.
|
Revision tags: php-7.4.7, php-7.3.19 |
|
#
257dbb04 |
| 08-Jun-2020 |
Nikita Popov |
Add zend_call_known_function() API family This adds the following APIs: void zend_call_known_function( zend_function *fn, zend_object *object, zend_class_entry *called_scope
Add zend_call_known_function() API family This adds the following APIs: void zend_call_known_function( zend_function *fn, zend_object *object, zend_class_entry *called_scope, zval *retval_ptr, int param_count, zval *params); void zend_call_known_instance_method( zend_function *fn, zend_object *object, zval *retval_ptr, int param_count, zval *params); void zend_call_known_instance_method_with_0_params( zend_function *fn, zend_object *object, zval *retval_ptr); void zend_call_known_instance_method_with_1_params( zend_function *fn, zend_object *object, zval *retval_ptr, zval *param); void zend_call_known_instance_method_with_2_params( zend_function *fn, zend_object *object, zval *retval_ptr, zval *param1, zval *param2); These are used to perform a call if you already have the zend_function you want to call. zend_call_known_function() is the base API, the rest are just really thin wrappers around it for the common case of instance method calls. Closes GH-5692.
show more ...
|
#
88355dd3 |
| 07-Jun-2020 |
twosee |
Constify char * arguments of APIs Closes GH-5676.
|
Revision tags: php-7.4.7RC1, php-7.3.19RC1 |
|
#
3092a1ee |
| 20-May-2020 |
George Peter Banyard |
Fix [-Wundef] warning in PHAR extension
|
Revision tags: php-7.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1, php-7.2.30, php-7.4.5, php-7.3.17 |
|
#
c6485535 |
| 12-Apr-2020 |
Máté Kocsis |
Generate method entries from stubs for curl, ffi, pdo, phar Closes GH-5375
|
Revision tags: php-7.4.5RC1, php-7.3.17RC1, php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16, php-7.4.4RC1, php-7.3.16RC1, php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1, php-7.3.15 |
|
#
7248341e |
| 26-Jan-2020 |
Christoph M. Becker |
Fix # 79171: heap-buffer-overflow in phar_extract_file We must not access memory outside of the allocated buffer.
|
#
bcbc053d |
| 16-Feb-2020 |
Stanislav Malyshev |
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
|
#
b01b1f65 |
| 26-Jan-2020 |
Christoph M. Becker |
Fix # 79171: heap-buffer-overflow in phar_extract_file We must not access memory outside of the allocated buffer.
|
#
bbcb8cab |
| 16-Feb-2020 |
Stanislav Malyshev |
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
|
#
7df594b9 |
| 26-Jan-2020 |
Christoph M. Becker |
Fix # 79171: heap-buffer-overflow in phar_extract_file We must not access memory outside of the allocated buffer.
|
#
6facfa59 |
| 16-Feb-2020 |
Stanislav Malyshev |
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
|
#
e5c95234 |
| 16-Feb-2020 |
Stanislav Malyshev |
Fix bug #79082 - Files added to tar with Phar::buildFromIterator have all-access permissions
|
#
136f51f1 |
| 26-Jan-2020 |
Christoph M. Becker |
Fix #76584: PharFileInfo::decompress not working We actually have to decompress, when told to do so.
|
Revision tags: php-7.2.27, php-7.4.2, php-7.3.14 |
|
#
d1764ca3 |
| 15-Jan-2020 |
Máté Kocsis |
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.
|
Revision tags: php-7.3.14RC1, php-7.4.2RC1 |
|
#
aadd3aae |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() in various places
|
#
01a50778 |
| 02-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after zend_throw_exception() in most of the extensions
|
#
34570372 |
| 31-Dec-2019 |
Máté Kocsis |
Use RETURN_THROWS() during ZPP in most of the extensions Except for some bigger ones: reflection, sodium, spl
|
Revision tags: php-7.4.1, php-7.2.26, php-7.3.13 |
|
#
01875e8b |
| 12-Dec-2019 |
Dylan T |
phar: fix offset*() prototypes
|