1--TEST-- 2ZE2 The inherited destructor is called 3--SKIPIF-- 4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> 5--FILE-- 6<?php 7class base { 8 function __construct() { 9 echo __METHOD__ . "\n"; 10 } 11 12 function __destruct() { 13 echo __METHOD__ . "\n"; 14 } 15} 16 17class derived extends base { 18} 19 20$obj = new derived; 21 22unset($obj); 23 24echo 'Done'; 25?> 26--EXPECT-- 27base::__construct 28base::__destruct 29Done 30