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


Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22
# 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 ...


Revision tags: php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1
# 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


Revision tags: php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21
# ec22e5aa 01-Aug-2020 Máté Kocsis

Get rid of empty function entries

Closes GH-5917


Revision tags: php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20, php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1, php-7.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1, 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


# 302933da 07-Jul-2020 Nikita Popov

Remove no_separation flag


# 2b5de6f8 01-Jul-2020 Max Semenik

Remove proto comments from C files

Closes GH-5758


# 344c0774 03-Jul-2020 Nikita Popov

Use zend_string_equals API in a couple places


# c2b23d8c 30-Jun-2020 Nikita Popov

Fix leak in isDefaultValueAvailable()

Exposed in Symfony due to exit changes.


# 053ef28b 28-Jun-2020 Martin Schröder

Implement Attribute Amendments.

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

Support for attribute grouping is left out, because the short
attribute syntax RFC will likely

Implement Attribute Amendments.

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

Support for attribute grouping is left out, because the short
attribute syntax RFC will likely make it obsolete.

Closes GH-5751.

show more ...


# 26aefb75 15-Apr-2020 Christoph M. Becker

Fix #69804: ::getStaticPropertyValue() throws on protected props

`ReflectionClass` allows reading of the values of private and protected
constants, and also to get private and protected

Fix #69804: ::getStaticPropertyValue() throws on protected props

`ReflectionClass` allows reading of the values of private and protected
constants, and also to get private and protected static methods.
Therefore getting the values of private and protected static properties
is also permissible, especially since `::getStaticProperties()` already
allows to do so.

We also allow ::setStaticPropertyValue() to modify private and
protected properties, because otherwise this method is useless, as
modifying public properties can be done directly.

show more ...


# ef2130db 24-Jun-2020 Christoph M. Becker

Fix #79487: ::getStaticProperties() ignores property modifications

When retrieving the static class properties via reflection, we have to
cater to possible modifications.


# f3cccfde 23-Jun-2020 Christoph M. Becker

Revert "Fix #79487: ::getStaticProperties() ignores property modifications"

This reverts commit a895bb6885fbceea3e8375816969d5510d8d082e.


# a895bb68 23-Jun-2020 Christoph M. Becker

Fix #79487: ::getStaticProperties() ignores property modifications

When retrieving the static class properties via reflection, we have to
cater to possible modifications.


# 15846ff1 17-Jun-2020 Nikita Popov

Add ZVAL_OBJ_COPY macro

For the common ZVAL_OBJ + GC_ADDREF pattern.
This mirrors the existing ZVAL_STR_COPY API.


12345678910>>...35