xref: /PHP-7.2/Zend/tests/bug69201.phpt (revision 5aebdc98)
1--TEST--
2Bug #69201 (Memory leak using iterator and get by reference on PHP 7)
3--FILE--
4<?php
5class Entity
6{
7
8	protected $_properties = [];
9
10	public function &__get($property)
11	{
12		$value = null;
13		return $value;
14	}
15
16	public function __set($property, $value)
17	{
18	}
19}
20
21$e = new Entity;
22
23$e->a += 1;
24echo "okey";
25?>
26--EXPECT--
27okey
28