
Fabian Schmengler - 2010-01-13 13:31:24
Hi,
I am aware that this class is only for demonstration but it should be noted that the clone constructor has to be made private too, otherwise it is possible to create multiple instances like that: $instance2 = clone $instance;
Solution:
private function __clone() { }