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