diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-24 16:36:25 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-25 16:31:45 +0200 |
commit | f1848a4b3f807d21415c5a334b461d240b2a83af (patch) | |
tree | 9ab6c3a2da4518cdc8a06893890ea0ca8c174c42 /ext/reflection/php_reflection.c | |
parent | 4d8541debbc4f2387879a872b42604ed8b908f58 (diff) | |
download | php-git-f1848a4b3f807d21415c5a334b461d240b2a83af.tar.gz |
Fix bug #78226: Don't call __set() on uninitialized typed properties
Assigning to an uninitialized typed property will no longer trigger
a call to __set(). However, calls to __set() are still triggered if
the property is explicitly unset().
This gives us both the behavior people generally expect, and still
allows ORMs to do lazy initialization by unsetting properties.
For PHP 8, we should fine a way to forbid unsetting of declared
properties entirely, and provide a different way to achieve lazy
initialization.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions