1--TEST--
2ZE2 Destructors and echo
3--FILE--
4<?php
5
6class Test
7{
8    function __construct() {
9        echo __METHOD__ . "\n";
10    }
11
12    function __destruct() {
13        echo __METHOD__ . "\n";
14    }
15}
16
17$o = new Test;
18
19?>
20===DONE===
21--EXPECT--
22Test::__construct
23===DONE===
24Test::__destruct
25