mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
f302430c72
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
13 lines
220 B
PHP
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
|