File size: 213 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Incorrect DCE of FREE of COALESCE
--FILE--
<?php

function test(?string $str) {
    $str ?? $str = '';
    return strlen($str);
}

$foo = 'foo';
$foo .= 'bar';
var_dump(test($foo));

?>
--EXPECT--
int(6)