]> granicus.if.org Git - php/commit
Fix ZEND_NEW live ranges
authorNikita Popov <nikic@php.net>
Sat, 13 Feb 2016 17:54:49 +0000 (18:54 +0100)
committerNikita Popov <nikic@php.net>
Sat, 13 Feb 2016 18:04:54 +0000 (19:04 +0100)
commit502dd99a6ce5c70b6b75884a338610ea0cb4e452
treeea7cbcaf577e8566029b4b641033e45a6850555f
parent302214f7ce743b037659f43114222096b281c2e3
Fix ZEND_NEW live ranges

While the def starts at DO_FCALL, the variable should still be the
result of NEW, not DO_FCALL.

I had to fix the test for #68652, because the code started to
(correctly) free the "new self()" object, which triggered an
infinite destructor loop.
Zend/tests/bug68652.phpt
Zend/tests/temporary_cleaning_012.phpt [new file with mode: 0644]
Zend/zend_compile.c