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