php-src/ext/reflection/tests/bug46103.phpt

19 lines
272 B
Plaintext
Raw Normal View History

2016-12-18 16:10:19 +00:00
--TEST--
Bug #46103: ReflectionObject memory leak
--FILE--
<?php
$obj = new stdClass;
$obj->r = new ReflectionObject($obj);
var_dump($obj);
?>
--EXPECT--
object(stdClass)#1 (1) {
["r"]=>
object(ReflectionObject)#2 (1) {
["name"]=>
string(8) "stdClass"
}
}