1--TEST--
2ZE2 factory and singleton, test 9
3--FILE--
4<?php
5class test {
6
7  protected function __destruct() {
8    echo __METHOD__ . "\n";
9  }
10}
11
12$obj = new test;
13
14?>
15===DONE===
16--EXPECT--
17===DONE===
18
19Warning: Call to protected test::__destruct() from global scope during shutdown ignored in Unknown on line 0
20