diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-28 13:34:33 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-09 08:40:53 +0100 |
commit | 84354c62b37a56816a695b18ebd898f9703a9ad2 (patch) | |
tree | ce7e64a98a8fe1648e276bf418e0ff26827ea729 /ext/reflection/php_reflection.c | |
parent | ac042f839f4c4a2b8241fa69f8f3b01766814f1e (diff) | |
download | php-git-84354c62b37a56816a695b18ebd898f9703a9ad2.tar.gz |
Fixed bug #78904: Don't call any magic for uninitialized typed properties
We already changed the behavior for __set() in f1848a4. However, it
seems that this is also a problem for all the other property magic,
see bug #78904.
This commit makes the behavior of all the property magic consistent:
Magic will not be triggered for uninitialized typed properties, only
explicitly unset() ones. This brings behavior more in line how
non-typed properties behave and avoids WTF.
Closes GH-4974.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions