xref: /PHP-7.1/ext/reflection/tests/bug46103.phpt (revision c1af9f28)
1--TEST--
2Bug #46103: ReflectionObject memory leak
3--FILE--
4<?php
5
6$obj = new stdClass;
7$obj->r = new ReflectionObject($obj);
8var_dump($obj);
9
10?>
11--EXPECT--
12object(stdClass)#1 (1) {
13  ["r"]=>
14  object(ReflectionObject)#2 (1) {
15    ["name"]=>
16    string(8) "stdClass"
17  }
18}
19