]> granicus.if.org Git - php/commit
Fixed bug #78774
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 4 Nov 2019 10:01:56 +0000 (11:01 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 4 Nov 2019 10:04:02 +0000 (11:04 +0100)
commitc9abfaec6bf61bcef6d9651827b49cc7789018fd
treea362fd430d32675f6c21d3b5be20343cf3130b02
parente84042cc7216c4d2ec1788756c78b00bfba413c1
Fixed bug #78774

The string held by the zend_type may be released if the property
type gets resolved to a CE. I initially wanted to fix this by
storing a zend_type* instead (so the property type resolution
propagates to the ReflectionType), but decided against this in
light of upcoming union types support, where we also need to
represent parts of the union, and will not have a single zend_type*
we can reference.
NEWS
ext/reflection/php_reflection.c
ext/reflection/tests/bug78774.phpt [new file with mode: 0644]