]> granicus.if.org Git - php/commit
Fixed bug #79897: Promoted constructor params with attribs cause crash
authorDeus Kane <3399275+qxzkjp@users.noreply.github.com>
Sat, 25 Jul 2020 11:02:01 +0000 (12:02 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 30 Jul 2020 09:08:31 +0000 (11:08 +0200)
commitf475edc2f10964f37e3900dd4c447e7cc0d4fb8c
treef1f1393b3daf0e5cad1f1c46fdb3e1a580d02fbc
parent3690a805c15087f7f04c602e9f3c1e617060c475
Fixed bug #79897: Promoted constructor params with attribs cause crash

This was caused by the attribute AST being used twice, and was fixed by
creating a temporary copy of it (and destroying said copy) when neccesary.
NEWS
Zend/tests/bug79897.phpt [new file with mode: 0644]
Zend/zend_compile.c