#
be11bcb0 |
| 05-May-2022 |
Nicolas Grekas |
Add ReflectionFunction::isAnonymous() Closes GH-8499. |
#
fc04a6eb |
| 03-May-2022 |
Máté Kocsis |
Throw when calling ReflectionAttribute::__construct() ReflectionAttribute::__construct() accepted any number of parameters until now, because parameter validation was missing. Even though th
Throw when calling ReflectionAttribute::__construct() ReflectionAttribute::__construct() accepted any number of parameters until now, because parameter validation was missing. Even though this was unlikely to be an issue in practice (since the method is private), the problem is fixed by always throwing an exception.
show more ...
|
#
ef5478b8 |
| 03-May-2022 |
Máté Kocsis |
Reorder param parsing and reflection object retrieval |
#
90a845c1 |
| 29-Apr-2022 |
Ilija Tovilo |
Merge branch 'PHP-8.1' * PHP-8.1: Fix ReflectionProperty::__toString() of properties containing enums
|
#
1944c14c |
| 28-Apr-2022 |
Ilija Tovilo |
Fix ReflectionProperty::__toString() of properties containing enums Fix GH-8444 |
#
91fe8075 |
| 23-Apr-2022 |
Ilija Tovilo |
Merge branch 'PHP-8.1' * PHP-8.1: Fix GH-8421: Attributes that target functions are not valid for anonymous functions defined within a method
|
#
82d3a831 |
| 23-Apr-2022 |
Ilija Tovilo |
Merge branch 'PHP-8.0' into PHP-8.1 * PHP-8.0: Fix GH-8421: Attributes that target functions are not valid for anonymous functions defined within a method
|
#
d0f1b987 |
| 22-Apr-2022 |
Ollie Read
|
Fix GH-8421: Attributes that target functions are not valid for anonymous functions defined within a method Closes GH-8424 |
#
6039c07a |
| 08-Apr-2022 |
George Peter Banyard |
Allow ``null`` and ``false`` as standalone types (#7546) RFC: https://wiki.php.net/rfc/null-standalone-type Also a drive-by consistency fix for error messages. |
Revision tags: php-8.1.4RC1, php-8.0.17RC1 |
|
#
c8720568 |
| 28-Feb-2022 |
Christoph M. Becker |
Merge branch 'PHP-8.1' * PHP-8.1: Fix GH-8080: ReflectionClass::getConstants() depends on def. order
|
#
27d2fddf |
| 28-Feb-2022 |
Christoph M. Becker |
Merge branch 'PHP-8.0' into PHP-8.1 * PHP-8.0: Fix GH-8080: ReflectionClass::getConstants() depends on def. order
|
#
0d266a24 |
| 16-Feb-2022 |
Christoph M. Becker |
Fix GH-8080: ReflectionClass::getConstants() depends on def. order When we need to evaluate constant ASTs, we always have to do that in the scope where the constant has been defined, whi
Fix GH-8080: ReflectionClass::getConstants() depends on def. order When we need to evaluate constant ASTs, we always have to do that in the scope where the constant has been defined, which may be a parent of the `ReflectionClass`'s scope. Closes GH-8106.
show more ...
|
Revision tags: php-8.1.3, php-8.0.16, php-7.4.28, php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15 |
|
#
9a165336 |
| 12-Jan-2022 |
Dmitry Stogov |
Merge branch 'PHP-8.1' * PHP-8.1: Fix ext/zend_test/tests/observer_bug81430_2.phpt failure
|
#
f6d7f78a |
| 12-Jan-2022 |
Dmitry Stogov |
Merge branch 'PHP-8.0' into PHP-8.1 * PHP-8.0: Fix ext/zend_test/tests/observer_bug81430_2.phpt failure
|
#
f7c3f6e7 |
| 12-Jan-2022 |
Dmitry Stogov |
Fix ext/zend_test/tests/observer_bug81430_2.phpt failure |
#
a8c6a5ce |
| 10-Jan-2022 |
Christoph M. Becker |
Merge branch 'PHP-8.1' * PHP-8.1: Fix #81430: Attribute instantiation leaves dangling pointer
|
#
48333628 |
| 10-Jan-2022 |
Christoph M. Becker |
Merge branch 'PHP-8.0' into PHP-8.1 * PHP-8.0: Fix #81430: Attribute instantiation leaves dangling pointer
|
#
2f6a06cc |
| 05-Jan-2022 |
Benjamin Eberlei |
Fix #81430: Attribute instantiation leaves dangling pointer By switching attribute constructor stackframe to be called via trampoline the stack allocation is not causing dangling pointer
Fix #81430: Attribute instantiation leaves dangling pointer By switching attribute constructor stackframe to be called via trampoline the stack allocation is not causing dangling pointers in the zend_observer API anymore. Co-Authored-By: Florian Sowade <f.sowade@suora.com> Co-Authored-By: Christopher Becker <cmbecker69@gmx.de> Co-Authored-By: Dmitry Stogov <dmitry@zend.com> Closes GH-7885.
show more ...
|
Revision tags: php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27 |
|
#
2658925e |
| 02-Dec-2021 |
Christoph M. Becker |
Merge branch 'PHP-8.1' * PHP-8.1: Fix #81681: ReflectionEnum throwing exceptions
|
#
59dd4fd7 |
| 02-Dec-2021 |
Christoph M. Becker |
Fix #81681: ReflectionEnum throwing exceptions Enums are neither instantiable nor cloneable. Closes GH-7707. |
Revision tags: php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0 |
|
#
aaba0000 |
| 17-Nov-2021 |
Nikita Popov |
Merge branch 'PHP-8.1' * PHP-8.1: Fix bug #81630: Don't claim known hash in getTraitAliases() Assert hash is known when we claim it is
|
#
6641e3b8 |
| 17-Nov-2021 |
Nikita Popov |
Fix bug #81630: Don't claim known hash in getTraitAliases() We don't intern this string, and this code is not particularly performance critical in the first place, so just drop the the
Fix bug #81630: Don't claim known hash in getTraitAliases() We don't intern this string, and this code is not particularly performance critical in the first place, so just drop the the assumption.
show more ...
|
Revision tags: php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6 |
|
#
90b7bde6 |
| 03-Nov-2021 |
Dmitry Stogov |
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[i] instead of ht->arData[i] - in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes (ZEND_HASH_MAP_FOREACH_*) - introduced an additional family of macros to access elements of array (packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX, ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT - zend_hash_minmax() prototype was changed to compare only values Because of smaller data set, this patch may show performance improvement on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser) TODO: - sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET). - zend_hash_sort_ex() may require converting packed arrays to hash.
show more ...
|
Revision tags: php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32 |
|
#
fb5cff12 |
| 20-Oct-2021 |
Nikita Popov |
Print array defaults in reflection As a followup to f34114b1fb68302ad51929890d3fb2d9cbba024b print the contents of arrays rather than just a generic "Array" marker. Also drop the tru
Print array defaults in reflection As a followup to f34114b1fb68302ad51929890d3fb2d9cbba024b print the contents of arrays rather than just a generic "Array" marker. Also drop the truncation on strings. As we no longer resolve constants, there should be less concerns about printing very large strings here. If someone thought it was a good idea to use a 10k character strings as a default value in code, then it should be fine for us to print it in reflection as well.
show more ...
|
#
11d97ae0 |
| 20-Oct-2021 |
Nikita Popov |
Remove unused scope argument |