1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/ext/opcache/tests/opt/dce_011.phpt
T
Dmitry Stogov f302430c72 Fixed incorrect DCE for ADD_ARRAY_ELEMENT instruction
DCE might remove INIT_ARRAY instruction but then keep the related
ADD_ARRAY_ELEMENT, becuse its both operands need to be freed.

Fixes oss-fuzz #41309
2021-11-25 13:33:26 +03:00

13 lines
220 B
PHP

--TEST--
Incorrect DCE of ADD_ARRAY_ELEMENT
--FILE--
<?php
[0, "$a" => "$b"];
?>
DONE
--EXPECTF--
Warning: Undefined variable $a in %sdce_011.php on line 2
Warning: Undefined variable $b in %sdce_011.php on line 2
DONE