xref: /php-src/ext/reflection/tests/bug79115.phpt (revision 07bda97e)
1--TEST--
2Bug #79115: ReflectionClass::isCloneable call reflected class __destruct
3--FILE--
4<?php
5
6class A {
7    function __construct() { echo __FUNCTION__ . "\n"; }
8    function __destruct() { echo __FUNCTION__ . "\n"; }
9}
10
11$c = new ReflectionClass('A');
12var_dump($c->isCloneable());
13
14?>
15--EXPECT--
16bool(true)
17