1--TEST--
2ZE2 factory and singleton, test 6
3--FILE--
4<?php
5class test {
6
7  private function __destruct() {
8  }
9}
10
11$obj = new test;
12$obj = NULL;
13
14echo "Done\n";
15?>
16--EXPECTF--
17Fatal error: Uncaught Error: Call to private test::__destruct() from context '' in %sfactory_and_singleton_006.php:%d
18Stack trace:
19#0 {main}
20  thrown in %sfactory_and_singleton_006.php on line %d
21