History log of /PHP-8.0/ext/reflection/php_reflection.c (Results 1 – 25 of 864)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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>


# 088e5677 06-Jun-2022 Dmitry Stogov

Fix memory leak

This fixes oss-fuzz #47791


# 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


# 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 ...


# f7c3f6e7 12-Jan-2022 Dmitry Stogov

Fix ext/zend_test/tests/observer_bug81430_2.phpt failure


# 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 ...


# e286313f 02-Oct-2021 sasezaki

Fix bug #81474: Make ReflectionAttribute non-final

This backports GH-7520 to PHP 8.0.

Closes GH-7545.


# b976bc44 01-Jul-2021 Nikita Popov

Fixed bug #81208

The number of populated positional arguments is argc. i may also
include named args and thus try to dtor uninitialized zvals.


# 988c3f96 25-Feb-2021 Felipe Pena

Fix memleak on ReflectionFunction and ReflectionGenerator classes when calling __construct after instantiation


# b2fba0ef 01-Jan-2021 Christoph M. Becker

Fix build

We cannot `RETURN_THROWS()` here, since `return_value` is not defined.


# b23c865d 01-Jan-2021 Máté Kocsis

Use RETURN_THROWS() in a few places


# 82f9e004 31-Dec-2020 Christoph M. Becker

Fix ReflectionClass::getConstants() stub

If `zval_update_constant_ex()` fails, an exception has already been
thrown, so we clarify that in the implementation as well.

Closes GH-

Fix ReflectionClass::getConstants() stub

If `zval_update_constant_ex()` fails, an exception has already been
thrown, so we clarify that in the implementation as well.

Closes GH-6557.

show more ...


Revision tags: php-8.0.0
# 706241f8 24-Nov-2020 Nikita Popov

Fix usage of casted string in ReflectionParameter ctor

Fixes oss-fuzz #27755.


Revision tags: php-7.3.25, php-7.4.13, php-8.0.0RC5
# 1727d96d 15-Nov-2020 Benjamin Eberlei

Fixed bug #80370: Segmentation fault reflecting attributes of dynamic property

Closes GH-6428.


# d033d5c0 12-Nov-2020 Nikita Popov

Fix reflection getDefaultValue() with user arg info

The default value is part of the op_array in that case, but we have
no way to access it. Fail gracefully.


Revision tags: php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24
# 7f462c97 26-Oct-2020 Nikita Popov

Revert "Make ReflectionUnionType final"

This reverts commit ef6adb4e27853eb19bf50bad6486311920d6af7b.

Per Ondrej's comment, this is already being used by BetterReflection
adapto

Revert "Make ReflectionUnionType final"

This reverts commit ef6adb4e27853eb19bf50bad6486311920d6af7b.

Per Ondrej's comment, this is already being used by BetterReflection
adaptors, ugh.

show more ...


# ef6adb4e 25-Oct-2020 Máté Kocsis

Make ReflectionUnionType final

Closes GH-6384


Revision tags: php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1
# 91f47ee2 07-Oct-2020 Remi Collet

don't display default value for variadic


# dee80249 06-Oct-2020 Nikita Popov

Fixed bug #80190


Revision tags: php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23
# 351776ea 29-Sep-2020 Máté Kocsis

Make the $filter parameter of ReflectionClass::get*Constants() nullable


# 5686c16d 23-Sep-2020 Nikita Popov

Honor strict_types=1 for attributes, improve backtraces

Make ReflectionAttribute::newInstance() respect the strict_types=1
declaration at the attribute use-site. More generally, pretend

Honor strict_types=1 for attributes, improve backtraces

Make ReflectionAttribute::newInstance() respect the strict_types=1
declaration at the attribute use-site. More generally, pretend that
we are calling the attribute constructor from the place where the
attribute is used, which also means that the attribute location will
show up properly in backtraces and inside "called in" error information.

This requires us to store the attributes strict_types scope (as flags),
as well as the attribute line number. The attribute filename can be
recovered from the symbol it is used on. We might want to expose the
attribute line number via reflection as well.

See also https://externals.io/message/111915.

Closes GH-6201.

show more ...


# e950ca13 20-Sep-2020 Máté Kocsis

Consolidate the usage of "either" and "one of" in error messages

Closes GH-6173


Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1
# 1a8936cd 14-Sep-2020 Gabriel Caruso

Check `ReflectionReference::fromArrayElement` with union types

ReflectionReference::fromArrayElement(array $array, int|string $key): ?ReflectionReference
is going to be its official sign

Check `ReflectionReference::fromArrayElement` with union types

ReflectionReference::fromArrayElement(array $array, int|string $key): ?ReflectionReference
is going to be its official signature for PHP 8.0.

Closes GH-5651

show more ...


# c98d4769 10-Sep-2020 Máté Kocsis

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


12345678910>>...35