summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug79115.phpt
blob: b8ba6f1d7ff746ada8b287a8ea6dfe4ee7434181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #79115: ReflectionClass::isCloneable call reflected class __destruct
--FILE--
<?php

class A {
    function __construct() { echo __FUNCTION__ . "\n"; }
    function __destruct() { echo __FUNCTION__ . "\n"; }
}

$c = new ReflectionClass('A');
var_dump($c->isCloneable());

?>
--EXPECT--
bool(true)