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 4a5c05a commit 8d7d87cCopy full SHA for 8d7d87c
Zend/tests/objects_034.phpt
@@ -0,0 +1,27 @@
1
+--TEST--
2
+Array object clobbering by user error handler
3
+--FILE--
4
+<?php
5
+class A {
6
+}
7
+
8
+set_error_handler(function () {
9
+ $GLOBALS['a'] = null;
10
+});
11
12
+$a = new A;
13
+$a[$c] = 'x' ;
14
+var_dump($a);
15
16
17
+$a[$c] .= 'x' ;
18
19
20
21
+$a[$c][$c] = 'x' ;
22
23
+?>
24
+--EXPECT--
25
+NULL
26
27
0 commit comments