mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
17 lines
310 B
PHP
17 lines
310 B
PHP
--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)
|