blob: 0d4cedcf795f955f01f03661fad3c8cc4310c60a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
ZE2 Ensuring destructor visibility
--FILE--
<?php
class Base {
private function __destruct() {
echo __METHOD__ . "\n";
}
}
class Derived extends Base {
}
$obj = new Derived;
?>
===DONE===
--EXPECT--
===DONE===
Warning: Call to private Derived::__destruct() from global scope during shutdown ignored in Unknown on line 0
|