[php-src] Issue #7943: Nested Attributes values are not static through engine life
| From: | aurimasniekis | Date: | Fri, 14 Jan 2022 21:08:01 +0000 |
| Subject: | [php-src] Issue #7943: Nested Attributes values are not static through engine life | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239017@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7943
Comment Author: aurimasniekis
I have checked
ReflectionParameter and it behaves exactly the same, and I kinda
understand the point of it.
The outer problem of this was that with getArguments now returns object instance of
that new Object() value as an argument, which makes trying to figure out how that
new Object(.....) was constructed impossible, because if that Object has some kind of
logic inside constructor you would not be able to recreate the same state of the instance.
Even if by collecting properties and repopulating them back would not mean it would be correct
because if the constructor has some kind of external logic for e.g. if today is Sunday value is such
otherwise different.