blob: 4c15c38383e13701024addc6e114552392d6d5c8 (
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 7
--FILE--
<?php
class test {
protected function __clone() {
}
}
$obj = new test;
$clone = clone $obj;
$obj = NULL;
echo "Done\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to protected test::__clone() from context '' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|