1--TEST-- 2DCE 002: func_get_args() disables deletion of assignments to parameter variables 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7opcache.opt_debug_level=0x20000 8--SKIPIF-- 9<?php require_once('skipif.inc'); ?> 10--FILE-- 11<?php 12function foo(int $a) { 13 $a = 10; 14 $b = 20; 15 $x = func_get_args(); 16 $a = 30; 17 $b = 40; 18 return $x; 19} 20?> 21--EXPECTF-- 22$_main: ; (lines=1, args=0, vars=0, tmps=0) 23 ; (after optimizer) 24 ; %sdce_002.php:1-11 25L0 (11): RETURN int(1) 26 27foo: ; (lines=5, args=1, vars=2, tmps=0) 28 ; (after optimizer) 29 ; %sdce_002.php:2-9 30L0 (2): CV0($a) = RECV 1 31L1 (3): CV0($a) = QM_ASSIGN int(10) 32L2 (5): CV1($x) = FUNC_GET_ARGS 33L3 (6): CV0($a) = QM_ASSIGN int(30) 34L4 (8): RETURN CV1($x) 35