📄 Viewing: ssa_bug_007.phpt

--TEST--
Incorrect CFG/SSA construction for SWITCH with few identical successors
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function render($properties) {
	foreach ($properties as $key => $value) {
		switch ($key) {
			case 'Trapped':
				if ($value == null) {
					$docInfo->$key = 1;
				}
			case 'CreationDate':
			case 'ModDate':
				$docInfo->$key = 2;
				break;
		}
	}
}
?>
OK
--EXPECT--
OK

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/ext/opcache/tests