#
425c6f58 |
| 07-Apr-2020 |
Nikita Popov |
Optimize internal name fetching in reflection Directly fetch the name property, instead of construction the properties hash table and performing a lookup in it. This is both slow and
Optimize internal name fetching in reflection Directly fetch the name property, instead of construction the properties hash table and performing a lookup in it. This is both slow and wastes a lot of memory.
show more ...
|
#
c81cf1c7 |
| 07-Apr-2020 |
Nikita Popov |
Assert that arginfo parameter name is present
|
#
184fdac7 |
| 02-Apr-2020 |
Nikita Popov |
Remove <default> prefix from reflection dump This really doesn't add anything, and only makes for confusing terminology. Only marking properties as dynamic is sufficient.
|
#
083b0c38 |
| 02-Apr-2020 |
Nikita Popov |
Display property default value in reflection dumps
|
#
b5991d33 |
| 02-Apr-2020 |
Nikita Popov |
Show property type in reflection export
|
#
d7b73de8 |
| 18-Mar-2020 |
Máté Kocsis |
Improve error messages of ext/reflection Closes GH-5277
|
Revision tags: php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16, php-7.4.4RC1, php-7.3.16RC1 |
|
#
53efa1b0 |
| 02-Mar-2020 |
Nikita Popov |
Store aliased name of trait method Currently, trait methods are aliased will continue to use the original function name. In a few places in the codebase, we will try to look up the a
Store aliased name of trait method Currently, trait methods are aliased will continue to use the original function name. In a few places in the codebase, we will try to look up the actual method name instead. However, this does not work if an aliased method is used indirectly (https://bugs.php.net/bug.php?id=69180). I think it would be better to instead actually change the method name to the alias. This is in principle easy: We have to allow function_name to be changed even if op array is otherwise shared (similar to static_variables). This means we need to addref/release the function_name separately, but I don't think there is a performance concern here (especially as everything is usually interned). There is a bit of complication in opcache, where we need to make sure that the function name is released the correct number of times (interning may overwrite the name in the original op_array, but we need to release it as many times as the op_array is shared). Fixes bug #69180. Fixes bug #74939. Closes GH-5226.
show more ...
|
Revision tags: php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1, php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14 |
|
#
9e775db0 |
| 13-Jan-2020 |
Nicolas Grekas |
Define Stringable with __toString():string method
|
#
0d06a63e |
| 28-Feb-2020 |
Nikita Popov |
Fixed bug #77325 Make ReflectionClassConstant->class the declaring class, not the class on which the constant was fetched. This matches the behavior for properties and methods.
|
#
87bc9943 |
| 28-Feb-2020 |
Nikita Popov |
Fixed bug #64592 Make ReflectionClass::getMethods() behave the same ways as ReflectionClass::getProperties() by not including private methods from parent classes.
|
#
4f892118 |
| 18-Feb-2020 |
Máté Kocsis |
Remove the deprecated reflection export methods Closes GH-5188
|
#
43443857 |
| 07-Jan-2020 |
Nikita Popov |
Add static return type RFC: https://wiki.php.net/rfc/static_return_type The "static" type is represented as MAY_BE_STATIC, rather than a class type like "self" and "parent", as
Add static return type RFC: https://wiki.php.net/rfc/static_return_type The "static" type is represented as MAY_BE_STATIC, rather than a class type like "self" and "parent", as it has special resolution semantics, and cannot be cached in the runtime cache. Closes GH-5062.
show more ...
|
#
42fbc76d |
| 10-Feb-2020 |
Nikita Popov |
Always invoke zpp in ReflectionProperty::getValue/isInitialized Make sure we still perform a zpp check for the static case, and also always enforce that the parameter is ?object. Otherwi
Always invoke zpp in ReflectionProperty::getValue/isInitialized Make sure we still perform a zpp check for the static case, and also always enforce that the parameter is ?object. Otherwise we violate the specified signature.
show more ...
|
#
87f127d8 |
| 10-Feb-2020 |
Nikita Popov |
Rename reflection stub file Where possible, the stub file should match the name of the C file, so that the build system integration automatically recompiles it.
|
#
c343c1bc |
| 05-Feb-2020 |
George Peter Banyard |
Fix some -Wold-style-declaration compiler warnings
|
#
58b17906 |
| 03-Feb-2020 |
Nikita Popov |
Apply tidy formatting Mostly reindent PHP scripts to spaces.
|
#
7a52bf21 |
| 09-Jan-2020 |
Benjamin Eberlei |
Add ReflectionProperty::getDefaultValue and ReflectionProperty::hasDefaultValue
|
#
1f1a7eca |
| 21-Jan-2020 |
Nikita Popov |
Simplify ReflectionProperty::getDeclaringClass()
|
#
07bda97e |
| 17-Jan-2020 |
Nikita Popov |
Fixed bug #79115
|
#
bd197728 |
| 16-Jan-2020 |
Nikita Popov |
Use zend_type inside type lists Instead of having a completely independent encoding for type list entries. This is going to use more memory, but I'm not particularly concerned about
Use zend_type inside type lists Instead of having a completely independent encoding for type list entries. This is going to use more memory, but I'm not particularly concerned about that, as type unions that contain multiple classes should be uncommon. On the other hand, this allows us to treat top-level types and types inside lists mostly the same. A new ZEND_TYPE_FOREACH macros allows to transparently treat list and non-list types the same way. I'm not using it everywhere it could be used for now, just the places that seemed most obvious. Of course, this will make any future type system changes much simpler, as it will not be necessary to duplicate all logic two times.
show more ...
|
#
1fa6f032 |
| 16-Jan-2020 |
Nikita Popov |
Fix reflection leak if type inside type list is resolved
|
Revision tags: php-7.3.14RC1, php-7.4.2RC1 |
|
#
aadd3aae |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() in various places
|
#
7b4a4d2a |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after try_convert_to_string()
|
#
763788af |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after zend_throw_exception() in reflection extension
|
#
349a2864 |
| 01-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after zend_throw_error()
|