We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83950fc commit f03663fCopy full SHA for f03663f
ext/opcache/tests/jit/assign_dim_002.phpt
@@ -81,6 +81,17 @@ function foo5() {
81
}
82
var_dump(foo5());
83
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
+
95
?>
96
--EXPECTF--
97
array(1) {
@@ -136,3 +147,9 @@ array(1) {
136
147
137
148
Cannot use a scalar value as an array
138
149
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