Skip to content

Commit f03663f

Browse files
committed
Update JIT test case
1 parent 83950fc commit f03663f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ext/opcache/tests/jit/assign_dim_002.phpt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ function foo5() {
8181
}
8282
var_dump(foo5());
8383

84+
function foo6() {
85+
$a = false;
86+
try {
87+
$a[2] = 1;
88+
} catch (Error $e) {
89+
echo $e->getMessage(), "\n";
90+
}
91+
return $a;
92+
}
93+
var_dump(foo6());
94+
8495
?>
8596
--EXPECTF--
8697
array(1) {
@@ -136,3 +147,9 @@ array(1) {
136147
}
137148
Cannot use a scalar value as an array
138149
int(1)
150+
151+
Deprecated: Automatic conversion of false to array is deprecated in %s
152+
array(1) {
153+
[2]=>
154+
int(1)
155+
}

0 commit comments

Comments
 (0)