History log of /PHP-8.1/Zend/tests/bug78921.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
# 6e16e1da 17-Apr-2020 Marco Pivetta

Make ReflectionProperty/Method always accessible

With this patch, it is no longer required to call
`ReflectionProperty#setAccessible()` or
`ReflectionMethod#setAccessible()` with `tr

Make ReflectionProperty/Method always accessible

With this patch, it is no longer required to call
`ReflectionProperty#setAccessible()` or
`ReflectionMethod#setAccessible()` with `true`.

If a userland consumer already got to the point of accessing
object/class information via reflection, it makes little sense
for `ext/reflection` to disallow accessing `private`/`protected`
symbols by default.

After this patch, calling `ReflectionProperty#setAccessible(true)`
or `ReflectionMethod#setAccessible(true)` on newly instantiated
`ReflectionProperty` or `ReflectionMethod` respectively will have
no effect.

RFC: https://wiki.php.net/rfc/make-reflection-setaccessible-no-op

Closes GH-5412.

show more ...


# 621598ea 13-Dec-2019 Nikita Popov

Fixed bug #78921

By resetting fake_scope during autoloading. We already do the same
when executing destructors.