]> granicus.if.org Git - php/commit
Fix phi use chain management when renaming variable
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 9 Nov 2020 16:06:41 +0000 (17:06 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 9 Nov 2020 16:08:16 +0000 (17:08 +0100)
commitd971b67027c69390cb1fc2243eca1e3901401bf6
treee77da621c6a0d0a18c3c156bee19506f1a24ba76
parent96b725122daad0a7d9abe8aad4d14787f8dc15e9
Fix phi use chain management when renaming variable

If there is a previous use of the new variable in the phi, we need
to NULL out the use chain of the new source we're adding.

Test case is reduced from an assertion failure in the Symfony Demo.
ext/opcache/Optimizer/ssa_integrity.c
ext/opcache/Optimizer/zend_ssa.c
ext/opcache/tests/phi_use_chain.phpt [new file with mode: 0644]