1--TEST--
2ZE2 Ensuring destructor visibility
3--SKIPIF--
4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
5--FILE--
6<?php
7
8class Base {
9	private function __destruct() {
10		echo __METHOD__ . "\n";
11	}
12}
13
14class Derived extends Base {
15}
16
17$obj = new Derived;
18
19?>
20===DONE===
21--EXPECTF--
22===DONE===
23
24Warning: Call to private Derived::__destruct() from context '' during shutdown ignored in Unknown on line %d
25