History log of /PHP-8.3/ext/reflection/php_reflection.c (Results 101 – 125 of 949)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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.


# 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


# 91f47ee2 07-Oct-2020 Remi Collet

don't display default value for variadic


# dee80249 06-Oct-2020 Nikita Popov

Fixed bug #80190


# 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


# 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


# a59923be 09-Sep-2020 Máté Kocsis

Refactor ReflectionMethod::__construct()

Closes GH-6098


# 8107a1da 04-Sep-2020 Máté Kocsis

Use ZPP instead of custom type checks

We can add these types as a native type declaration to stubs as a side-effect. Closes GH-6068


# 1f6f9c70 31-Aug-2020 Nikita Popov

Fix leak on consteval exception in ReflectionClass::__toString()


# 8bb2f406 31-Aug-2020 Nikita Popov

Check update constant failure in ReflectionClassConstant::__toString()


# b4196ae9 31-Aug-2020 Nikita Popov

Fix fetching default value of internal function with userland arginfo

"Fix" in the sense of "not crash". We aren't able to actually
display the default value for this case, as there's no

Fix fetching default value of internal function with userland arginfo

"Fix" in the sense of "not crash". We aren't able to actually
display the default value for this case, as there's no way to
fetch the relevant information right now.

show more ...


# 8b77c581 07-Aug-2020 Nikita Popov

Accept zend_object* in zend_update_property


# 7991fc27 07-Aug-2020 Nikita Popov

Accept zend_object in zend_read_property


# ec22e5aa 01-Aug-2020 Máté Kocsis

Get rid of empty function entries

Closes GH-5917


Revision tags: php-7.2.30, php-7.4.5, php-7.3.17
# d92229d8 06-Apr-2020 Nikita Popov

Implement named parameters

From an engine perspective, named parameters mainly add three
concepts:

* The SEND_* opcodes now accept a CONST op2, which is the
argument nam

Implement named parameters

From an engine perspective, named parameters mainly add three
concepts:

* The SEND_* opcodes now accept a CONST op2, which is the
argument name. For now, it is looked up by linear scan and
runtime cached.
* This may leave UNDEF arguments on the stack. To avoid having
to deal with them in other places, a CHECK_UNDEF_ARGS opcode
is used to either replace them with defaults, or error.
* For variadic functions, EX(extra_named_params) are collected
and need to be freed based on ZEND_CALL_HAS_EXTRA_NAMED_PARAMS.

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

Closes GH-5357.

show more ...


# 5f25618f 30-Jul-2020 Máté Kocsis

Add missing RETURN_THROWS()


# 0d330e1a 28-Jul-2020 Máté Kocsis

Add a few missing parameter types in stubs

Related to GH-5627


# 8664ff7a 24-Jul-2020 Máté Kocsis

Cleanup argument handling in ext/reflection

Closes GH-5850


# b3ea6ce7 21-Jul-2020 Nikita Popov

Make ReflectionGenerator final

This class is not safe against malicious extension / instantiation.


# ee7c7a8e 15-Jul-2020 Christopher Broadbent

Fixed bug #79820

Similar to what is done for ReflectionType itself, copy the
type name stored inside ReflectionProperty. Also make sure the
type field is always initialized for dynam

Fixed bug #79820

Similar to what is done for ReflectionType itself, copy the
type name stored inside ReflectionProperty. Also make sure the
type field is always initialized for dynamic properties.

This is a non-issue in PHP 8, because we store a pointer to the
property_info there, rather than a copy.

show more ...


# d30cd7d7 26-May-2020 Máté Kocsis

Review the usage of apostrophes in error messages

Closes GH-5590


12345678910>>...38