<?php // Requiere singleton class require_once 'Singleton.class.php'; $single = Singleton::GetInstance(); // Fatal error -> private constructor $newInstance = new Singleton(); // Fatal error -> No clonning $clone = clone $single; // Fatal error -> No serialization serialize($single);
info at phpclasses dot org