blob: 5bc9433e32698f9b6c63c0581eabf58abb1b9af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--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
|