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 b7b7ae7 commit 695fe86Copy full SHA for 695fe86
Zend/tests/gh10168_9.phpt
@@ -0,0 +1,34 @@
1
+--TEST--
2
+GH-10168 (heap-buffer-overflow at zval_undefined_cv): assign typed prop
3
+--FILE--
4
+<?php
5
+
6
+class Box {
7
+ public $value;
8
+}
9
10
+$box = new Box();
11
12
+class Test
13
+{
14
+ static $a = null;
15
16
+ public function __construct() {
17
+ global $box;
18
+ var_dump($box->value = $this);
19
+ }
20
21
+ function __destruct() {
22
23
+ unset($box->value);
24
25
26
+new Test();
27
28
29
+?>
30
+--EXPECT--
31
+object(Test)#2 (0) {
32
33
+object(Test)#3 (0) {
34
0 commit comments