History log of /PHP-8.4/ext/reflection/php_reflection.c (Results 51 – 75 of 979)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# e186765a 29-Sep-2022 Ilija Tovilo

Throw in ReflectionMethod::__construct() when initialized with private parent method

Fixes GH-9470
Closes GH-9640


# a01dd9fe 14-Sep-2022 Bob Weinand

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included i

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.

show more ...


# 1435fc62 02-Sep-2022 Ilija Tovilo

Private method incorrectly marked as "overwrites" in reflection

Fix GH-9409
Closes GH-9469


# 93f11d84 02-Sep-2022 Nicolas Grekas

Fix GH-8932: Provide a way to get the called-scope of closures (#9299)

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>


# 94ee4f98 24-Aug-2022 Bob Weinand

Port all internally used classes to use default_object_handlers

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>


Revision tags: php-8.2.0beta2, php-8.1.9, php-8.0.22
# 565a416e 28-Jul-2022 Ilija Tovilo

Fix attribute target validation on fake closures

Fixes GH-8982
Closes GH-9173


# e4d79ce2 23-Jul-2022 Máté Kocsis

Declare ext/reflection constants in stubs (#9111)


Revision tags: php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1
# 4d8dd8d2 19-Jul-2022 Go Kudo

Implement Random Extension

https://wiki.php.net/rfc/rng_extension
https://wiki.php.net/rfc/random_extension_improvement


# c6eb5dc5 18-Jul-2022 Dmitry Stogov

Fix possible crash in case of exception

Fixes oss-fuzz #49068


# c650e67c 07-Jul-2022 Pierrick Charron

Fixed bug GH-8943 Reflection::getModifiersNames() with readonly modifier


Revision tags: php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1
# 0ae6a675 12-Jun-2022 George Peter Banyard

Add true as a type (#8326)

RFC: https://wiki.php.net/rfc/true-type


Revision tags: php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30, php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17
# ddc0b490 10-Mar-2022 Ilija Tovilo

Allow arbitrary const expressions in backed enums

Closes GH-7821
Closes GH-8190
Closes GH-8418


# b40ae808 07-Jun-2022 George Peter Banyard

Convert iterable into an internal alias for Traversable|array (#7309)

This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP vari

Convert iterable into an internal alias for Traversable|array (#7309)

This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP variance handling.

The arginfo generation script from stubs is updated to produce a union type when it encounters the type ``iterable``
Extension functions which do not regenerate the arginfo, or write them manually are still supported by mimicking the compile time transformation while registering the function.

Type Reflection is preserved for single ``iterable`` (and ``?iterable``) to produce a ReflectionNamedType with name ``iterable``, however usage of ``iterable`` in union types will be converted to ``array|Traversable``

show more ...


# 088e5677 06-Jun-2022 Dmitry Stogov

Fix memory leak

This fixes oss-fuzz #47791


# 7850c103 16-May-2022 Máté Kocsis

Add support for readonly classes (#7305)

RFC: https://wiki.php.net/rfc/readonly_classes


# f590782b 04-May-2022 Ollie Read

Add ReflectionMethod::hasPrototype method

Closes GH-8487.


# 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


# 1944c14c 28-Apr-2022 Ilija Tovilo

Fix ReflectionProperty::__toString() of properties containing enums

Fix GH-8444


# 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
# 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
# 7e6558ed 12-Jan-2022 Dmitry Stogov

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


12345678910>>...40