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