#
0d0c9aca |
| 07-Sep-2021 |
George Peter Banyard |
Fix param name order for Phar::copy()
|
#
edb6b375 |
| 16-Jul-2021 |
Nikita Popov |
Don't return bool from Phar::offsetUnset() This violates the ArrayAccess interface. Use offsetExists() to check if an entry exists.
|
#
3fc3cfba |
| 13-Jul-2021 |
Nikita Popov |
Fix Phar::offsetGet() return type It's possible to change the returned type using setFileClass(), which unfortunately only enforces that it's a subtype of SplFileInfo, not PharFileIn
Fix Phar::offsetGet() return type It's possible to change the returned type using setFileClass(), which unfortunately only enforces that it's a subtype of SplFileInfo, not PharFileInfo.
show more ...
|
#
83916e83 |
| 28-May-2021 |
Máté Kocsis |
Declare tentative return types for ext/phar (#7052)
|
#
9bba9f68 |
| 27-May-2021 |
Máté Kocsis |
Fix a few ext/phar return types
|
#
5b5bfd6b |
| 14-Feb-2021 |
Máté Kocsis |
Generate class entries from stubs for phar, posix, pspell, readline, reflection, session, shmop Closes GH-6692
|
#
44192ce8 |
| 09-Feb-2021 |
Nikita Popov |
Make Phar $fileNotFoundScript nullable While "" is already treated the same way as absence, null is the logically correct default here. Making this one argument non-nullable is parti
Make Phar $fileNotFoundScript nullable While "" is already treated the same way as absence, null is the logically correct default here. Making this one argument non-nullable is particularly pecular when considering that the preceding $alias and $index arguments are both nullable.
show more ...
|
#
a9efcb15 |
| 18-Jan-2021 |
Nikita Popov |
gen_stub: Also verify implementation-alias This makes --verify also check @implementation-alias. Failures are ignored using @no-verify instead. Some mistakes have been made that woul
gen_stub: Also verify implementation-alias This makes --verify also check @implementation-alias. Failures are ignored using @no-verify instead. Some mistakes have been made that would have been caught by this... Closes GH-6615.
show more ...
|
#
48e2e532 |
| 18-Jan-2021 |
Nikita Popov |
Fix parameter name of PharData::getMetadata() The name should be the same as for Phar::getMetadata().
|
#
0aad7741 |
| 12-Jan-2021 |
Dylan K. Taylor |
Fix stub for Phar::setStub() This fixes multiple issues: * The first parameter may be resource|string. * It's an overloaded signature. The second parameter cannot be passed
Fix stub for Phar::setStub() This fixes multiple issues: * The first parameter may be resource|string. * It's an overloaded signature. The second parameter cannot be passed if the first one is a string. Use UNKNOWN default value for that reason. * Make parameter names in PharData::setStub() match those in Phar. Closes GH-6596.
show more ...
|
#
82d46e35 |
| 07-Oct-2020 |
Nikita Popov |
Update ext/phar parameter names Closes GH-6307.
|
#
ad7e231e |
| 08-Oct-2020 |
Nikita Popov |
Make compression_type nullable in a few more places Missed that this was also used elsewhere...
|
#
9719d6ca |
| 08-Oct-2020 |
Nikita Popov |
Make Phar $format and $compression arguments nullable Rather than using Greg's birthday, use null to indicate that the existing format/compression should be retained. For the format
Make Phar $format and $compression arguments nullable Rather than using Greg's birthday, use null to indicate that the existing format/compression should be retained. For the format simply using zero would be sufficient, but as the documentation explicitly says that NULL is allowed here, we may as well make that the truth.
show more ...
|
#
64af12d1 |
| 19-Sep-2020 |
Máté Kocsis |
Add support for `@implementation-alias` in stubs Closes GH-6170
|
#
628db3f3 |
| 04-Sep-2020 |
Máté Kocsis |
Fix UNKNOWN default values in various extensions Closes GH-6075
|
#
f7fbc633 |
| 14-Aug-2020 |
Máté Kocsis |
Add more precise type info for stubs Closes GH-6005
|
#
be5ba201 |
| 18-Aug-2020 |
Máté Kocsis |
Promote warnings to exceptions in ext/phar Closes GH-6008
|
#
046cc5e4 |
| 07-Aug-2020 |
Máté Kocsis |
Add another round of missing parameter types to stubs Closes GH-5950
|
#
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 ...
|
#
c6485535 |
| 12-Apr-2020 |
Máté Kocsis |
Generate method entries from stubs for curl, ffi, pdo, phar Closes GH-5375
|
#
e088836b |
| 11-Apr-2020 |
Máté Kocsis |
Fix nullable types in PHPDoc
|
#
2bcc4ab8 |
| 03-Apr-2020 |
Nikita Popov |
Verify that all stubs have a return type
|
#
328903ca |
| 18-Feb-2020 |
Nikita Popov |
Add proper return types to final phar methods As these are final, we can add return types to them.
|
Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1 |
|
#
4d067d81 |
| 02-Nov-2019 |
Christoph M. Becker |
Add ext/phar arginfo stubs
|