preload_bug78175_2.inc 419 B

1234567891011121314151617181920212223
  1. <?php
  2. class Loader {
  3. static private $loader;
  4. static function getLoader() {
  5. if (null !== self::$loader) {
  6. return self::$loader;
  7. }
  8. return self::$loader = new Loader();
  9. }
  10. static function getCounter() {
  11. static $counter = 0;
  12. return $counter++;
  13. }
  14. }
  15. class ExtLoader extends Loader {
  16. }
  17. Loader::getLoader();
  18. Loader::getCounter();
  19. Loader::getCounter();