1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 01:18:19 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_007.phpt
T
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

25 lines
502 B
PHP

--TEST--
Incorrect CFG/SSA construction for SWITCH with few identical successors
--EXTENSIONS--
opcache
--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