]> granicus.if.org Git - php/commit
Fixed bug #78950: Preloading trait method with static variables
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 12 Dec 2019 10:19:07 +0000 (11:19 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 12 Dec 2019 10:52:43 +0000 (11:52 +0100)
commitbe89a5c7f191b319c11b3b487a1366e20a1fdc17
tree812b2164e9891ec9d8d3e7f83bf5fc406e144034
parent2d03b638dcde1d41d8a35b13e2fb6ca64c745f16
Fixed bug #78950: Preloading trait method with static variables

We need to make sure that trait methods with static variables
allocate a separate MAP slot for the static variables pointer,
rather than working in-place.
NEWS
Zend/zend_compile.c
ext/opcache/tests/preload_trait_static.inc [new file with mode: 0644]
ext/opcache/tests/preload_trait_static.phpt [new file with mode: 0644]